jenkins-bot has submitted this change and it was merged.

Change subject: Make citation dialog tabs translateable
......................................................................


Make citation dialog tabs translateable

Bug: T99712
Change-Id: Idb1867595aa6c6a62f2e35419a91e59d651a3028
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M modules/ve.ui.CiteFromIdInspector.js
4 files changed, 21 insertions(+), 3 deletions(-)

Approvals:
  Alex Monk: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index cd81832..aef830f 100644
--- a/extension.json
+++ b/extension.json
@@ -39,6 +39,9 @@
                                "citoid-citation-widget-insert-button",
                                "citoid-citeFromIDDialog-back",
                                "citoid-citeFromIDDialog-lookup-button",
+                               "citoid-citeFromIDDialog-mode-auto",
+                               "citoid-citeFromIDDialog-mode-manual",
+                               "citoid-citeFromIDDialog-mode-reuse",
                                "citoid-citeFromIDDialog-search",
                                "citoid-citeFromIDDialog-search-label",
                                "citoid-citeFromIDDialog-search-placeholder",
diff --git a/i18n/en.json b/i18n/en.json
index e8e9965..010a070 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -6,6 +6,9 @@
        "citoid-citation-widget-insert-button": "Insert",
        "citoid-citeFromIDDialog-back": "Back",
        "citoid-citeFromIDDialog-lookup-button": "Generate",
+       "citoid-citeFromIDDialog-mode-auto": "Automatic",
+       "citoid-citeFromIDDialog-mode-manual": "Manual",
+       "citoid-citeFromIDDialog-mode-reuse": "Re-use",
        "citoid-citeFromIDDialog-search": "Search",
        "citoid-citeFromIDDialog-search-label": "URL or DOI",
        "citoid-citeFromIDDialog-search-placeholder": "e.g. 
http://www.example.com";,
diff --git a/i18n/qqq.json b/i18n/qqq.json
index ef0082b..65dcfae 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -11,6 +11,9 @@
        "citoid-citation-widget-insert-button": "Label for the button to insert 
a chosen reference.\n{{Identical|Insert}}",
        "citoid-citeFromIDDialog-back": "Label for the button to go back to the 
generate panel in the inspector.\n{{Identical|Back}}",
        "citoid-citeFromIDDialog-lookup-button": "Label for the generate button 
for citation inputs. Unlike \"search\", \"generate\" is a process in which 
there is certainty that a particular result will be found, for example, 
matching a valid ISBN to a book title.\n{{Identical|Generate}}",
+       "citoid-citeFromIDDialog-mode-auto": "Label of tab in citation dialog, 
used to select mode.",
+       "citoid-citeFromIDDialog-mode-manual": "Label of tab in citation 
dialog, used to select mode.",
+       "citoid-citeFromIDDialog-mode-reuse": "Label of tab in citation dialog, 
used to select mode.",
        "citoid-citeFromIDDialog-search": "Text for the search 
button.\n{{Identical|Search}}",
        "citoid-citeFromIDDialog-search-label": "Label for the URL/DOI search 
field.",
        "citoid-citeFromIDDialog-search-placeholder": "Placeholder for the 
URL/DOI search field.",
diff --git a/modules/ve.ui.CiteFromIdInspector.js 
b/modules/ve.ui.CiteFromIdInspector.js
index 9adf826..b961c80 100644
--- a/modules/ve.ui.CiteFromIdInspector.js
+++ b/modules/ve.ui.CiteFromIdInspector.js
@@ -92,9 +92,18 @@
        this.modeSelect = new OO.ui.TabSelectWidget( {
                classes: [ 've-ui-citeFromIdInspector-modeSelect' ],
                items: [
-                       new OO.ui.TabOptionWidget( { data: 'auto', label: 
'Automatic' } ),
-                       new OO.ui.TabOptionWidget( { data: 'manual', label: 
'Manual' } ),
-                       new OO.ui.TabOptionWidget( { data: 'reuse', label: 
'Re-use' } )
+                       new OO.ui.TabOptionWidget( {
+                               data: 'auto',
+                               label: mw.msg( 
'citoid-citeFromIDDialog-mode-auto' )
+                       } ),
+                       new OO.ui.TabOptionWidget( {
+                               data: 'manual',
+                               label: mw.msg( 
'citoid-citeFromIDDialog-mode-manual' )
+                       } ),
+                       new OO.ui.TabOptionWidget( {
+                               data: 'reuse',
+                               label: mw.msg( 
'citoid-citeFromIDDialog-mode-reuse' )
+                       } )
                ]
        } );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/212262
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idb1867595aa6c6a62f2e35419a91e59d651a3028
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Citoid
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Alex Monk <kren...@gmail.com>
Gerrit-Reviewer: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Mvolz <mv...@wikimedia.org>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to