mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
Refactor I18n strings for tiny_mce
This commit is contained in:
parent
289853e2e8
commit
477e41a96d
2 changed files with 4 additions and 2 deletions
4
app/assets/javascripts/sitewide/tiny_mce.js
vendored
4
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue