Alex Monk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/287847
Change subject: Change 'Cite' label to 'Citation' if the tool is going to be
moved into the Insert menu instead
......................................................................
Change 'Cite' label to 'Citation' if the tool is going to be moved into the
Insert menu instead
To be merged with Ic87f996f
Bug: T133727
Change-Id: Ifd688ae648ab8b998e807a8bb0cc5fcbe982f8aa
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M modules/ve.ui.CiteFromIdInspectorTool.js
4 files changed, 9 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Citoid
refs/changes/47/287847/1
diff --git a/extension.json b/extension.json
index e1b4369..53c9ce0 100644
--- a/extension.json
+++ b/extension.json
@@ -58,6 +58,7 @@
"citoid-citefromiddialog-title",
"citoid-citefromiddialog-use-general-error-message",
"citoid-citefromidtool-title",
+ "citoid-citefromidtool-title-othergroup",
"citoid-referencecontextitem-convert-button",
"citoid-referencecontextitem-convert-message",
"citoid-template-type-map.json",
diff --git a/i18n/en.json b/i18n/en.json
index c8bf905..aeebd40 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -16,6 +16,7 @@
"citoid-citefromiddialog-title": "Add a citation",
"citoid-citefromiddialog-use-general-error-message": "We couldn't make
a citation for you. You can create one manually using the
\"{{int:citoid-citefromiddialog-mode-manual}}\" tab above.",
"citoid-citefromidtool-title": "Cite",
+ "citoid-citefromidtool-title-othergroup": "Citation",
"citoid-desc": "Provides access points between the citoid service and
MediaWiki",
"citoid-referencecontextitem-convert-button": "Convert",
"citoid-referencecontextitem-convert-message": "This reference consists
of just an external link. You can use the
\"{{int:citoid-referencecontextitem-convert-button}}\" button below to generate
a properly formatted reference.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 2b8d75e..1e53863 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -25,6 +25,7 @@
"citoid-citefromiddialog-title": "The title displayed on the dialog",
"citoid-citefromiddialog-use-general-error-message": "Label notifying
the user there was a problem creating their reference, and offering to use the
full citation tool.",
"citoid-citefromidtool-title": "Label for the button to add a citation
in the toolbar\n{{Identical|Cite}}",
+ "citoid-citefromidtool-title-othergroup": "Label for the button to add
a citation in the insert menu",
"citoid-desc":
"{{desc|name=Citoid|url=https://www.mediawiki.org/wiki/Citoid}}",
"citoid-referencecontextitem-convert-button": "Label for the button to
convert a plain reference to a Citoid reference.\n{{Identical|Convert}}",
"citoid-referencecontextitem-convert-message": "Message explaining the
functionality of the button to convert a plain reference to a Citoid
reference.",
diff --git a/modules/ve.ui.CiteFromIdInspectorTool.js
b/modules/ve.ui.CiteFromIdInspectorTool.js
index c059ab2..764b9f2 100644
--- a/modules/ve.ui.CiteFromIdInspectorTool.js
+++ b/modules/ve.ui.CiteFromIdInspectorTool.js
@@ -25,8 +25,12 @@
ve.ui.CiteFromIdInspectorTool.static.name = 'citefromid';
ve.ui.CiteFromIdInspectorTool.static.autoAddToCatchall = false;
-ve.ui.CiteFromIdInspectorTool.static.title = OO.ui.deferMsg(
'citoid-citefromidtool-title' );
-ve.ui.CiteFromIdInspectorTool.static.label = OO.ui.deferMsg(
'citoid-citefromidtool-title' );
+ve.ui.CiteFromIdInspectorTool.static.title = OO.ui.deferMsg(
+ mw.config.get( 'wgCiteVisualEditorOtherGroup' ) ?
+ 'citoid-citefromidtool-title-othergroup' :
+ 'citoid-citefromidtool-title'
+);
+ve.ui.CiteFromIdInspectorTool.static.label =
ve.ui.CiteFromIdInspectorTool.static.title;
ve.ui.CiteFromIdInspectorTool.static.icon = 'quotes';
ve.ui.CiteFromIdInspectorTool.static.displayBothIconAndLabel = true;
ve.ui.CiteFromIdInspectorTool.static.group = 'cite';
--
To view, visit https://gerrit.wikimedia.org/r/287847
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd688ae648ab8b998e807a8bb0cc5fcbe982f8aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Citoid
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits