Refactor I18n strings for tiny_mce

This commit is contained in:
Jure Grabnar 2019-09-24 14:16:29 +02:00
parent 289853e2e8
commit 477e41a96d
2 changed files with 4 additions and 2 deletions

View file

@ -53,9 +53,9 @@ var TinyMCE = (function() {
var notificationBar = $('<div class="restore-draft-notification"></div>');
if (lastDraftTime < lastUpdated) {
notificationBar.text('Older version of the text below has been saved in the browser. Do you want to restore it?');
notificationBar.text(I18n.t('tiny_mce.older_version_available'));
} else {
notificationBar.text('Newer version of the text below has been saved in the browser. Do you want to restore it?');
notificationBar.text(I18n.t('tiny_mce.newer_version_available'));
}
// Add notification bar

View file

@ -2007,6 +2007,8 @@ en:
server_not_respond: "Didn't get a response from the server"
saved_label: "Saved"
leaving_warning: "You have made some changes, are you sure you want to leave this page?"
older_version_available: "Older version of the text below has been saved in the browser. Do you want to restore it?"
newer_version_available: "Newer version of the text below has been saved in the browser. Do you want to restore it?"
general:
save: "Save"
update: "Update"