Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/232699
Change subject: Split apihelp messages to separate i18n json files
......................................................................
Split apihelp messages to separate i18n json files
The intention is to make localization completion easier.
Something similar is done in core MediaWiki and
in the Translate extension.
Change-Id: Ifd4948683b8189c1cb5be9adafa0b81731a3a369
---
A api/i18n/en.json
A api/i18n/qqq.json
M extension.json
M i18n/en.json
M i18n/qqq.json
5 files changed, 101 insertions(+), 79 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/99/232699/1
diff --git a/api/i18n/en.json b/api/i18n/en.json
new file mode 100644
index 0000000..e9aab7f
--- /dev/null
+++ b/api/i18n/en.json
@@ -0,0 +1,53 @@
+{
+ "@metadata": {
+ "authors": [
+ "Amir E. Aharoni",
+ "Brad Jorsch",
+ "Siebrand Mazeland",
+ "Joel Sahleen",
+ "Kartik Mistry",
+ "This, that and the other",
+ "Niklas Laxström",
+ "Santhosh.thottingal"
+ ]
+ },
+ "apihelp-cxpublish-description": "Save a page created using the Content
Translation extension.",
+ "apihelp-cxpublish-param-title": "The title of the page to perform
actions on.",
+ "apihelp-cxpublish-param-html": "The content to save.",
+ "apihelp-cxpublish-param-from": "The source language code.",
+ "apihelp-cxpublish-param-to": "The target language code.",
+ "apihelp-cxpublish-param-sourcetitle": "The title of the source page.",
+ "apihelp-cxpublish-param-sourcerevision": "The revision of the source
page.",
+ "apihelp-cxpublish-param-status": "If <kbd>draft</kbd>, translation
will be saved as draft. If <kbd>published</kbd>, translation will be
published.",
+ "apihelp-cxpublish-param-progress": "Information about translation
completion (progress). JSON with the keys <code>any</code>, <code>human</code>,
<code>mt</code> and <code>mtSectionsCount</code>. The keys' values are
percentages.",
+ "apihelp-cxpublish-param-categories": "The categories to put the
published page in.",
+ "apihelp-cxpublish-param-wpCaptchaId": "Captcha ID (when saving with a
captcha response).",
+ "apihelp-cxpublish-param-wpCaptchaWord": "Answer to the captcha (when
saving with a captcha response).",
+ "apihelp-query+contenttranslation-description": "Query Content
Translation database for translations.",
+ "apihelp-query+contenttranslation-param-translationid": "Translation
ID.",
+ "apihelp-query+contenttranslation-example-1": "Get translations started
by the current user.",
+ "apihelp-query+contenttranslation-example-2": "Get translations draft
by ID.",
+ "apihelp-query+contenttranslation-example-3": "Find any translation for
the given title between given language pair",
+ "apihelp-query+contenttranslationstats-example-1": "Get Content
Translation statistics for all languages.",
+ "apihelp-cxconfiguration-description": "Fetch the Content Translation
configuration json for the given language pair",
+ "apihelp-cxconfiguration-param-from": "The source language code.",
+ "apihelp-cxconfiguration-param-to": "The target language code.",
+ "apihelp-cxconfiguration-example-1": "Fetch the Content Translation
configuration json for Spanish-Catalan language pair",
+ "apihelp-query+cxpublishedtranslations-description": "Fetch all
published translations information",
+ "apihelp-query+cxpublishedtranslations-param-from": "The source
language code.",
+ "apihelp-query+cxpublishedtranslations-param-to": "The target language
code.",
+ "apihelp-query+cxpublishedtranslations-example-1": "Fetch all published
translations",
+ "apihelp-query+cxpublishedtranslations-example-2": "Fetch all published
translations, translated from English",
+ "apihelp-query+cxpublishedtranslations-example-3": "Fetch all published
translations, translated from English to Spanish",
+ "apihelp-query+contenttranslationlangtrend-param-source": "The source
language code.",
+ "apihelp-query+contenttranslationlangtrend-param-target": "The target
language code.",
+ "apihelp-query+contenttranslationlangtrend-param-interval": "The
interval for calculating the trend. Can be <kbd>week</kbd> or
<kbd>month</kbd>.",
+ "apihelp-query+contenttranslationlangtrend-example-1": "Fetch the
publishing trend for the language pair es-ca with weekly intervals",
+ "apihelp-query+contenttranslationlangtrend-example-2": "Fetch the
publishing trend for all languages",
+ "apihelp-cxtoken-example-1": "Fetch the authentication token for
cxserver",
+ "apihelp-cxdelete-description": "Delete a draft translation created
using the Content Translation extension.",
+ "apihelp-cxdelete-param-from": "The source language code.",
+ "apihelp-cxdelete-param-to": "The target language code.",
+ "apihelp-cxdelete-param-sourcetitle": "The title of the source page.",
+ "apihelp-cxdelete-example-1": "Delete a draft associated with given
language pair and title."
+}
diff --git a/api/i18n/qqq.json b/api/i18n/qqq.json
new file mode 100644
index 0000000..33be192
--- /dev/null
+++ b/api/i18n/qqq.json
@@ -0,0 +1,46 @@
+{
+ "@metadata": {
+ "authors": [
+ "Santhosh.thottingal"
+ ]
+ },
+ "apihelp-cxpublish-description":
"{{doc-apihelp-description|cxpublish}}",
+ "apihelp-cxpublish-param-title":
"{{doc-apihelp-param|cxpublish|title}}",
+ "apihelp-cxpublish-param-html": "{{doc-apihelp-param|cxpublish|html}}",
+ "apihelp-cxpublish-param-from": "{{doc-apihelp-param|cxpublish|from}}",
+ "apihelp-cxpublish-param-to": "{{doc-apihelp-param|cxpublish|to}}",
+ "apihelp-cxpublish-param-sourcetitle":
"{{doc-apihelp-param|cxpublish|sourcetitle}}",
+ "apihelp-cxpublish-param-sourcerevision":
"{{doc-apihelp-param|cxpublish|sourcerevision}}",
+ "apihelp-cxpublish-param-status": "{{doc-important|DO NOT translate
\"draft\" and \"published\" which are enclosed in quotation
marks.}}\n\n{{doc-apihelp-param|cxpublish|status}}",
+ "apihelp-cxpublish-param-progress": "{{doc-important|DO NOT translate
\"any\", \"human\", \"mt\", and
\"mtSectionsCount\".}}\n\n{{doc-apihelp-param|cxpublish|progress}}",
+ "apihelp-cxpublish-param-categories":
"{{doc-apihelp-param|cxpublish|categories}}",
+ "apihelp-cxpublish-param-wpCaptchaId":
"{{doc-apihelp-param|cxpublish|wpCaptchaId}}",
+ "apihelp-cxpublish-param-wpCaptchaWord":
"{{doc-apihelp-param|cxpublish|wpCaptchaWord}}",
+ "apihelp-query+contenttranslation-description":
"{{doc-apihelp-description|query+contenttranslation}}",
+ "apihelp-query+contenttranslation-param-translationid":
"{{doc-apihelp-param|query+contenttranslation}}",
+ "apihelp-query+contenttranslation-example-1":
"{{doc-apihelp-example|query+contenttranslation}}",
+ "apihelp-query+contenttranslation-example-2":
"{{doc-apihelp-example|query+contenttranslation}}",
+ "apihelp-query+contenttranslation-example-3":
"{{doc-apihelp-example|query+contenttranslation}}",
+ "apihelp-query+contenttranslationstats-example-1":
"{{doc-apihelp-example|query+contenttranslationstats}}",
+ "apihelp-cxconfiguration-description":
"{{doc-apihelp-description|cxconfiguration}}",
+ "apihelp-cxconfiguration-param-from":
"{{doc-apihelp-param|cxconfiguration|from}}",
+ "apihelp-cxconfiguration-param-to":
"{{doc-apihelp-param|cxconfiguration|to}}",
+ "apihelp-cxconfiguration-example-1":
"{{doc-apihelp-example|cxconfiguration}}",
+ "apihelp-query+cxpublishedtranslations-description":
"{{doc-apihelp-description|query+cxpublishedtranslations}}",
+ "apihelp-query+cxpublishedtranslations-param-from":
"{{doc-apihelp-param|query+cxpublishedtranslations|from}}",
+ "apihelp-query+cxpublishedtranslations-param-to":
"{{doc-apihelp-param|query+cxpublishedtranslations|to}}",
+ "apihelp-query+cxpublishedtranslations-example-1":
"{{doc-apihelp-example|query+contenttranslation}}",
+ "apihelp-query+cxpublishedtranslations-example-2":
"{{doc-apihelp-example|query+contenttranslation}}",
+ "apihelp-query+cxpublishedtranslations-example-3":
"{{doc-apihelp-example|query+contenttranslation}}",
+ "apihelp-query+contenttranslationlangtrend-param-source":
"{{doc-apihelp-param|query+contenttranslationlangtrend|source}}",
+ "apihelp-query+contenttranslationlangtrend-param-target":
"{{doc-apihelp-param|query+contenttranslationlangtrend|target}}",
+ "apihelp-query+contenttranslationlangtrend-param-interval":
"{{doc-apihelp-param|query+cxpublishedtranslations|interval}}",
+ "apihelp-query+contenttranslationlangtrend-example-1":
"{{doc-apihelp-example|query+contenttranslationlangtrend}}",
+ "apihelp-query+contenttranslationlangtrend-example-2":
"{{doc-apihelp-example|query+contenttranslationlangtrend}}",
+ "apihelp-cxtoken-example-1": "{{doc-apihelp-example|cxtoken}}",
+ "apihelp-cxdelete-description": "{{doc-apihelp-description|cxdelete}}",
+ "apihelp-cxdelete-param-from": "{{doc-apihelp-param|cxdelete|from}}",
+ "apihelp-cxdelete-param-to": "{{doc-apihelp-param|cxdelete|to}}",
+ "apihelp-cxdelete-param-sourcetitle":
"{{doc-apihelp-param|cxdelete|sourcetitle}}",
+ "apihelp-cxdelete-example-1":
"{{doc-apihelp-example|cx|cxdelete|query+contenttranslation}}"
+}
diff --git a/extension.json b/extension.json
index 405ff73..7a4658b 100644
--- a/extension.json
+++ b/extension.json
@@ -47,7 +47,8 @@
"cxpublishedtranslations": "ApiQueryPublishedTranslations"
},
"MessagesDirs": {
- "ContentTranslation": "i18n"
+ "ContentTranslation": "i18n",
+ "ContentTranslationApi": "api/i18n"
},
"SpecialPages": {
"ContentTranslation": "SpecialContentTranslation",
diff --git a/i18n/en.json b/i18n/en.json
index 142765b..63857bc 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -109,40 +109,6 @@
"cx-translation-filter-from-any-language": "From any language",
"cx-translation-filter-to-any-language": "To any language",
"cx-create-new-translation": "Start a new translation",
- "apihelp-cxpublish-description": "Save a page created using the Content
Translation extension.",
- "apihelp-cxpublish-param-title": "The title of the page to perform
actions on.",
- "apihelp-cxpublish-param-html": "The content to save.",
- "apihelp-cxpublish-param-from": "The source language code.",
- "apihelp-cxpublish-param-to": "The target language code.",
- "apihelp-cxpublish-param-sourcetitle": "The title of the source page.",
- "apihelp-cxpublish-param-sourcerevision": "The revision of the source
page.",
- "apihelp-cxpublish-param-status": "If <kbd>draft</kbd>, translation
will be saved as draft. If <kbd>published</kbd>, translation will be
published.",
- "apihelp-cxpublish-param-progress": "Information about translation
completion (progress). JSON with the keys <code>any</code>, <code>human</code>,
<code>mt</code> and <code>mtSectionsCount</code>. The keys' values are
percentages.",
- "apihelp-cxpublish-param-categories": "The categories to put the
published page in.",
- "apihelp-cxpublish-param-wpCaptchaId": "Captcha ID (when saving with a
captcha response).",
- "apihelp-cxpublish-param-wpCaptchaWord": "Answer to the captcha (when
saving with a captcha response).",
- "apihelp-query+contenttranslation-description": "Query Content
Translation database for translations.",
- "apihelp-query+contenttranslation-param-translationid": "Translation
ID.",
- "apihelp-query+contenttranslation-example-1": "Get translations started
by the current user.",
- "apihelp-query+contenttranslation-example-2": "Get translations draft
by ID.",
- "apihelp-query+contenttranslation-example-3": "Find any translation for
the given title between given language pair",
- "apihelp-query+contenttranslationstats-example-1": "Get Content
Translation statistics for all languages.",
- "apihelp-cxconfiguration-description": "Fetch the Content Translation
configuration json for the given language pair",
- "apihelp-cxconfiguration-param-from": "The source language code.",
- "apihelp-cxconfiguration-param-to": "The target language code.",
- "apihelp-cxconfiguration-example-1": "Fetch the Content Translation
configuration json for Spanish-Catalan language pair",
- "apihelp-query+cxpublishedtranslations-description": "Fetch all
published translations information",
- "apihelp-query+cxpublishedtranslations-param-from": "The source
language code.",
- "apihelp-query+cxpublishedtranslations-param-to": "The target language
code.",
- "apihelp-query+cxpublishedtranslations-example-1": "Fetch all published
translations",
- "apihelp-query+cxpublishedtranslations-example-2": "Fetch all published
translations, translated from English",
- "apihelp-query+cxpublishedtranslations-example-3": "Fetch all published
translations, translated from English to Spanish",
- "apihelp-query+contenttranslationlangtrend-param-source": "The source
language code.",
- "apihelp-query+contenttranslationlangtrend-param-target": "The target
language code.",
- "apihelp-query+contenttranslationlangtrend-param-interval": "The
interval for calculating the trend. Can be <kbd>week</kbd> or
<kbd>month</kbd>.",
- "apihelp-query+contenttranslationlangtrend-example-1": "Fetch the
publishing trend for the language pair es-ca with weekly intervals",
- "apihelp-query+contenttranslationlangtrend-example-2": "Fetch the
publishing trend for all languages",
- "apihelp-cxtoken-example-1": "Fetch the authentication token for
cxserver",
"cx-save-draft-save-success": "Saved {{PLURAL:$1|a minute ago|$1
minutes ago|0=just now}}",
"cx-save-draft-saving": "Saving...",
"cx-save-draft-tooltip": "Translation drafts are saved automatically",
@@ -162,11 +128,6 @@
"cx-translation-status-published": "Published",
"cx-translation-status-deleted": "Deleted",
"cx-magnus-tool-link-text": "Find articles missing in your language",
- "apihelp-cxdelete-description": "Delete a draft translation created
using the Content Translation extension.",
- "apihelp-cxdelete-param-from": "The source language code.",
- "apihelp-cxdelete-param-to": "The target language code.",
- "apihelp-cxdelete-param-sourcetitle": "The title of the source page.",
- "apihelp-cxdelete-example-1": "Delete a draft associated with given
language pair and title.",
"cx-translation-already-in-progress": "This is an ongoing translation
by $1.",
"cx-translation-already-in-progress-collaborate": "Please make sure you
coordinate with the user who translated the current translation.",
"cx-publishing-dialog-publish-draft-button": "Publish as draft",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 4d405e8..7bcc492 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -114,40 +114,6 @@
"cx-translation-filter-from-any-language": "Shown in translation filter
in Content Translation dashboard. Selects source language as any language.",
"cx-translation-filter-to-any-language": "Shown in translation filter
in Content Translation dashboard. Selects target language as any language.",
"cx-create-new-translation": "Button label for creating new translation
in the Content Translation dashboard.",
- "apihelp-cxpublish-description":
"{{doc-apihelp-description|cxpublish}}",
- "apihelp-cxpublish-param-title":
"{{doc-apihelp-param|cxpublish|title}}",
- "apihelp-cxpublish-param-html": "{{doc-apihelp-param|cxpublish|html}}",
- "apihelp-cxpublish-param-from": "{{doc-apihelp-param|cxpublish|from}}",
- "apihelp-cxpublish-param-to": "{{doc-apihelp-param|cxpublish|to}}",
- "apihelp-cxpublish-param-sourcetitle":
"{{doc-apihelp-param|cxpublish|sourcetitle}}",
- "apihelp-cxpublish-param-sourcerevision":
"{{doc-apihelp-param|cxpublish|sourcerevision}}",
- "apihelp-cxpublish-param-status": "{{doc-important|DO NOT translate
\"draft\" and \"published\" which are enclosed in quotation
marks.}}\n\n{{doc-apihelp-param|cxpublish|status}}",
- "apihelp-cxpublish-param-progress": "{{doc-important|DO NOT translate
\"any\", \"human\", \"mt\", and
\"mtSectionsCount\".}}\n\n{{doc-apihelp-param|cxpublish|progress}}",
- "apihelp-cxpublish-param-categories":
"{{doc-apihelp-param|cxpublish|categories}}",
- "apihelp-cxpublish-param-wpCaptchaId":
"{{doc-apihelp-param|cxpublish|wpCaptchaId}}",
- "apihelp-cxpublish-param-wpCaptchaWord":
"{{doc-apihelp-param|cxpublish|wpCaptchaWord}}",
- "apihelp-query+contenttranslation-description":
"{{doc-apihelp-description|query+contenttranslation}}",
- "apihelp-query+contenttranslation-param-translationid":
"{{doc-apihelp-param|query+contenttranslation}}",
- "apihelp-query+contenttranslation-example-1":
"{{doc-apihelp-example|query+contenttranslation}}",
- "apihelp-query+contenttranslation-example-2":
"{{doc-apihelp-example|query+contenttranslation}}",
- "apihelp-query+contenttranslation-example-3":
"{{doc-apihelp-example|query+contenttranslation}}",
- "apihelp-query+contenttranslationstats-example-1":
"{{doc-apihelp-example|query+contenttranslationstats}}",
- "apihelp-cxconfiguration-description":
"{{doc-apihelp-description|cxconfiguration}}",
- "apihelp-cxconfiguration-param-from":
"{{doc-apihelp-param|cxconfiguration|from}}",
- "apihelp-cxconfiguration-param-to":
"{{doc-apihelp-param|cxconfiguration|to}}",
- "apihelp-cxconfiguration-example-1":
"{{doc-apihelp-example|cxconfiguration}}",
- "apihelp-query+cxpublishedtranslations-description":
"{{doc-apihelp-description|query+cxpublishedtranslations}}",
- "apihelp-query+cxpublishedtranslations-param-from":
"{{doc-apihelp-param|query+cxpublishedtranslations|from}}",
- "apihelp-query+cxpublishedtranslations-param-to":
"{{doc-apihelp-param|query+cxpublishedtranslations|to}}",
- "apihelp-query+cxpublishedtranslations-example-1":
"{{doc-apihelp-example|query+contenttranslation}}",
- "apihelp-query+cxpublishedtranslations-example-2":
"{{doc-apihelp-example|query+contenttranslation}}",
- "apihelp-query+cxpublishedtranslations-example-3":
"{{doc-apihelp-example|query+contenttranslation}}",
- "apihelp-query+contenttranslationlangtrend-param-source":
"{{doc-apihelp-param|query+contenttranslationlangtrend|source}}",
- "apihelp-query+contenttranslationlangtrend-param-target":
"{{doc-apihelp-param|query+contenttranslationlangtrend|target}}",
- "apihelp-query+contenttranslationlangtrend-param-interval":
"{{doc-apihelp-param|query+cxpublishedtranslations|interval}}",
- "apihelp-query+contenttranslationlangtrend-example-1":
"{{doc-apihelp-example|query+contenttranslationlangtrend}}",
- "apihelp-query+contenttranslationlangtrend-example-2":
"{{doc-apihelp-example|query+contenttranslationlangtrend}}",
- "apihelp-cxtoken-example-1": "{{doc-apihelp-example|cxtoken}}",
"cx-save-draft-save-success": "\"Saved\" refers to a draft of a
translated page that was saved recently.",
"cx-save-draft-saving": "Label of button to save the translation as
draft while saving is in progress\n{{Identical|Saving}}",
"cx-save-draft-tooltip": "Tooltip text shown for the save status
indicator text in the header of [[Special:ContentTranslation]].\n\nParameters:
\n* $1 - the number of minutes ago the translation was saved.",
@@ -167,11 +133,6 @@
"cx-translation-status-published": "Published status label for the
translation in the Content Translation dashboard.\n{{Identical|Published}}",
"cx-translation-status-deleted": "Deleted status label for the
translation in the Content Translation dashboard.\n{{Identical|Deleted}}",
"cx-magnus-tool-link-text": "A link text. If this link appears, it
links to the ''[http://tools.wmflabs.org/not-in-the-other-language/ Not in your
language]'' tool in WMF Labs.",
- "apihelp-cxdelete-description": "{{doc-apihelp-description|cxdelete}}",
- "apihelp-cxdelete-param-from": "{{doc-apihelp-param|cxdelete|from}}",
- "apihelp-cxdelete-param-to": "{{doc-apihelp-param|cxdelete|to}}",
- "apihelp-cxdelete-param-sourcetitle":
"{{doc-apihelp-param|cxdelete|sourcetitle}}",
- "apihelp-cxdelete-example-1":
"{{doc-apihelp-example|cx|cxdelete|query+contenttranslation}}",
"cx-translation-already-in-progress": "Message shown when a second
translator tries to translate the same page between same languages.
\n\nParameters:\n* $1 - User name of first translator",
"cx-translation-already-in-progress-collaborate": "A message to
collaborate with other translator. Shown when there is translation conflict.",
"cx-publishing-dialog-publish-draft-button": "Button label for
publishing options dialog. Used if extension is not configured to publish to
User namespace.",
--
To view, visit https://gerrit.wikimedia.org/r/232699
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd4948683b8189c1cb5be9adafa0b81731a3a369
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits