Translate extension for MediaWiki
Loading...
Searching...
No Matches
UnsupportedTranslationAid.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\TranslatorInterface\Aid;
5
6
use
MediaWiki\Extension\Translate\TranslatorInterface\TranslationHelperException
;
7
16
class
UnsupportedTranslationAid
extends
TranslationAid
{
17
public
function
getData
(): array {
18
throw new
TranslationHelperException
(
'This translation aid is disabled'
);
19
}
20
}
MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAid
Definition
TranslationAid.php:21
MediaWiki\Extension\Translate\TranslatorInterface\Aid\UnsupportedTranslationAid
Dummy translation aid that always errors.
Definition
UnsupportedTranslationAid.php:16
MediaWiki\Extension\Translate\TranslatorInterface\Aid\UnsupportedTranslationAid\getData
getData()
Translation aid class should implement this function.
Definition
UnsupportedTranslationAid.php:17
MediaWiki\Extension\Translate\TranslatorInterface\TranslationHelperException
Translation helpers can throw this exception when they cannot do anything useful with the current mes...
Definition
TranslationHelperException.php:16
src
TranslatorInterface
Aid
UnsupportedTranslationAid.php
Generated by
1.10.0