From 6e61a6a73dadc758bedefb528601494469d8eac9 Mon Sep 17 00:00:00 2001 From: Jacques Erasmus Date: Wed, 3 Apr 2019 16:15:15 +0000 Subject: [PATCH] Localize the notifications dropdown string Localized the notifications dropdown string --- app/assets/javascripts/notifications_dropdown.js | 3 ++- changelogs/unreleased/localize-notification-dropdown.yml | 5 +++++ locale/gitlab.pot | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/localize-notification-dropdown.yml diff --git a/app/assets/javascripts/notifications_dropdown.js b/app/assets/javascripts/notifications_dropdown.js index 6aed2492084..08545dcea46 100644 --- a/app/assets/javascripts/notifications_dropdown.js +++ b/app/assets/javascripts/notifications_dropdown.js @@ -1,5 +1,6 @@ import $ from 'jquery'; import Flash from './flash'; +import { __ } from '~/locale'; export default function notificationsDropdown() { $(document).on('click', '.update-notification', function updateNotificationCallback(e) { @@ -27,7 +28,7 @@ export default function notificationsDropdown() { .closest('.js-notification-dropdown') .replaceWith(data.html); } else { - Flash('Failed to save new settings', 'alert'); + Flash(__('Failed to save new settings'), 'alert'); } }); } diff --git a/changelogs/unreleased/localize-notification-dropdown.yml b/changelogs/unreleased/localize-notification-dropdown.yml new file mode 100644 index 00000000000..9599aaf344b --- /dev/null +++ b/changelogs/unreleased/localize-notification-dropdown.yml @@ -0,0 +1,5 @@ +--- +title: Localize notifications dropdown +merge_request: 26844 +author: +type: changed diff --git a/locale/gitlab.pot b/locale/gitlab.pot index bb145a0984f..985a2a2f417 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -3595,6 +3595,9 @@ msgstr "" msgid "Failed to remove user key." msgstr "" +msgid "Failed to save new settings" +msgstr "" + msgid "Failed to update issues, please try again." msgstr ""