i18n: Translate deactivation errors in the webapp.

This commit is contained in:
Steve Howell
2017-11-04 07:42:38 -07:00
committed by Tim Abbott
parent aa61db9301
commit 2b6fee3c53
3 changed files with 4 additions and 4 deletions

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");