1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 18:40:28 +00:00

add localisable strings for dialog

This commit is contained in:
Myeongjin 2016-03-28 16:07:44 +09:00
parent 034796bee6
commit c9b0e15201
2 changed files with 2 additions and 2 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

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