Translation aid that provides an url where users can ask for help. More...
Public Member Functions | |
getData () | |
Translation aid class should implement this function. | |
Public Member Functions inherited from MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAid | |
__construct (MessageGroup $group, MessageHandle $handle, IContextSource $context, TranslationAidDataProvider $dataProvider) | |
Static Public Member Functions | |
static | getSupportUrl (MessageHandle $handle) |
Target URL for a link provided by a support button/aid. | |
Static Public Member Functions inherited from MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAid | |
static | getTypes () |
List of available message types mapped to the classes implementing them. | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAid | |
$group | |
$handle | |
$context | |
$dataProvider | |
Translation aid that provides an url where users can ask for help.
Definition at line 18 of file SupportAid.php.
MediaWiki\Extension\Translate\TranslatorInterface\Aid\SupportAid::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 MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAid.
Definition at line 19 of file SupportAid.php.
|
static |
Target URL for a link provided by a support button/aid.
MessageHandle | $handle | MessageHandle object for the translation message. |
TranslationHelperException |
Definition at line 31 of file SupportAid.php.