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
+1 -1
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;