mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-12 12:59:57 +00:00
add localisable strings for dialog
This commit is contained in:
parent
034796bee6
commit
c9b0e15201
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user