Mooeypoo has uploaded a new change for review. https://gerrit.wikimedia.org/r/196645
Change subject: [wip] Add general citations dialog ...................................................................... [wip] Add general citations dialog Add a dialog to group the possible citation types and allow the user to choose the right citation dialog for them. Bug: T62768 Change-Id: I22a64265475b1b4c94b46c5af196bd08331a05e7 --- M VisualEditor.php M extension.json M modules/ve-mw/i18n/en.json M modules/ve-mw/i18n/qqq.json 4 files changed, 19 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/45/196645/1 diff --git a/VisualEditor.php b/VisualEditor.php index dd2dcb3..8771e28 100644 --- a/VisualEditor.php +++ b/VisualEditor.php @@ -1286,6 +1286,7 @@ 'modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js', 'modules/ve-mw/ui/dialogs/ve.ui.MWReferencesListDialog.js', 'modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js', + 'modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js', 'modules/ve-mw/ui/tools/ve.ui.MWReferenceDialogTool.js', 'modules/ve-mw/ui/tools/ve.ui.MWCitationDialogTool.js', @@ -1298,6 +1299,7 @@ 'modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceGroupInputWidget.css', 'modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceResultWidget.css', 'modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceSearchWidget.css', + 'modules/ve-mw/ui/styles/dialogs/ve.ui.MWGeneralReferenceDialog.css', ), 'dependencies' => array( 'ext.visualEditor.mwreference.core', @@ -1305,6 +1307,8 @@ 'ext.visualEditor.mediawiki' ), 'messages' => array( + 'visualeditor-dialog-generalreference-intro', + 'visualeditor-dialog-generalreference-title', 'visualeditor-dialog-reference-editing-reused', 'visualeditor-dialog-reference-options-group-label', 'visualeditor-dialog-reference-options-group-placeholder', @@ -1312,11 +1316,13 @@ 'visualeditor-dialog-reference-options-section', 'visualeditor-dialog-reference-title', 'visualeditor-dialog-reference-useexisting-label', + 'visualeditor-dialog-reference-useexisting-full-label', 'visualeditor-dialog-reference-useexisting-tool', 'visualeditor-dialog-referenceslist-contextitem-description-general', 'visualeditor-dialog-referenceslist-contextitem-description-named', 'visualeditor-dialog-referenceslist-title', 'visualeditor-dialogbutton-reference-tooltip', + 'visualeditor-dialogbutton-reference-full-label', 'visualeditor-dialogbutton-referenceslist-tooltip', 'visualeditor-reference-input-placeholder', ), diff --git a/extension.json b/extension.json index 3dea1dd..c31702b 100644 --- a/extension.json +++ b/extension.json @@ -1310,6 +1310,7 @@ "modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js", "modules/ve-mw/ui/dialogs/ve.ui.MWReferencesListDialog.js", "modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js", + "modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js", "modules/ve-mw/ui/tools/ve.ui.MWReferenceDialogTool.js", "modules/ve-mw/ui/tools/ve.ui.MWCitationDialogTool.js", "modules/ve-mw/ui/contextitems/ve.ui.MWReferenceContextItem.js", @@ -1319,7 +1320,8 @@ "styles": [ "modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceGroupInputWidget.css", "modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceResultWidget.css", - "modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceSearchWidget.css" + "modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceSearchWidget.css", + "modules/ve-mw/ui/styles/dialogs/ve.ui.MWGeneralReferenceDialog.css" ], "dependencies": [ "ext.visualEditor.mwreference.core", @@ -1338,6 +1340,8 @@ "visualeditor-dialog-referenceslist-contextitem-description-general", "visualeditor-dialog-referenceslist-contextitem-description-named", "visualeditor-dialog-referenceslist-title", + "visualeditor-dialogbutton-reference-full-label", + "visualeditor-dialog-reference-useexisting-full-label", "visualeditor-dialogbutton-reference-tooltip", "visualeditor-dialogbutton-referenceslist-tooltip", "visualeditor-reference-input-placeholder" diff --git a/modules/ve-mw/i18n/en.json b/modules/ve-mw/i18n/en.json index 48672af..6a55130 100644 --- a/modules/ve-mw/i18n/en.json +++ b/modules/ve-mw/i18n/en.json @@ -70,6 +70,8 @@ "visualeditor-dialog-beta-welcome-action-continue": "Continue", "visualeditor-dialog-beta-welcome-content": "This is our new, easier way to edit. It's still in beta, which means you might find parts of the page you can't edit, or encounter issues that need to be fixed. We encourage you to review your changes, and we welcome reports about any issues you might encounter in using VisualEditor (click the \"{{int:visualeditor-help-tool}}\" button to submit feedback). You can switch to the wikitext editor at any time by clicking on the \"$1\" tab, keeping any changes you have made.", "visualeditor-dialog-beta-welcome-title": "{{GENDER:$1|Welcome}} to VisualEditor", + "visualeditor-dialog-generalreference-intro": "Choose a type of source:", + "visualeditor-dialog-generalreference-title": "Add reference", "visualeditor-dialog-media-alttext-section": "Alternative text", "visualeditor-dialog-media-alttext-section-help": "You can use this to give a text description which is used for people who can't see the item. The description should be good enough for them to understand the purpose and information given by the media item. This is vital for blind users and other people using screen-reader software or text-only browsers.", "visualeditor-dialog-media-change-image": "Change image", @@ -184,6 +186,7 @@ "visualeditor-dialog-reference-options-name-label": "Re-use by this name", "visualeditor-dialog-reference-options-section": "Options", "visualeditor-dialog-reference-title": "Reference", + "visualeditor-dialog-reference-useexisting-full-label": "Re-use a citation that already exists on this page", "visualeditor-dialog-reference-useexisting-label": "Use an existing reference", "visualeditor-dialog-reference-useexisting-tool": "Re-use", "visualeditor-dialog-referenceslist-contextitem-description-general": "List of general references", @@ -219,6 +222,7 @@ "visualeditor-dialog-transclusion-title": "Transclusion", "visualeditor-dialogbutton-media-tooltip": "Media", "visualeditor-dialogbutton-meta-tooltip": "Page settings", + "visualeditor-dialogbutton-reference-full-label": "Basic form", "visualeditor-dialogbutton-reference-tooltip": "Basic", "visualeditor-dialogbutton-referenceslist-tooltip": "References list", "visualeditor-dialogbutton-template-tooltip": "Template", diff --git a/modules/ve-mw/i18n/qqq.json b/modules/ve-mw/i18n/qqq.json index a926410..db75781 100644 --- a/modules/ve-mw/i18n/qqq.json +++ b/modules/ve-mw/i18n/qqq.json @@ -79,6 +79,8 @@ "visualeditor-dialog-beta-welcome-action-continue": "Used as label for the Continue button which is used to close the dialog and continue using VisualEditor.\n{{Identical|Continue}}", "visualeditor-dialog-beta-welcome-content": "Text explaining VisualEditor is in beta.\n\nRefers to {{msg-mw|Visualeditor-help-tool}}.\n\nParameters:\n* $1 - {{msg-mw|Edit}}", "visualeditor-dialog-beta-welcome-title": "Title of the beta welcome dialog. Parameters:\n* $1 - username or empty string, for GENDER support", + "visualeditor-dialog-generalreference-intro": "Introduction text to the general reference dialog, requesting the user to choose the type of source to add", + "visualeditor-dialog-generalreference-title": "Title of the general references dialog.", "visualeditor-dialog-media-alttext-section": "Label for the image alternative text sub-section.", "visualeditor-dialog-media-alttext-section-help": "Message displayed as contextual help about the alternative text box to editors in the media editing dialog.", "visualeditor-dialog-media-change-image": "Label for the button to change the current image in the media edit dialog.", @@ -193,6 +195,7 @@ "visualeditor-dialog-reference-options-name-label": "Label for the reference name input", "visualeditor-dialog-reference-options-section": "Label for the reference options sub-section.\n{{Identical|Options}}", "visualeditor-dialog-reference-title": "{{Identical|Reference}}", + "visualeditor-dialog-reference-useexisting-full-label": "Full length label for the button to choose an existing reference", "visualeditor-dialog-reference-useexisting-label": "Label for button in reference dialog to insert a re-use of an existing reference", "visualeditor-dialog-reference-useexisting-tool": "Used as label for the button to let the user pick an existing reference from a list to insert a duplicate\n{{Identical|Re-use}}", "visualeditor-dialog-referenceslist-contextitem-description-general": "Message shown to an editor when they click on a reference list without a group, explaining to them that the item will list all \"general\" references on the page.", @@ -228,6 +231,7 @@ "visualeditor-dialog-transclusion-title": "{{Identical|Transclusion}}", "visualeditor-dialogbutton-media-tooltip": "{{Identical|Media}}", "visualeditor-dialogbutton-meta-tooltip": "{{Identical|Page settings}}", + "visualeditor-dialogbutton-reference-full-label": "Full length label for the button to choose the basic reference", "visualeditor-dialogbutton-reference-tooltip": "An item in the citation menu for a plain reference without any citation template. This should be an adjective for the word \"citation\" or \"reference\". The term should be in contrast to the easier and more powerful citations available when using a template.\n\n{{Identical|Basic}}", "visualeditor-dialogbutton-referenceslist-tooltip": "Tooltip for button for dialog that inserts the references list object (<code><nowiki>References list</nowiki></code>).\n{{Identical|References list}}", "visualeditor-dialogbutton-template-tooltip": "{{Identical|Template}}", -- To view, visit https://gerrit.wikimedia.org/r/196645 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I22a64265475b1b4c94b46c5af196bd08331a05e7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Mooeypoo <mor...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits