Move all apihelp translatable messages to separate files

Bug: T189982
Change-Id: I215dca32ed6bad6c4dafd0814b8cbb0887b3dd75
This commit is contained in:
zoranzoki21 2018-11-25 05:28:45 +01:00
parent 7dc53b664d
commit bbec41c935
5 changed files with 32 additions and 19 deletions

View file

@ -42,7 +42,8 @@
},
"MessagesDirs": {
"TitleBlacklist": [
"i18n"
"i18n",
"i18n/api"
]
},
"AutoloadClasses": {

13
i18n/api/en.json Normal file
View file

@ -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: <code>tboverride</code>, <code>tboverride-account</code>)."
}

15
i18n/api/qqq.json Normal file
View file

@ -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}}"
}

View file

@ -19,13 +19,5 @@
"titleblacklist-warning": "<strong>Warning: This page can only be edited by administrators and other users with the <code>tboverride</code> right because it matches the following title blacklist entry:</strong><br /><code>$1</code>",
"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: <code>tboverride</code>, <code>tboverride-account</code>)."
"right-titleblacklistlog": "View title blacklist log"
}

View file

@ -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}}"
}