Translation aid which gives the "in other languages" suggestions. More...
Public Member Functions | |
getData () | |
Translation aid class should implement this function. | |
Protected Member Functions | |
getFallbacks ($code) | |
Get the languages for "in other languages". |
Translation aid which gives the "in other languages" suggestions.
Definition at line 17 of file InOtherLanguagesAid.php.
InOtherLanguagesAid::getData | ( | ) |
Translation aid class should implement this function.
Return value should be an array with keys and values. Because these are used in the MediaWiki API, lists (numeric keys) should have key '**' set to element name that describes the list values. For example if the translation aid provides translation suggestions, it would return an array which has key '**' set to 'suggestion' and then list of arrays, each containing fields for the information of the suggestions. See InOtherLanguagesAid for example.
TranslationHelperException | Used to signal unexpected errors to aid debugging |
Reimplemented from TranslationAid.
Definition at line 18 of file InOtherLanguagesAid.php.
InOtherLanguagesAid::getFallbacks | ( | $ | code | ) | [protected] |
Get the languages for "in other languages".
That would be translation assistant languages with defined language fallbacks additionally.
string | $code |
Definition at line 53 of file InOtherLanguagesAid.php.
Referenced by getData().