diff: add help message to inline switch
Add help message that explains what the inline toggle does when you click it. Remove 'diff-table-format-label` text since it is not being used. Bug: T346429 Change-Id: Idc3aefffd03d491a573b27c7e18b337f68bbc9cf
This commit is contained in:
parent
f98ae5faa9
commit
aae15dca22
4 changed files with 5 additions and 3 deletions
|
|
@ -260,7 +260,8 @@ class TextSlotDiffRenderer extends SlotDiffRenderer {
|
|||
[
|
||||
'id' => 'mw-diffPage-inline-toggle-switch-layout',
|
||||
'label' => $context->msg( 'diff-inline-format-label' )->plain(),
|
||||
'infusable' => true
|
||||
'infusable' => true,
|
||||
'help' => $context->msg( 'diff-inline-switch-desc' )->plain()
|
||||
]
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1027,7 +1027,7 @@
|
|||
"diff-inline-tooltip-ins": "Content added",
|
||||
"diff-inline-tooltip-del": "Content deleted",
|
||||
"diff-inline-format-label": "Inline",
|
||||
"diff-table-format-label": "Table",
|
||||
"diff-inline-switch-desc": "Switches between inline format and two-column format",
|
||||
"diff-line-deleted": "⟵ delete",
|
||||
"diff-newline": "↲ newline",
|
||||
"difference-missing-revision": "{{PLURAL:$2|One revision|$2 revisions}} of this difference ($1) {{PLURAL:$2|was|were}} not found.\n\nThis is usually caused by following an outdated diff link to a page that has been deleted.\nDetails can be found in the [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} deletion log].",
|
||||
|
|
|
|||
|
|
@ -1280,7 +1280,7 @@
|
|||
"diff-inline-tooltip-ins": "Title for inserted content in a diff, shown as a tooltip on the content and also in a legend at the top of the diff.",
|
||||
"diff-inline-tooltip-del": "Title for deleted content in a diff, shown as a tooltip on the content and also in a legend at the top of the diff.",
|
||||
"diff-inline-format-label": "Used as label for inline diff format",
|
||||
"diff-table-format-label": "Used as label for table diff format",
|
||||
"diff-inline-switch-desc": "Used as a description in the help message for the inline switch",
|
||||
"diff-line-deleted": "Used as label when a deleted line is rendered in a diff.\n\nThe arrow in this message is supposed to look like the arrow on the backspace key (sometimes labeled \"delete\") on many physical keyboards. This arrow usually points to the left in all languages. '''Therefore, in RTL languages, use the ⟵ character and put it in the ''end'' of the translation.'''",
|
||||
"diff-newline": "Used as label when a new line is rendered in a diff\n\nThe arrow in this message is supposed to look like the arrow on the Enter key (sometimes labeled \"return\") on many physical keyboards. This arrow usually points to the left in all languages. '''Therefore, in RTL languages, use the ↲ character and put it in the ''end'' of the translation.'''",
|
||||
"difference-missing-revision": "Text displayed when the requested revision does not exist using a diff link.\n\nExample: [{{canonicalurl:Project:News|diff=426850&oldid=99999999}} Diff with invalid revision#]\n\nParameters:\n* $1 - the list of missing revision IDs\n* $2 - the number of items in $1 (one or two)",
|
||||
|
|
|
|||
|
|
@ -758,6 +758,7 @@ return [
|
|||
],
|
||||
'messages' => [
|
||||
'diff-inline-format-label',
|
||||
'diff-inline-switch-desc'
|
||||
]
|
||||
],
|
||||
'mediawiki.diff.styles' => [
|
||||
|
|
|
|||
Loading…
Reference in a new issue