Split apihelp messages to a separate file

Bug: T189982
Change-Id: I7808076245d39fa10d75d67c9a9180dccd708f40
This commit is contained in:
Amir Aharoni 2019-07-08 15:28:40 +03:00
parent bceb94ca2a
commit 00c31ffc7e
5 changed files with 25 additions and 8 deletions

View file

@ -21,6 +21,7 @@
"MessagesDirs": {
"Cite": [
"i18n",
"i18n/api",
"modules/ve-cite/i18n"
]
},

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

@ -0,0 +1,12 @@
{
"@metadata": {
"authors": [
"jdlrobson",
"Brad Jorsch"
]
},
"apihelp-query+references-description": "Return a data representation of references associated with the given pages.",
"apihelp-query+references-summary": "Return a data representation of references associated with the given pages.",
"apihelp-query+references-example-1": "References associated with <kbd>Albert Einstein</kbd>.",
"apierror-citestoragedisabled": "Cite extension reference storage is not enabled."
}

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

@ -0,0 +1,12 @@
{
"@metadata": {
"authors": [
"jdlrobson",
"Brad Jorsch"
]
},
"apihelp-query+references-description": "{{doc-apihelp-description|query+references}}",
"apihelp-query+references-summary": "{{doc-apihelp-summary|query+references}}",
"apihelp-query+references-example-1": "{{doc-apihelp-example|query+references}}",
"apierror-citestoragedisabled": "{{doc-apierror}}"
}

View file

@ -15,10 +15,6 @@
"Ævar Arnfjörð Bjarmason"
]
},
"apihelp-query+references-description": "Return a data representation of references associated with the given pages.",
"apihelp-query+references-summary": "Return a data representation of references associated with the given pages.",
"apihelp-query+references-example-1": "References associated with <kbd>Albert Einstein</kbd>.",
"apierror-citestoragedisabled": "Cite extension reference storage is not enabled.",
"cite-desc": "Adds <code>&lt;ref[ name=id]&gt;</code> and <code>&lt;references/&gt;</code> tags, for citations",
"cite_error": "Cite error: $1",
"cite_error_ref_invalid_dir": "Invalid <code>&lt;ref&gt;</code> tag; dir attribute \"$1\" is unknown. Must be ltr or rtl",

View file

@ -16,10 +16,6 @@
"Mar(c)"
]
},
"apihelp-query+references-description": "{{doc-apihelp-description|query+references}}",
"apihelp-query+references-summary": "{{doc-apihelp-summary|query+references}}",
"apihelp-query+references-example-1": "{{doc-apihelp-example|query+references}}",
"apierror-citestoragedisabled": "{{doc-apierror}}",
"cite-desc": "{{desc|name=Cite|url=https://www.mediawiki.org/wiki/Extension:Cite}}",
"cite_error": "Cite extension.\n\nUsed when there are errors in ref or references tags.\n\nParameters:\n* $1 - an error message",
"cite_error_ref_invalid_dir": "Cite extension. Error message shown when ref tag contain dir attribute with invalid value. $1 - invalid dir value",