diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-05-02 13:05:49 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-05-02 13:05:49 +0000 |
commit | 448a0862fb8336b019881395268a57f4bd9b836c (patch) | |
tree | 9870414c84243ad71cbc65cc6b8f71a4392c6651 | |
parent | a8347c22d0e33ab626ee4c3b4b9acffa69f7cf46 (diff) | |
parent | 8a7792bdd01bcd667d2b17931c5b9eba6ff0942b (diff) | |
download | gitlab-ce-448a0862fb8336b019881395268a57f4bd9b836c.tar.gz |
Merge branch 'js-i18n-t-directories' into 'master'
Internationalisation of javascript/t* directories
See merge request gitlab-org/gitlab-ce!27748
-rw-r--r-- | app/assets/javascripts/templates/issuable_template_selector.js | 3 | ||||
-rw-r--r-- | app/assets/javascripts/terminal/terminal.js | 4 | ||||
-rw-r--r-- | locale/gitlab.pot | 6 |
3 files changed, 11 insertions, 2 deletions
diff --git a/app/assets/javascripts/templates/issuable_template_selector.js b/app/assets/javascripts/templates/issuable_template_selector.js index 6065770e68d..78609ce0610 100644 --- a/app/assets/javascripts/templates/issuable_template_selector.js +++ b/app/assets/javascripts/templates/issuable_template_selector.js @@ -3,6 +3,7 @@ import $ from 'jquery'; import Api from '../api'; import TemplateSelector from '../blob/template_selector'; +import { __ } from '~/locale'; export default class IssuableTemplateSelector extends TemplateSelector { constructor(...args) { @@ -25,7 +26,7 @@ export default class IssuableTemplateSelector extends TemplateSelector { $('.no-template', this.dropdown.parent()).on('click', () => { this.currentTemplate.content = ''; this.setInputValueToTemplateContent(); - $('.dropdown-toggle-text', this.dropdown).text('Choose a template'); + $('.dropdown-toggle-text', this.dropdown).text(__('Choose a template')); }); } diff --git a/app/assets/javascripts/terminal/terminal.js b/app/assets/javascripts/terminal/terminal.js index e5dd7a465ea..9c7c10d9864 100644 --- a/app/assets/javascripts/terminal/terminal.js +++ b/app/assets/javascripts/terminal/terminal.js @@ -4,6 +4,7 @@ import { Terminal } from 'xterm'; import * as fit from 'xterm/lib/addons/fit/fit'; import * as webLinks from 'xterm/lib/addons/webLinks/webLinks'; import { canScrollUp, canScrollDown } from '~/lib/utils/dom_utils'; +import { __ } from '~/locale'; const SCROLL_MARGIN = 5; @@ -78,7 +79,8 @@ export default class GLTerminal { } handleSocketFailure() { - this.terminal.write('\r\nConnection failure'); + this.terminal.write('\r\n'); + this.terminal.write(__('Connection failure')); } addScrollListener(onScrollLimit) { diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 8ae350779d4..e9ae9ae9f99 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -1740,6 +1740,9 @@ msgstr "" msgid "Choose a role permission" msgstr "" +msgid "Choose a template" +msgstr "" + msgid "Choose a template..." msgstr "" @@ -2606,6 +2609,9 @@ msgstr "" msgid "Connect repositories from GitHub" msgstr "" +msgid "Connection failure" +msgstr "" + msgid "Container Registry" msgstr "" |