1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Merge pull request #2348 from araname/master

Add localisable strings
This commit is contained in:
Jeremy Ruston 2016-03-28 16:34:43 +01:00
commit dd27fee15e
5 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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,

View File

@ -86,7 +86,7 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList={{!!list}} default="readme" template="$:/core/ui/PluginInfo"/>
</$reveal>
<$reveal type="match" text="" state="!!list">
No information provided
<<lingo NoInformation>>
</$reveal>
</div>
</div>

View File

@ -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: 플러그인