mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
i18n: Translate deactivation errors in the webapp.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user