diff options
author | Brian Evans <grknight@gentoo.org> | 2022-09-27 18:53:03 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2022-09-27 19:02:02 -0400 |
commit | 5ca8d30155e11d97b20f79acec40632c2e06fcd5 (patch) | |
tree | 7531fb116791f8328c0bb0cabe42265ca67e6df9 /MLEB/Translate/src/TranslatorInterface/Aid/UnsupportedTranslationAid.php | |
parent | Merge branch 'master' into wikitest (diff) | |
download | extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.tar.gz extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.tar.bz2 extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.zip |
Update MLEB to 2021.12v1.35.2
This is the final version for MW 1.35
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/src/TranslatorInterface/Aid/UnsupportedTranslationAid.php')
-rw-r--r-- | MLEB/Translate/src/TranslatorInterface/Aid/UnsupportedTranslationAid.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/MLEB/Translate/src/TranslatorInterface/Aid/UnsupportedTranslationAid.php b/MLEB/Translate/src/TranslatorInterface/Aid/UnsupportedTranslationAid.php new file mode 100644 index 00000000..38c3530a --- /dev/null +++ b/MLEB/Translate/src/TranslatorInterface/Aid/UnsupportedTranslationAid.php @@ -0,0 +1,20 @@ +<?php +declare( strict_types = 1 ); + +namespace MediaWiki\Extension\Translate\TranslatorInterface\Aid; + +use MediaWiki\Extension\Translate\TranslatorInterface\TranslationHelperException; + +/** + * Dummy translation aid that always errors + * @author Harry Burt + * @license GPL-2.0-or-later + * @since 2013-03-29 + * @ingroup TranslationAids + * @phan-file-suppress PhanPluginNeverReturnMethod + */ +class UnsupportedTranslationAid extends TranslationAid { + public function getData(): array { + throw new TranslationHelperException( 'This translation aid is disabled' ); + } +} |