Add missing i18n for 'go to line' prompt

Change-Id: If4f7c243f23fc809c95cf671d5b47ec978a9fdb9
This commit is contained in:
Ed Sanders 2016-12-09 13:49:46 +00:00
parent 7fddf35aa8
commit 1818ed4bea
4 changed files with 7 additions and 1 deletions

View file

@ -61,6 +61,8 @@
"codeeditor-lineWrapping-toggle",
"codeeditor-searchReplace-toggle",
"codeeditor-gotoline",
"codeeditor-gotoline-placeholder",
"codeeditor-gotoline-prompt",
"codeeditor-indent",
"codeeditor-outdent"
],

View file

@ -13,6 +13,8 @@
"codeeditor-lineWrapping-toggle": "Toggle line wrapping",
"codeeditor-searchReplace-toggle": "Toggle search and replace dialog",
"codeeditor-gotoline": "Go to line number...",
"codeeditor-gotoline-placeholder": "line[:column]",
"codeeditor-gotoline-prompt": "Enter a line number",
"codeeditor-indent": "Indent",
"codeeditor-outdent": "Outdent"
}

View file

@ -16,6 +16,8 @@
"codeeditor-lineWrapping-toggle": "Used as label for toolbar button to enable/disable wrapping of long lines on the screen (this doesnt modify the saved text).",
"codeeditor-searchReplace-toggle": "Used as label for toolbar button to show/hide the search and replace dialog",
"codeeditor-gotoline": "Used as a label for toolbar button to navigate to a line number in the editor",
"codeeditor-gotoline-placeholder": "Placeholder for goto line prompt's input",
"codeeditor-gotoline-prompt": "Label for goto line prompt",
"codeeditor-indent": "Used as a label for toolbar button to indent text in the editor",
"codeeditor-outdent": "Used as a label for toolbar button to outdent text in the editor"
}

View file

@ -118,7 +118,7 @@
);
},
aceGotoLineColumn: function () {
var lineinput = prompt( 'Enter line number:', 'line:column' ),
var lineinput = prompt( mw.msg( 'codeeditor-gotoline-prompt' ), mw.msg( 'codeeditor-gotoline-placeholder' ) ),
matches = lineinput ? lineinput.split( ':' ) : [],
line = 0,
column = 0;