From 034796bee6d812cde67914e1eeeff3bc49308a81 Mon Sep 17 00:00:00 2001 From: Myeongjin Date: Mon, 28 Mar 2016 15:57:34 +0900 Subject: [PATCH 1/2] add localisable string for plugin configure --- core/language/en-GB/ControlPanel.multids | 1 + core/ui/ControlPanel/Plugins.tid | 2 +- languages/ko-KR/ControlPanel.multids | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/language/en-GB/ControlPanel.multids b/core/language/en-GB/ControlPanel.multids index abd4e9ae7..7e2253f14 100644 --- a/core/language/en-GB/ControlPanel.multids +++ b/core/language/en-GB/ControlPanel.multids @@ -56,6 +56,7 @@ Plugins/Install: install Plugins/Installed/Hint: Currently installed plugins: Plugins/Languages/Caption: Languages Plugins/Languages/Hint: Language pack plugins +Plugins/NoInformation: No information provided Plugins/OpenPluginLibrary: open plugin library Plugins/Plugins/Caption: Plugins Plugins/Plugins/Hint: Plugins diff --git a/core/ui/ControlPanel/Plugins.tid b/core/ui/ControlPanel/Plugins.tid index d91dead26..b3c384504 100644 --- a/core/ui/ControlPanel/Plugins.tid +++ b/core/ui/ControlPanel/Plugins.tid @@ -86,7 +86,7 @@ $:/config/Plugins/Disabled/$(currentTiddler)$ <$macrocall $name="tabs" state=<> tabsList={{!!list}} default="readme" template="$:/core/ui/PluginInfo"/> <$reveal type="match" text="" state="!!list"> -No information provided +<> diff --git a/languages/ko-KR/ControlPanel.multids b/languages/ko-KR/ControlPanel.multids index 3297a14f8..da5564e27 100644 --- a/languages/ko-KR/ControlPanel.multids +++ b/languages/ko-KR/ControlPanel.multids @@ -56,6 +56,7 @@ Plugins/Install: 설치 Plugins/Installed/Hint: 현재 설치된 플러그인: Plugins/Languages/Caption: 언어 Plugins/Languages/Hint: 언어 팩 플러그인 +Plugins/NoInformation: 제공된 정보 없음 Plugins/OpenPluginLibrary: 플러그인 라이브러리 열기 Plugins/Plugins/Caption: 플러그인 Plugins/Plugins/Hint: 플러그인 From c9b0e1520188ef799e7d1ec141e873255b395654 Mon Sep 17 00:00:00 2001 From: Myeongjin Date: Mon, 28 Mar 2016 16:07:44 +0900 Subject: [PATCH 2/2] add localisable strings for dialog --- boot/boot.js | 2 +- core/modules/utils/dom/modal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 1a41b4d07..7d3df8af6 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -136,7 +136,7 @@ $tw.utils.error = function(err) { heading = dm("h1",{text: errHeading}), prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}), message = dm("div",{text: err}), - button = dm("button",{text: "close"}), + button = dm("button",{text: ( $tw.language == undefined ? "Close" : $tw.language.getString("Buttons/Close/Caption") )}), form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"}); document.body.insertBefore(form,document.body.firstChild); form.addEventListener("submit",function(event) { diff --git a/core/modules/utils/dom/modal.js b/core/modules/utils/dom/modal.js index 2a966a7db..385f7fac2 100644 --- a/core/modules/utils/dom/modal.js +++ b/core/modules/utils/dom/modal.js @@ -122,7 +122,7 @@ Modal.prototype.display = function(title,options) { attributes: { text: { type: "string", - value: "Close" + value: ( $tw.language == undefined ? "Close" : $tw.language.getString("Buttons/Close/Caption") ) }}} ]}], parentWidget: $tw.rootWidget,