From bbec41c9351b1f6b8013991b02c24016de44f478 Mon Sep 17 00:00:00 2001 From: zoranzoki21 Date: Sun, 25 Nov 2018 05:28:45 +0100 Subject: [PATCH] Move all apihelp translatable messages to separate files Bug: T189982 Change-Id: I215dca32ed6bad6c4dafd0814b8cbb0887b3dd75 --- extension.json | 3 ++- i18n/api/en.json | 13 +++++++++++++ i18n/api/qqq.json | 15 +++++++++++++++ i18n/en.json | 10 +--------- i18n/qqq.json | 10 +--------- 5 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 i18n/api/en.json create mode 100644 i18n/api/qqq.json diff --git a/extension.json b/extension.json index 75de9045..dea9b059 100644 --- a/extension.json +++ b/extension.json @@ -42,7 +42,8 @@ }, "MessagesDirs": { "TitleBlacklist": [ - "i18n" + "i18n", + "i18n/api" ] }, "AutoloadClasses": { diff --git a/i18n/api/en.json b/i18n/api/en.json new file mode 100644 index 00000000..2e73989e --- /dev/null +++ b/i18n/api/en.json @@ -0,0 +1,13 @@ +{ + "@metadata": { + "authors": [] + }, + "apihelp-titleblacklist-description": "Validate a page title, filename, or username against the TitleBlacklist.", + "apihelp-titleblacklist-summary": "Validate a page title, filename, or username against the TitleBlacklist.", + "apihelp-titleblacklist-param-title": "The string to validate against the blacklist.", + "apihelp-titleblacklist-param-action": "The action to be checked.", + "apihelp-titleblacklist-param-nooverride": "Don't try to override the titleblacklist.", + "apihelp-titleblacklist-example-1": "Check whether [[Foo]] is blacklisted", + "apihelp-titleblacklist-example-2": "Check whether [[Bar]] is blacklisted for editing", + "apihelp-createaccount-param-ignoretitleblacklist": "Ignore spoofing checks (requires one of the following rights: tboverride, tboverride-account)." +} diff --git a/i18n/api/qqq.json b/i18n/api/qqq.json new file mode 100644 index 00000000..d0edceb0 --- /dev/null +++ b/i18n/api/qqq.json @@ -0,0 +1,15 @@ +{ + "@metadata": { + "authors": [ + "Zoranzoki21" + ] + }, + "apihelp-titleblacklist-description": "{{doc-apihelp-description|titleblacklist}}", + "apihelp-titleblacklist-summary": "{{doc-apihelp-summary|titleblacklist}}", + "apihelp-titleblacklist-param-title": "{{doc-apihelp-param|titleblacklist|title}}", + "apihelp-titleblacklist-param-action": "{{doc-apihelp-param|titleblacklist|action}}", + "apihelp-titleblacklist-param-nooverride": "{{doc-apihelp-param|titleblacklist|nooverride}}", + "apihelp-titleblacklist-example-1": "{{doc-apihelp-example|titleblacklist}}", + "apihelp-titleblacklist-example-2": "Replace \"Bar\" with any example string suitable for your language, for instance the translation of \"Example\".\n----\n{{doc-apihelp-example|titleblacklist}}", + "apihelp-createaccount-param-ignoretitleblacklist": "{{doc-apihelp-param|createaccount|ignoretitleblacklist}}" +} diff --git a/i18n/en.json b/i18n/en.json index 4d53b00c..1f7996da 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -19,13 +19,5 @@ "titleblacklist-warning": "Warning: This page can only be edited by administrators and other users with the tboverride right because it matches the following title blacklist entry:
$1", "right-tboverride": "Override the title or username blacklist", "right-tboverride-account": "Override the username blacklist", - "right-titleblacklistlog": "View title blacklist log", - "apihelp-titleblacklist-description": "Validate a page title, filename, or username against the TitleBlacklist.", - "apihelp-titleblacklist-summary": "Validate a page title, filename, or username against the TitleBlacklist.", - "apihelp-titleblacklist-param-title": "The string to validate against the blacklist.", - "apihelp-titleblacklist-param-action": "The action to be checked.", - "apihelp-titleblacklist-param-nooverride": "Don't try to override the titleblacklist.", - "apihelp-titleblacklist-example-1": "Check whether [[Foo]] is blacklisted", - "apihelp-titleblacklist-example-2": "Check whether [[Bar]] is blacklisted for editing", - "apihelp-createaccount-param-ignoretitleblacklist": "Ignore spoofing checks (requires one of the following rights: tboverride, tboverride-account)." + "right-titleblacklistlog": "View title blacklist log" } diff --git a/i18n/qqq.json b/i18n/qqq.json index 60d347dd..7c82cdea 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -28,13 +28,5 @@ "titleblacklist-warning": "Displayed when a user is editing a page that only administrators (or custom user groups with the tboverride right) can edit due to the title blacklist. Parameters:\n* $1 - blacklist entry", "right-tboverride": "{{doc-right|tboverride}}", "right-tboverride-account": "{{doc-right|tboverride-account}}", - "right-titleblacklistlog": "{{doc-right|titleblacklistlog}}", - "apihelp-titleblacklist-description": "{{doc-apihelp-description|titleblacklist}}", - "apihelp-titleblacklist-summary": "{{doc-apihelp-summary|titleblacklist}}", - "apihelp-titleblacklist-param-title": "{{doc-apihelp-param|titleblacklist|title}}", - "apihelp-titleblacklist-param-action": "{{doc-apihelp-param|titleblacklist|action}}", - "apihelp-titleblacklist-param-nooverride": "{{doc-apihelp-param|titleblacklist|nooverride}}", - "apihelp-titleblacklist-example-1": "{{doc-apihelp-example|titleblacklist}}", - "apihelp-titleblacklist-example-2": "Replace \"Bar\" with any example string suitable for your language, for instance the translation of \"Example\".\n----\n{{doc-apihelp-example|titleblacklist}}", - "apihelp-createaccount-param-ignoretitleblacklist": "{{doc-apihelp-param|createaccount|ignoretitleblacklist}}" + "right-titleblacklistlog": "{{doc-right|titleblacklistlog}}" }