mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-12 14:25:06 +00:00
b464df36ab
Invalid regular expressions would error out on SearchQuery's getCursor() method. This is arguably an upstream bug, but we want to inform the user of invalid input anyway. We now show "Invalid regular expression" where the "$1 of $2" codemirror-find-results message is normally shown, and we add the error class to the Codex input. This is to be consistent with how the 2017 editor behaves. Also disable autocompletion which is more often distracting that helpful for a search field. Bump codemirror/search to include a fix where the selection isn't updated after a regex replacement. See https://discuss.codemirror.net/t/8832 Bug: T371436 Change-Id: I68722da98ef4925439caa64e8f3366031d56cf8e
77 lines
9.1 KiB
JSON
77 lines
9.1 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"McDutchie",
|
|
"Minh Nguyen",
|
|
"MusikAnimal",
|
|
"Raymond",
|
|
"Shirayuki",
|
|
"SkyDaisy9",
|
|
"pastakhov"
|
|
]
|
|
},
|
|
"codemirror-desc": "{{desc|name=Code Mirror|url=https://www.mediawiki.org/wiki/Extension:CodeMirror}}\n\nAdditional info: Description of \"Syntax highlighting\" in wiki\n[[mw:Extension:SyntaxHighlight GeSHi]]",
|
|
"codemirror-toggle-label": "Title tooltip for button to toggle CodeMirror in the editing toolbar.",
|
|
"codemirror-toggle-label-short": "Label shown next to the CodeMirror icon in the editing toolbar. This message should be as brief as possible. {{msg-mw|codemirror-toggle-label}} is the full message, and is shown as the tooltip for the button.",
|
|
"codemirror-prefs-summary": "Used in [[Special:Preferences]] in the section titled {{msg-mw|prefs-syntax-highlighting}}, at the top as a summary for the whole section.",
|
|
"codemirror-prefs-enable": "Used in user preferences as label for enabling syntax highlighting.",
|
|
"codemirror-prefs-title": "Syntax highlighting preferences",
|
|
"codemirror-prefs-templatefolding": "Label for the option to enable folding of template parameters in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-autocomplete": "Label for the option to enable autocompletion in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-bidiisolation": "Label for the option to enable bidirectional text isolation in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-bracketmatching": "Label for the option to enable bracket matching in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-linenumbering": "Label for the option to show line numbers in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-linewrapping": "Label for the option to wrap lines in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-activeline": "Label for the option to highlight the active line in the CodeMirror preferences panel.",
|
|
"codemirror-prefs-specialchars": "Label for the option to show special characters in the CodeMirror preferences panel.",
|
|
"codemirror-v6-prefs-colorblind": "Used in user preferences as label for enabling the colorblind-friendly option. This is a shorter version of {{msg-mw|codemirror-prefs-colorblind}} shown under section {{msg-mw|prefs-syntax-highlighting}} on wikis using CodeMirror 6.",
|
|
"codemirror-prefs-colorblind": "Used in user preferences as label for enabling the colorblind-friendly option.",
|
|
"codemirror-prefs-colorblind-help": "Used in user preferences as remark on the colorblind-friendly option.",
|
|
"codemirror-close": "Tooltip text for the 'Close' button in CodeMirror panels.",
|
|
"codemirror-find": "Placeholder text for the input in the CodeMirror search panel.",
|
|
"codemirror-next": "Tooltip text for the 'Find next' button in the CodeMirror search panel.",
|
|
"codemirror-previous": "Tooltip text for the 'Find previous' button in the CodeMirror search panel.",
|
|
"codemirror-all": "Label for the 'All' button in the CodeMirror search panel, which finds all the results. See also {{msg-mw|codemirror-all-tooltip}}.",
|
|
"codemirror-all-tooltip": "Tooltip shown when hovering over the 'All' button in the CodeMirror search panel.",
|
|
"codemirror-match-case": "Tooltip for the 'Match case' button in the CodeMirror search panel.",
|
|
"codemirror-regexp": "Tooltip for the 'Regular expression' button in the CodeMirror search panel.",
|
|
"codemirror-regexp-invalid": "Error message shown when the regular expression entered in the CodeMirror search panel is invalid.",
|
|
"codemirror-by-word": "Tooltip for the 'By word' button in the CodeMirror search panel.",
|
|
"codemirror-replace": "Label for the 'Replace' button in the CodeMirror search panel.",
|
|
"codemirror-replace-placeholder": "Placeholder text for the 'Replace' input in the CodeMirror search panel.",
|
|
"codemirror-replace-all": "Label for the 'Replace all' button in the CodeMirror search panel.",
|
|
"codemirror-done": "Label for the 'Done' button in CodeMirror panels.\n{{Identical|Done}}",
|
|
"codemirror-find-results": "Label for find results showing how many results were found ($2), and which one is currently highlighted ($1).\n{{Identical|Of}}",
|
|
"codemirror-goto-line": "Label for the 'Go to line' input field.",
|
|
"codemirror-goto-line-go": "Label for the 'Go to line' submit button.\n{{Identical|Go}}",
|
|
"codemirror-control-character": "Tooltip text shown when hovering over special characters. $1 is the Unicode value of the special character.",
|
|
"codemirror-special-char-null": "Tooltip text shown when hovering over a null character. See [[wikidata:Q617945]] for possible translations.",
|
|
"codemirror-special-char-bell": "Tooltip text shown when hovering over a bell character. See [[wikidata:Q815674]] for possible translations.",
|
|
"codemirror-special-char-backspace": "Tooltip text shown when hovering over a backspace character. See [[wikidata:Q110028699]] for possible translations.",
|
|
"codemirror-special-char-newline": "Tooltip text shown when hovering over a newline character. See [[wikidata:Q184914]] for possible translations.",
|
|
"codemirror-special-char-vertical-tab": "Tooltip text shown when hovering over a vertical tab character. See [[wikidata:Q87529625]] for possible translations.",
|
|
"codemirror-special-char-carriage-return": "Tooltip text shown when hovering over a carriage return character. See [[wikidata:Q283976]] for possible translations.",
|
|
"codemirror-special-char-escape": "Tooltip text shown when hovering over an escape character. See [[wikidata:Q998991]] for possible translations.",
|
|
"codemirror-special-char-nbsp": "Tooltip text shown when hovering over an non-breaking space character. See [[wikidata:Q1053612]] for possible translations.",
|
|
"codemirror-special-char-zero-width-space": "Tooltip text shown when hovering over a zero-width space character. See [[wikidata:Q2604861]] for possible translations.",
|
|
"codemirror-special-char-zero-width-non-joiner": "Tooltip text shown when hovering over a zero-width non-joiner character. See [[wikidata:Q863569]] for possible translations.",
|
|
"codemirror-special-char-zero-width-joiner": "Tooltip text shown when hovering over a zero-width joiner character. See [[wikidata:Q614232]] for possible translations.",
|
|
"codemirror-special-char-left-to-right-mark": "Tooltip text shown when hovering over a left-to-right mark character. See [[wikidata:Q1022245]] for possible translations.",
|
|
"codemirror-special-char-right-to-left-mark": "Tooltip text shown when hovering over a right-to-left character. See [[wikidata:Q1017375]] for possible translations.",
|
|
"codemirror-special-char-line-separator": "Tooltip text shown when hovering over a line separator character. See [[wikidata:Q87523336]] for possible translations.",
|
|
"codemirror-special-char-left-to-right-override": "Tooltip text shown when hovering over a left-to-right override character. See [[wikidata:Q87523350]] for possible translations.",
|
|
"codemirror-special-char-right-to-left-override": "Tooltip text shown when hovering over a right-to-left override character. See [[wikidata:Q87523352]] for possible translations.",
|
|
"codemirror-special-char-narrow-nbsp": "Tooltip text shown when hovering over a narrow non-breaking space character. See [[wikidata:Q3058198]] for possible translations.",
|
|
"codemirror-special-char-left-to-right-isolate": "Tooltip text shown when hovering over a left-to-right isolate character. See [[wikidata:Q87523498]] for possible translations.",
|
|
"codemirror-special-char-right-to-left-isolate": "Tooltip text shown when hovering over a right-to-left isolate character. See [[wikidata:Q87523500]] for possible translations.",
|
|
"codemirror-special-char-pop-directional-isolate": "Tooltip text shown when hovering over a pop directional character. See [[wikidata:Q87523504]] for possible translations.\n\nIsolate override allows for overriding the default directional properties of a portion of text. The Pop Directional Isolate character tells the Unicode bidirectional text algorithm to \"pop\" or terminate the current isolate embedding or isolate override sequence, returning the directional properties to those of the surrounding text.",
|
|
"codemirror-special-char-paragraph-separator": "Tooltip text shown when hovering over a paragraph separator character. See [[wikidata:Q87523339]] for possible translations.",
|
|
"codemirror-special-char-zero-width-no-break-space": "Tooltip text shown when hovering over a zero-width word joiner character. See [[wikidata:Q8069466]] for possible translations.",
|
|
"codemirror-special-char-object-replacement": "Tooltip text shown when hovering over a object replacement character. See [[wikidata:Q9398047]] for possible translations.\n\nThe “object replacement character” (U+FFFC) is used as a placeholder in the text for another unspecified object, for example in a [[:w:Compound document|compound document]].",
|
|
"codemirror-fold-template": "Tooltip text shown when hovering over a foldable template.",
|
|
"codemirror-unfold": "Tooltip text shown when hovering over a placeholder for folded code.",
|
|
"codemirror-folded-code": "Aria label for a placeholder for folded code.",
|
|
"prefs-accessibility": "Section heading in the user preferences for accessibility topics.",
|
|
"prefs-syntax-highlighting": "Used in [[Special:Preferences]], tab \"Editing\" ({{int:prefs-editing}})."
|
|
}
|