Commit 2d5b7a4b authored by Brandon Labuschagne's avatar Brandon Labuschagne Committed by Tim Zallmann

Internationalisation of javascript/m* directories

This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.

i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
parent 94e94295
...@@ -290,7 +290,7 @@ export default class SSHMirror { ...@@ -290,7 +290,7 @@ export default class SSHMirror {
this.setSSHPublicKey(data.import_data_attributes.ssh_public_key); this.setSSHPublicKey(data.import_data_attributes.ssh_public_key);
}) })
.catch(() => { .catch(() => {
Flash(_('Unable to regenerate public ssh key.')); Flash(__('Unable to regenerate public ssh key.'));
}); });
} }
......
import axios from '../../lib/utils/axios_utils'; import axios from '../../lib/utils/axios_utils';
import statusCodes from '../../lib/utils/http_status'; import statusCodes from '../../lib/utils/http_status';
import { backOff } from '../../lib/utils/common_utils'; import { backOff } from '../../lib/utils/common_utils';
import { s__ } from '../../locale'; import { s__, __ } from '../../locale';
const MAX_REQUESTS = 3; const MAX_REQUESTS = 3;
...@@ -15,7 +15,7 @@ function backOffRequest(makeRequestCallback) { ...@@ -15,7 +15,7 @@ function backOffRequest(makeRequestCallback) {
if (requestCounter < MAX_REQUESTS) { if (requestCounter < MAX_REQUESTS) {
next(); next();
} else { } else {
stop(new Error('Failed to connect to the prometheus server')); stop(new Error(__('Failed to connect to the prometheus server')));
} }
} else { } else {
stop(resp); stop(resp);
......
import { __ } from '~/locale';
export const mrStates = { export const mrStates = {
merged: 'merged', merged: 'merged',
closed: 'closed', closed: 'closed',
}; };
export const humanMRStates = { export const humanMRStates = {
merged: 'Merged', merged: __('Merged'),
closed: 'Closed', closed: __('Closed'),
open: 'Open', open: __('Open'),
}; };
...@@ -3958,6 +3958,9 @@ msgstr "" ...@@ -3958,6 +3958,9 @@ msgstr ""
msgid "Failed to check related branches." msgid "Failed to check related branches."
msgstr "" msgstr ""
msgid "Failed to connect to the prometheus server"
msgstr ""
msgid "Failed to create repository via gitlab-shell" msgid "Failed to create repository via gitlab-shell"
msgstr "" msgstr ""
...@@ -9805,6 +9808,9 @@ msgstr "" ...@@ -9805,6 +9808,9 @@ msgstr ""
msgid "Unable to load the diff. %{button_try_again}" msgid "Unable to load the diff. %{button_try_again}"
msgstr "" msgstr ""
msgid "Unable to regenerate public ssh key."
msgstr ""
msgid "Unable to schedule a pipeline to run immediately" msgid "Unable to schedule a pipeline to run immediately"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment