mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-27 08:30:26 +00:00
Add missing i18n for 'go to line' prompt
Change-Id: If4f7c243f23fc809c95cf671d5b47ec978a9fdb9
This commit is contained in:
parent
7fddf35aa8
commit
1818ed4bea
|
@ -61,6 +61,8 @@
|
|||
"codeeditor-lineWrapping-toggle",
|
||||
"codeeditor-searchReplace-toggle",
|
||||
"codeeditor-gotoline",
|
||||
"codeeditor-gotoline-placeholder",
|
||||
"codeeditor-gotoline-prompt",
|
||||
"codeeditor-indent",
|
||||
"codeeditor-outdent"
|
||||
],
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
"codeeditor-lineWrapping-toggle": "Used as label for toolbar button to enable/disable wrapping of long lines on the screen (this doesn’t 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"
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue