From 0c5b4d3072b6a824d7555e963845212fb12c1ac3 Mon Sep 17 00:00:00 2001 From: Amire80 Date: Sat, 22 Jul 2017 14:25:54 +0300 Subject: [PATCH] Split API messages from ULS It's not a lot of messages, but this is a very common and basic extension, and it's often one of the first to be translated, so it's good to make its translation easier. To be committed together with the corresponding translatewiki configuration change: I33ca817b457abc5504917745c2730ec223e263e0 Change-Id: I13ea351553319583051778cfb6c55f843b5f86e5 --- extension.json | 3 ++- i18n/api/en.json | 23 +++++++++++++++++++++++ i18n/api/qqq.json | 23 +++++++++++++++++++++++ i18n/en.json | 12 ------------ i18n/qqq.json | 12 ------------ 5 files changed, 48 insertions(+), 25 deletions(-) create mode 100644 i18n/api/en.json create mode 100644 i18n/api/qqq.json diff --git a/extension.json b/extension.json index 903af81f..2f6e2832 100644 --- a/extension.json +++ b/extension.json @@ -36,7 +36,8 @@ }, "MessagesDirs": { "UniversalLanguageSelector": [ - "i18n" + "i18n", + "i18n/api" ] }, "AutoloadClasses": { diff --git a/i18n/api/en.json b/i18n/api/en.json new file mode 100644 index 00000000..a11b86a3 --- /dev/null +++ b/i18n/api/en.json @@ -0,0 +1,23 @@ +{ + "@metadata": { + "authors": [ + "Brad Jorsch", + "Nike", + "Amire80", + "Purodha", + "Santhosh Thottingal" + ] + }, + "apihelp-languagesearch-description": "Search for language names in any script.", + "apihelp-languagesearch-summary": "Search for language names in any script.", + "apihelp-languagesearch-param-search": "Search string.", + "apihelp-languagesearch-param-typos": "Number of spelling mistakes allowed in the search string.", + "apihelp-languagesearch-example-1": "Search for \"Te\"", + "apihelp-languagesearch-example-2": "Search for \"ഫി\"", + "apihelp-languagesearch-example-3": "Search for \"ഫി\", allowing one typo", + "apihelp-ulslocalization-description": "Get the localization of ULS in the given language.", + "apihelp-ulslocalization-summary": "Get the localization of ULS in the given language.", + "apihelp-ulslocalization-param-language": "Language code.", + "apihelp-ulslocalization-example-1": "Get Tamil localization", + "apihelp-ulslocalization-example-2": "Get Hindi localization" +} diff --git a/i18n/api/qqq.json b/i18n/api/qqq.json new file mode 100644 index 00000000..7b1ddff1 --- /dev/null +++ b/i18n/api/qqq.json @@ -0,0 +1,23 @@ +{ + "@metadata": { + "authors": [ + "Liuxinyu970226", + "Siebrand", + "Nemo bis", + "Liuxinyu970226", + "Brad Jorsch" + ] + }, + "apihelp-languagesearch-description": "{{doc-apihelp-description|languagesearch}}", + "apihelp-languagesearch-summary": "{{doc-apihelp-summary|languagesearch}}", + "apihelp-languagesearch-param-search": "The \"search string\" is the string that the user asks to search for, in looking for a language name.\n\n{{doc-apihelp-param|languagesearch|search}}\n{{Identical|Search string}}", + "apihelp-languagesearch-param-typos": "{{doc-apihelp-param|languagesearch|typos}}", + "apihelp-languagesearch-example-1": "Label of a command which produces a search by \"te\". Translate as imperative or noun as most suitable for your language.\n----\n{{doc-apihelp-example|languagesearch}}", + "apihelp-languagesearch-example-2": "Label of an example command which produces a search. Translate as appropriate to your language.\n----\n{{doc-apihelp-example|languagesearch}}", + "apihelp-languagesearch-example-3": "Description of a function where the user can find an available language by providing a name to search for.\n----\n{{doc-apihelp-example|languagesearch}}", + "apihelp-ulslocalization-description": "{{doc-apihelp-description|ulslocalization}}", + "apihelp-ulslocalization-summary": "{{doc-apihelp-summary|ulslocalization}}", + "apihelp-ulslocalization-param-language": "{{doc-apihelp-param|ulslocalization|language}}\n{{Identical|Language code}}", + "apihelp-ulslocalization-example-1": "{{doc-apihelp-example|ulslocalization}}", + "apihelp-ulslocalization-example-2": "{{doc-apihelp-example|ulslocalization}}" +} diff --git a/i18n/en.json b/i18n/en.json index ab922a90..f8b79b26 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -62,18 +62,6 @@ "ext-uls-language-settings-applying": "Applying...", "ext-uls-compact-link-count": "{{PLURAL:$1|One more|$1 more}}", "ext-uls-compact-link-info": "All languages (initial selection from common choices by you and others)", - "apihelp-languagesearch-description": "Search for language names in any script.", - "apihelp-languagesearch-summary": "Search for language names in any script.", - "apihelp-languagesearch-param-search": "Search string.", - "apihelp-languagesearch-param-typos": "Number of spelling mistakes allowed in the search string.", - "apihelp-languagesearch-example-1": "Search for \"Te\"", - "apihelp-languagesearch-example-2": "Search for \"ഫി\"", - "apihelp-languagesearch-example-3": "Search for \"ഫി\", allowing one typo", - "apihelp-ulslocalization-description": "Get the localization of ULS in the given language.", - "apihelp-ulslocalization-summary": "Get the localization of ULS in the given language.", - "apihelp-ulslocalization-param-language": "Language code.", - "apihelp-ulslocalization-example-1": "Get Tamil localization", - "apihelp-ulslocalization-example-2": "Get Hindi localization", "prefs-languages": "Languages", "ext-uls-compact-language-links-preference": "Use a [[$1|compact language list]], with languages relevant to you." } diff --git a/i18n/qqq.json b/i18n/qqq.json index 3bf7c177..1d81bae3 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -66,18 +66,6 @@ "ext-uls-language-settings-applying": "Label for apply settings button in language settings screen, while settings being saved. Please keep it short.", "ext-uls-compact-link-count": "Message next to the list of languages which indicates that there are more languages than the ones shown. Parameter $1 is the number of languages.\n\nIf your language has a singular form for number 1, then the number should be explicitly mentioned. If it's possible in your language, please write \"1 more\" or \"one more\". Another option is to write \"more\" in a way that doesn't depend on a particular number.", "ext-uls-compact-link-info": "A tooltip for a button that shows all available languages next to a short list of relevant languages.", - "apihelp-languagesearch-description": "{{doc-apihelp-description|languagesearch}}", - "apihelp-languagesearch-summary": "{{doc-apihelp-summary|languagesearch}}", - "apihelp-languagesearch-param-search": "The \"search string\" is the string that the user asks to search for, in looking for a language name.\n\n{{doc-apihelp-param|languagesearch|search}}\n{{Identical|Search string}}", - "apihelp-languagesearch-param-typos": "{{doc-apihelp-param|languagesearch|typos}}", - "apihelp-languagesearch-example-1": "Label of a command which produces a search by \"te\". Translate as imperative or noun as most suitable for your language.\n----\n{{doc-apihelp-example|languagesearch}}", - "apihelp-languagesearch-example-2": "Label of an example command which produces a search. Translate as appropriate to your language.\n----\n{{doc-apihelp-example|languagesearch}}", - "apihelp-languagesearch-example-3": "Description of a function where the user can find an available language by providing a name to search for.\n----\n{{doc-apihelp-example|languagesearch}}", - "apihelp-ulslocalization-description": "{{doc-apihelp-description|ulslocalization}}", - "apihelp-ulslocalization-summary": "{{doc-apihelp-summary|ulslocalization}}", - "apihelp-ulslocalization-param-language": "{{doc-apihelp-param|ulslocalization|language}}\n{{Identical|Language code}}", - "apihelp-ulslocalization-example-1": "{{doc-apihelp-example|ulslocalization}}", - "apihelp-ulslocalization-example-2": "{{doc-apihelp-example|ulslocalization}}", "prefs-languages": "Field set legend for user preferences regarding display of language lists\n{{Identical|Language}}", "ext-uls-compact-language-links-preference": "Label for compact language links user preference" }