Skip to content

TagSpaces is an offline, open source, document manager with tagging support

i18n-ing handler for help translate button

Ilian50e75bd6b55a
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index a6a029893..653e4e87c 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -12,7 +12,7 @@ define(function(require, exports, module) {
var fileType = undefined;
var showAlertDialog = function(message, title) {
- if (!title) { title = 'Alert'; }
+ if (!title) { title = $.i18n.t("ns.dialogs:titleAlert"); }
if (!message) { message = 'No Message to Display.'; }
var alertModal = $('#alertDialog');
@@ -30,7 +30,7 @@ define(function(require, exports, module) {
};
var showConfirmDialog = function(title, message, okCallback, cancelCallback, confirmShowNextTime) {
- if (!title) { title = 'Confirm'; }
+ if (!title) { title = $.i18n.t("ns.dialogs:titleConfirm"); }
if (!message) { message = 'No Message to Display.'; }
var confirmModal = $('#confirmDialog');
@@ -97,8 +97,8 @@ define(function(require, exports, module) {
var showFileDeleteDialog = function(filePath) {
console.log("Deleting file...");
TSCORE.showConfirmDialog(
- "Delete File(s)",
- "The file \""+filePath+"\" will be permanently deleted and cannot be recovered. Are you sure?",
+ $.i18n.t("ns.dialogs:fileDeleteTitleConfirm"),
+ $.i18n.t("ns.dialogs:fileDeleteContentConfirm", {filePath: filePath}),
function() {
TSCORE.IO.deleteElement(filePath);
}
@@ -455,6 +455,11 @@ define(function(require, exports, module) {
openLinkExternally($(this).attr("href"));
});
+ $contactUsContent.on('click',"#helpUsTranslate", function (e) {
+ e.preventDefault();
+ openLinkExternally($(this).attr("href"));
+ });
+
$contactUsContent.on('click',"#openTwitter", function (e) {
e.preventDefault();
openLinkExternally($(this).attr("href"));