@@ -, +, @@ "A translation already exists for this language." couple other messages from localization.tt Translate into other languages Add a new translation, check that the message given by the widget was in correct language. --- .../intranet-tmpl/prog/en/modules/admin/localization.tt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt @@ -64,29 +64,29 @@ var message; if ( type == 'success_on_update' ) { message = $('
'); - message.text("Entity %s (code %s) for lang %s has correctly been updated with '%s'".format(data.entity, data.code, data.lang, data.translation)); + message.text(_("Entity %s (code %s) for lang %s has correctly been updated with '%s'").format(data.entity, data.code, data.lang, data.translation)); } else if ( type == 'error_on_update' ) { message = $('
'); if ( data.error_code == 'already_exists' ) { - message.text("A translation already exists for this language."); + message.text(_("A translation already exists for this language.")); } else { - message.text("An error occurred when updating this translation."); + message.text(_("An error occurred when updating this translation.")); } } else if ( type == 'success_on_delete' ) { message = $('
'); - message.text("The translation (id %s) has been removed successfully".format(data.id)); + message.text(_("The translation (id %s) has been removed successfully").format(data.id)); } else if ( type == 'error_on_delete' ) { message = $('
'); - message.text("An error occurred when deleting this translation"); + message.text(_("An error occurred when deleting this translation")); } else if ( type == 'success_on_insert' ) { message = $('
'); - message.text("Translation (id %s) has been added successfully".format(data.id)); + message.text(_("Translation (id %s) has been added successfully").format(data.id)); } else if ( type == 'error_on_insert' ) { message = $('
'); if ( data.error_code == 'already_exists' ) { - message.text("A translation already exists for this language."); + message.text(_("A translation already exists for this language.")); } else { - message.text("An error occurred when adding this translation"); + message.text(_("An error occurred when adding this translation")); } } --