mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
81ec0c292a
Use Codex design tokens where possible, and implement custom dark theming for things for which there is no suitable design token. This means we're changing the colors for light mode ever so slightly. We need to style the search panel for dark mode, so we might as well tackle T371436 and use CSS-only Codex components. The same is done for the "Go to line" panel (can be opened with Mod+Alt+g). The messages in this panel are now also localizable. The search panel (and goto line panel) are abstracted, with helpers to create the Codex components. These will not only be used here but also for the upcoming preferences panel (T359498). Visually, the search and goto panels were inspired by the 2017 editor and share a similar layout. CodeMirror similarly uses a more compact design than usual to maximize the real estate of the editor itself. Other changes: * Bump codemirror/search to get latest bug fixes * Remove stylelint ignorance and fix errors * Move CM5 styles to ext.CodeMirror.less * Move CM-specific styles out of mediawiki.less and into codemirror.less * Move WikiEditor-specific styles to codemirror.wikieditor.less (incidentally, these only apply to CodeMirror 6) * Correct qqq documentation; the "dialog" should be called a "panel" * extension.json: alphabetize list of messages Bug: T365311 Bug: T371436 Bug: T359498 Change-Id: I6a3bbc6bce4e490886753ff484e377c1763de456
60 lines
3 KiB
JSON
60 lines
3 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"pastakhov",
|
|
"MusikAnimal"
|
|
]
|
|
},
|
|
"codemirror-desc": "Provides syntax highlighting in wikitext editor",
|
|
"codemirror-toggle-label": "Syntax highlighting",
|
|
"codemirror-toggle-label-short": "Syntax",
|
|
"codemirror-prefs-summary": "You can learn more about this feature by reading the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:CodeMirror help page].",
|
|
"codemirror-prefs-enable": "Enable syntax highlighting for wikitext",
|
|
"codemirror-v6-prefs-colorblind": "Use colorblind-friendly scheme",
|
|
"codemirror-prefs-colorblind": "Enable colorblind-friendly scheme for syntax highlighting when editing wikitext",
|
|
"codemirror-prefs-colorblind-help": "If you use a gadget for syntax highlighting, this preference will not work.",
|
|
"codemirror-find": "Find",
|
|
"codemirror-next": "Find next",
|
|
"codemirror-previous": "Find previous",
|
|
"codemirror-all": "All",
|
|
"codemirror-all-tooltip": "Select all matches",
|
|
"codemirror-match-case": "Match case",
|
|
"codemirror-regexp": "Regular expression",
|
|
"codemirror-by-word": "By word",
|
|
"codemirror-replace": "Replace",
|
|
"codemirror-replace-placeholder": "Replace",
|
|
"codemirror-replace-all": "Replace all",
|
|
"codemirror-done": "Done",
|
|
"codemirror-goto-line": "Go to line",
|
|
"codemirror-goto-line-go": "Go",
|
|
"codemirror-control-character": "Control character $1",
|
|
"codemirror-special-char-null": "Null character",
|
|
"codemirror-special-char-bell": "Bell character",
|
|
"codemirror-special-char-backspace": "Backspace",
|
|
"codemirror-special-char-newline": "Newline",
|
|
"codemirror-special-char-vertical-tab": "Vertical tab",
|
|
"codemirror-special-char-carriage-return": "Carriage return",
|
|
"codemirror-special-char-escape": "Escape character",
|
|
"codemirror-special-char-nbsp": "Non-breaking space",
|
|
"codemirror-special-char-zero-width-space": "Zero-width space",
|
|
"codemirror-special-char-zero-width-non-joiner": "Zero-width non-joiner",
|
|
"codemirror-special-char-zero-width-joiner": "Zero-width joiner",
|
|
"codemirror-special-char-left-to-right-mark": "Left-to-right mark",
|
|
"codemirror-special-char-right-to-left-mark": "Right-to-left mark",
|
|
"codemirror-special-char-line-separator": "Line separator",
|
|
"codemirror-special-char-left-to-right-override": "Left-to-right override",
|
|
"codemirror-special-char-right-to-left-override": "Right-to-left override",
|
|
"codemirror-special-char-narrow-nbsp": "Narrow non-breaking space",
|
|
"codemirror-special-char-left-to-right-isolate": "Left-to-right isolate",
|
|
"codemirror-special-char-right-to-left-isolate": "Right-to-left isolate",
|
|
"codemirror-special-char-pop-directional-isolate": "Pop directional isolate",
|
|
"codemirror-special-char-paragraph-separator": "Paragraph separator",
|
|
"codemirror-special-char-zero-width-no-break-space": "Word joiner",
|
|
"codemirror-special-char-object-replacement": "Object replacement character",
|
|
"codemirror-fold-template": "Fold template parameters",
|
|
"codemirror-unfold": "unfold",
|
|
"codemirror-folded-code": "folded code",
|
|
"prefs-accessibility": "Accessibility",
|
|
"prefs-syntax-highlighting": "Syntax highlighting"
|
|
}
|