mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-11 16:58:14 +00:00
Consistently talk about "Reference" instead of "Footnote"
During story time on 2019-03-12 it was decided to consistently talk about "References" in all messages. Main motivation is that this is the term the community is most familiar with, and it is also the term that is used in reference section headings most of the time. Bug: T215063 Change-Id: Iaab8d2c0da1546a3c9d27bc8e2e1c784050ed135
This commit is contained in:
parent
d07d70899f
commit
1d2becc25a
|
@ -156,12 +156,12 @@
|
|||
"popups-preview-footer-read",
|
||||
"popups-preview-disambiguation",
|
||||
"popups-preview-disambiguation-link",
|
||||
"popups-refpreview-footnote",
|
||||
"popups-refpreview-reference",
|
||||
"popups-refpreview-book",
|
||||
"popups-refpreview-journal",
|
||||
"popups-refpreview-news",
|
||||
"popups-refpreview-web",
|
||||
"popups-refpreview-jump-to-footnote"
|
||||
"popups-refpreview-jump-to-reference"
|
||||
],
|
||||
"dependencies": [
|
||||
"ext.popups.images",
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
"popups-prefs-optin-disabled-label": "Disable",
|
||||
"popups-prefs-disable-nav-gadgets-info": "You have to [[$1 | disable Navigation Popups Gadget]] from Gadgets tab to enable Page Previews",
|
||||
"popups-prefs-conflicting-gadgets-info": "Certain gadgets and other customizations may affect the performance of this feature. If you experience problems please review your gadgets and user scripts, including global ones.",
|
||||
"popups-refpreview-footnote": "Footnote",
|
||||
"popups-refpreview-reference": "Reference",
|
||||
"popups-refpreview-book": "Book reference",
|
||||
"popups-refpreview-journal": "Journal reference",
|
||||
"popups-refpreview-news": "News reference",
|
||||
"popups-refpreview-web": "Web reference",
|
||||
"popups-refpreview-jump-to-footnote": "Jump to footnote",
|
||||
"popups-refpreview-jump-to-reference": "Jump to reference",
|
||||
"popups-refpreview-beta-feature-message": "Reference Previews",
|
||||
"popups-refpreview-beta-feature-description": "Show a preview of a footnote by hovering over its footnote marker.\n\nPlease note: In order to use this beta feature, you have to [[#mw-prefsection-rendering|enable]] [https://www.mediawiki.org/wiki/Page_Previews Page Previews].\n\nPlease also note: If you’re using the [https://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups Navigation popups] gadget, you won’t see Reference Previews. If you’re using the [[mw:Reference Tooltips|Reference Tooltips]] gadget, both pop-ups from Reference Tooltips and from Reference Previews will appear."
|
||||
"popups-refpreview-beta-feature-description": "Show a preview of a reference by hovering over its footnote marker.\n\nPlease note: In order to use this beta feature, you have to [[#mw-prefsection-rendering|enable]] [https://www.mediawiki.org/wiki/Page_Previews Page Previews].\n\nPlease also note: If you’re using the [https://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups Navigation popups] gadget, you won’t see Reference Previews. If you’re using the [[mw:Reference Tooltips|Reference Tooltips]] gadget, both pop-ups from Reference Tooltips and from Reference Previews will appear."
|
||||
}
|
||||
|
|
|
@ -34,12 +34,12 @@
|
|||
"popups-prefs-optin-disabled-label": "Label for Page Previews opt out\n{{Identical|Disable}}",
|
||||
"popups-prefs-disable-nav-gadgets-info": "Help message telling to disable Navigation Popups gadget in order to enable page previews.\n\nParameters:\n* $1 – Link to the Gadgets tab of Preferences",
|
||||
"popups-prefs-conflicting-gadgets-info": "Help message informing about possible conflicts with other gadgets/customizations",
|
||||
"popups-refpreview-footnote": "Default heading for popups that show previews of footnotes as provided by the Cite extension's <ref> tags (also known as references).",
|
||||
"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-web": "Heading for a popup previewing a citation from a website.\n{{Identical|Website}}",
|
||||
"popups-refpreview-jump-to-footnote": "Label for a link at the bottom of a footnote popup that makes the focus jump down to the original footnote on the page.",
|
||||
"popups-refpreview-jump-to-reference": "Label for a link at the bottom of a reference popup that makes the focus jump down to the original footnote on the page.",
|
||||
"popups-refpreview-beta-feature-message": "Label for the Reference Previews Beta feature.",
|
||||
"popups-refpreview-beta-feature-description": "Description for the Reference Previews Beta feature, describing the feature that will be enabled."
|
||||
}
|
||||
|
|
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -17,10 +17,10 @@ export function renderReferencePreview(
|
|||
model
|
||||
) {
|
||||
const type = KNOWN_TYPES.indexOf( model.referenceType ) < 0 ? 'generic' : model.referenceType,
|
||||
titleMsg = `popups-refpreview-${ type === 'generic' ? 'footnote' : type }`,
|
||||
titleMsg = `popups-refpreview-${ type === 'generic' ? 'reference' : type }`,
|
||||
title = escapeHTML( mw.msg( titleMsg ) ),
|
||||
url = escapeHTML( model.url ),
|
||||
linkMsg = escapeHTML( mw.msg( 'popups-refpreview-jump-to-footnote' ) );
|
||||
linkMsg = escapeHTML( mw.msg( 'popups-refpreview-jump-to-reference' ) );
|
||||
|
||||
const $el = renderPopup( model.type,
|
||||
`
|
||||
|
|
|
@ -336,7 +336,7 @@ QUnit.test( 'createReferencePreview default title', ( assert ) => {
|
|||
|
||||
assert.strictEqual(
|
||||
preview.el.find( '.mwe-popups-title' ).text().trim(),
|
||||
'<popups-refpreview-footnote>'
|
||||
'<popups-refpreview-reference>'
|
||||
);
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue