Translate untranslated strings

This commit is contained in:
Tautvidas Sipavičius
2017-02-27 15:18:35 +02:00
parent 7f0195378c
commit c27446666e
4 changed files with 11 additions and 6 deletions

View File

@@ -46,9 +46,8 @@ define([
//MailPoet.Notice.success("<?php _e('Newsletter has been saved.'); ?>");
} else if(response.error !== undefined) {
if(response.error.length === 0) {
// TODO: Handle translations
MailPoet.Notice.error(
"An unknown error occurred, please check your settings.",
MailPoet.I18n.t('templateSaveFailed'),
{
scroll: true,
}
@@ -330,8 +329,7 @@ define([
Module.beforeExitWithUnsavedChanges = function(e) {
if (saveTimeout) {
// TODO: Translate this message
var message = "There are unsaved changes which will be lost if you leave this page.";
var message = MailPoet.I18n.t('unsavedChangesWillBeLost');
e = e || window.event;
if (e) {