diff --git a/app/assets/javascripts/sitewide/tiny_mce.js b/app/assets/javascripts/sitewide/tiny_mce.js index 5d41d5b4e..d0ba65e62 100644 --- a/app/assets/javascripts/sitewide/tiny_mce.js +++ b/app/assets/javascripts/sitewide/tiny_mce.js @@ -53,9 +53,9 @@ var TinyMCE = (function() { var notificationBar = $('
'); 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 diff --git a/config/locales/en.yml b/config/locales/en.yml index dd101cd70..09c9341d1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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"