Commit ceff1529 authored by Clement Ho's avatar Clement Ho

Merge branch 'ee-js-i18n-board' into 'master'

Internationalisation of boards directory - EE

See merge request gitlab-org/gitlab-ee!11727
parents 41228bc4 3ea82509
import $ from 'jquery';
import Vue from 'vue';
import { __ } from '~/locale';
export default Vue.extend({
props: {
......@@ -13,7 +14,7 @@ export default Vue.extend({
$(this.$el).tooltip('hide');
// eslint-disable-next-line no-alert
if (window.confirm('Are you sure you want to delete this list?')) {
if (window.confirm(__('Are you sure you want to delete this list?'))) {
this.list.destroy();
}
},
......
......@@ -45,7 +45,7 @@ export default Vue.extend({
return Object.keys(this.issue).length;
},
milestoneTitle() {
return this.issue.milestone ? this.issue.milestone.title : 'No Milestone';
return this.issue.milestone ? this.issue.milestone.title : __('No Milestone');
},
canRemove() {
return !this.list.preset;
......
......@@ -131,7 +131,7 @@ export default () => {
this.loading = false;
})
.catch(() => {
Flash('An error occurred while fetching the board lists. Please try again.');
Flash(__('An error occurred while fetching the board lists. Please try again.'));
});
},
methods: {
......@@ -282,7 +282,7 @@ export default () => {
},
tooltipTitle() {
if (this.disabled) {
return 'Please add a list to your board first';
return __('Please add a list to your board first');
}
return '';
......
......@@ -7,6 +7,7 @@ import Vue from 'vue';
import Cookies from 'js-cookie';
import BoardsStoreEE from 'ee_else_ce/boards/stores/boards_store_ee';
import { getUrlParamsArray, parseBoolean } from '~/lib/utils/common_utils';
import { __ } from '~/locale';
const boardsStore = {
disabled: false,
......@@ -78,7 +79,7 @@ const boardsStore = {
this.addList({
id: 'blank',
list_type: 'blank',
title: 'Welcome to your Issue Board!',
title: __('Welcome to your Issue Board!'),
position: 0,
});
......
......@@ -1030,6 +1030,9 @@ msgstr ""
msgid "An error occurred while fetching the Service Desk address."
msgstr ""
msgid "An error occurred while fetching the board lists. Please try again."
msgstr ""
msgid "An error occurred while fetching the job log."
msgstr ""
......@@ -1317,6 +1320,9 @@ msgstr ""
msgid "Are you sure that you want to unarchive this project?"
msgstr ""
msgid "Are you sure you want to delete this list?"
msgstr ""
msgid "Are you sure you want to delete this pipeline schedule?"
msgstr ""
......@@ -7963,6 +7969,9 @@ msgstr ""
msgid "No Label"
msgstr ""
msgid "No Milestone"
msgstr ""
msgid "No Tag"
msgstr ""
......@@ -8736,6 +8745,9 @@ msgstr ""
msgid "Please accept the Terms of Service before continuing."
msgstr ""
msgid "Please add a list to your board first"
msgstr ""
msgid "Please check the configuration file for this chart"
msgstr ""
......@@ -13495,6 +13507,9 @@ msgstr ""
msgid "Weight %{weight}"
msgstr ""
msgid "Welcome to your Issue Board!"
msgstr ""
msgid "When a runner is locked, it cannot be assigned to other projects"
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