Move most ReferencePreviews related i18n messages over to Cite

I'm importing the current keys from the Popups extension without
renaming. After that's done keys can be renamed and we can take
care off the fallback solutions.

Bug: T363156
Change-Id: I788c16c5bddc0df7f00dbbc39625b9adaa5bf184
This commit is contained in:
WMDE-Fisch 2024-05-05 10:51:27 +03:00
parent d05b738a29
commit 2d2efd8259
3 changed files with 23 additions and 0 deletions

View file

@ -41,6 +41,13 @@
"cite-tracking-category-cite-error-desc": "Pages in this category have errors in the usage of references tags.",
"cite-tracking-category-ref-extends": "Pages that use extended references",
"cite-tracking-category-ref-extends-desc": "Pages in this category use the \"extends\" attribute of the <ref> tag.",
"popups-refpreview-reference": "Reference",
"popups-refpreview-book": "Book reference",
"popups-refpreview-journal": "Journal reference",
"popups-refpreview-news": "News reference",
"popups-refpreview-note": "Note",
"popups-refpreview-web": "Web reference",
"popups-refpreview-collapsible-placeholder": "This reference includes a figure which does not fit in the preview.",
"cite_reference_backlink_symbol": "↑",
"cite_reference_link": "<sup id=\"$1\" class=\"reference\">[[#$2|&#91;$3&#93;]]</sup>",
"cite_references_link_one": "<li id=\"$1\"$4><span class=\"mw-cite-backlink\">[[#$2|↑]]</span> $3</li>",

View file

@ -45,6 +45,13 @@
"cite-tracking-category-cite-error-desc": "Tracking category description.",
"cite-tracking-category-ref-extends": "{{tracking category name}}\nThe [[:mw:Special:MyLanguage/Help:Tracking categories|tracking category]] to add to the article if it uses <code>&lt;ref&gt;</code> tags with an <code>extends</code> attribute.",
"cite-tracking-category-ref-extends-desc": "Description of the extends feature tracking category.",
"popups-refpreview-reference": "Default heading for popups that show previews of references as provided by the Cite extension's <ref> tags (also known as footnotes).\n{{Identical|Reference}}",
"popups-refpreview-book": "Heading for a popup previewing a citation from a book.\n{{Identical|Book}}",
"popups-refpreview-journal": "Heading for a popup previewing a citation from a journal.\n{{Identical|Journal}}",
"popups-refpreview-news": "Heading for a popup previewing a citation from the news.\n{{Identical|News}}",
"popups-refpreview-note": "Heading for a popup previewing a footnote.\n{{Identical|Note}}",
"popups-refpreview-web": "Heading for a popup previewing a citation from a website.\n{{Identical|Website}}",
"popups-refpreview-collapsible-placeholder": "Placeholder text for collapsible tables, templates, or other large elements inside of a reference.",
"cite_reference_backlink_symbol": "{{optional}}\nSymbol used for the reference section, used to link back to where the reference is used.",
"cite_reference_link": "{{notranslate}}\n\nParameters:\n* $1 - ref key\n* $2 - references key\n* $3 - link label",
"cite_references_link_one": "{{notranslate}}\n\nParameters:\n* $1 - references key\n* $2 - ref key\n* $3 - reference text\n* $4 - optional CSS class for direction",

View file

@ -108,6 +108,15 @@ class CiteHooks implements
'styles' => [
'referencePreview.less',
],
'messages' => [
'popups-refpreview-reference',
'popups-refpreview-book',
'popups-refpreview-journal',
'popups-refpreview-news',
'popups-refpreview-note',
'popups-refpreview-web',
'popups-refpreview-collapsible-placeholder',
],
'packageFiles' => [
'index.js',
'constants.js',