Add i18n to API modules

This commit is contained in:
Luqgreg 2018-09-03 19:32:10 +02:00
parent 09e57e2d34
commit 66fa206d8f
4 changed files with 24 additions and 18 deletions

View file

@ -13,5 +13,11 @@
"portable-infobox-xml-parse-error-tag-name-mismatch": "Opening and ending tag mismatch",
"portable-infobox-xml-parse-error-tag-not-finished": "Premature end of tag",
"portable-infobox-xml-parse-error-infobox-tag-attribute-unsupported": "Attribute \"$1\" is not supported in <infobox> tag",
"allinfoboxes": "All infoboxes"
}
"allinfoboxes": "All infoboxes",
"apihelp-infobox-summary": "This module provides infobox parser",
"apihelp-infobox-param-text": "Infobox to parse (xml string)",
"apihelp-infobox-param-title": "Title of page the text belongs to",
"apihelp-infobox-param-args": "Variable list to use during parse (json format)",
"apihelp-query+allinfoboxes-summary": "List all infoboxes",
"apihelp-query+infobox-summary": "Get infobox metadata"
}

View file

@ -13,5 +13,11 @@
"portable-infobox-xml-parse-error-tag-name-mismatch": "Niezgodność otwierającego i kończącego znacznika",
"portable-infobox-xml-parse-error-tag-not-finished": "Przedwczesny koniec znacznika",
"portable-infobox-xml-parse-error-infobox-tag-attribute-unsupported": "Atrybut \"$1\" nie jest obsługiwana w tagu <infobox>",
"allinfoboxes": "Wszystkie infoboksy"
}
"allinfoboxes": "Wszystkie infoboksy",
"apihelp-infobox-summary": "Parsuje kod infoboksu",
"apihelp-infobox-param-text": "Infoboks do przeparsowania (w formacie XML)",
"apihelp-infobox-param-title": "Tytuł strony",
"apihelp-infobox-param-args": "Lista parametrów do użycia przy parsowaniu (w formacie JSON)",
"apihelp-query+allinfoboxes-summary": "Wymień wszystkie infoboksy",
"apihelp-query+infobox-summary": "Pobierz metadane infoboksu"
}

View file

@ -13,5 +13,11 @@
"portable-infobox-xml-parse-error-tag-name-mismatch": "XML Error: Opening and ending tag mismatch (for example: <data></label>)",
"portable-infobox-xml-parse-error-tag-not-finished": "XML Error: premature end of tag",
"portable-infobox-xml-parse-error-infobox-tag-attribute-unsupported": "Unsupported attribute used inside <infobox> tag. $1 param contains attribute name.",
"allinfoboxes": "Special:Allinfoboxes page title"
}
"allinfoboxes": "Special:Allinfoboxes page title",
"apihelp-infobox-summary": "{{doc-apihelp-summary|infobox}}",
"apihelp-infobox-param-text": "{{doc-apihelp-param|infobox|text}}",
"apihelp-infobox-param-title": "{{doc-apihelp-param|infobox|title}}",
"apihelp-infobox-param-args": "{{doc-apihelp-param|infobox|args}}",
"apihelp-query+allinfoboxes-summary": "{{doc-apihelp-summary|query+allinfoboxes}}",
"apihelp-query+infobox-summary": "{{doc-apihelp-summary|query+infobox}}"
}

View file

@ -79,18 +79,6 @@ class ApiPortableInfobox extends ApiBase {
];
}
public function getParamDescription() {
return [
'text' => 'Infobox to parse (xml string)',
'title' => 'Title of page the text belongs to',
'args' => 'Variable list to use during parse (json format)',
];
}
public function getDescription() {
return [ 'This module provides infobox parser' ];
}
/**
* Examples
*/