Internationalisation of javascript/t* 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
This commit is contained in:
parent
a8347c22d0
commit
8a7792bdd0
|
@ -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'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue