diff --git a/static/js/settings_invites.js b/static/js/settings_invites.js index 8dad42a7cf..1a6f8ff4ff 100644 --- a/static/js/settings_invites.js +++ b/static/js/settings_invites.js @@ -92,7 +92,7 @@ exports.on_load_success = function (invites_data) { if (modal_invite_id !== meta.invite_id) { blueslip.error("Invite revoking canceled due to non-matching fields."); - ui_report.message("Resending encountered an error. Please reload and try again.", + ui_report.message(i18n.t("Resending encountered an error. Please reload and try again."), $("#home-error"), 'alert-error'); } $("#revoke_invite_modal").modal("hide"); @@ -120,7 +120,7 @@ exports.on_load_success = function (invites_data) { if (modal_invite_id !== meta.invite_id) { blueslip.error("Invite resending canceled due to non-matching fields."); - ui_report.message("Resending encountered an error. Please reload and try again.", + ui_report.message(i18n.t("Resending encountered an error. Please reload and try again."), $("#home-error"), 'alert-error'); } $("#resend_invite_modal").modal("hide"); diff --git a/static/js/settings_streams.js b/static/js/settings_streams.js index fa8417b465..c6c1821a8c 100644 --- a/static/js/settings_streams.js +++ b/static/js/settings_streams.js @@ -170,7 +170,7 @@ exports.set_up = function () { $("#do_deactivate_stream_button").click(function () { if ($("#deactivation_stream_modal .stream_name").text() !== $(".active_stream_row").find('.stream_name').text()) { blueslip.error("Stream deactivation canceled due to non-matching fields."); - ui_report.message("Deactivation encountered an error. Please reload and try again.", + ui_report.message(i18n.t("Deactivation encountered an error. Please reload and try again."), $("#home-error"), 'alert-error'); } $("#deactivation_stream_modal").modal("hide"); diff --git a/static/js/settings_users.js b/static/js/settings_users.js index 495c9f170a..dcbddcd841 100644 --- a/static/js/settings_users.js +++ b/static/js/settings_users.js @@ -243,7 +243,7 @@ exports.on_load_success = function (realm_people_data) { if ($("#deactivation_user_modal .email").html() !== email) { blueslip.error("User deactivation canceled due to non-matching fields."); - ui_report.message("Deactivation encountered an error. Please reload and try again.", + ui_report.message(i18n.t("Deactivation encountered an error. Please reload and try again."), $("#home-error"), 'alert-error'); } $("#deactivation_user_modal").modal("hide");