1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Translatability for the unsaved changes message

Another bit of #491
This commit is contained in:
Jermolene 2014-08-13 19:14:23 +01:00
parent 2bdf84e58f
commit 57ab9f6167
2 changed files with 2 additions and 1 deletions

View File

@ -30,3 +30,4 @@ TagManager/Colour/Heading: Colour
TagManager/Count/Heading: Count
TagManager/Icon/Heading: Icon
TagManager/Tag/Heading: Tag
UnsavedChangesWarning: You have unsaved changes in TiddlyWiki

View File

@ -58,7 +58,7 @@ exports.startup = function() {
window.addEventListener("beforeunload",function(event) {
var confirmationMessage = undefined;
if($tw.syncer.isDirty()) {
confirmationMessage = "You have unsaved changes in TiddlyWiki";
confirmationMessage = $tw.language.getString("UnsavedChangesWarning");
event.returnValue = confirmationMessage; // Gecko
}
return confirmationMessage;