Public Member Functions | |
__construct (LanguageFallback $languageFallback) | |
get (MessageBundle $messageBundle, string $languageCode, bool $skipFallbacks) | |
Given a language code, returns translation for that language or its fallbacks in an array format. | |
Definition at line 11 of file MessageBundleTranslationLoader.php.
MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleTranslationLoader::__construct | ( | LanguageFallback | $languageFallback | ) |
Definition at line 14 of file MessageBundleTranslationLoader.php.
MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleTranslationLoader::get | ( | MessageBundle | $messageBundle, |
string | $languageCode, | ||
bool | $skipFallbacks ) |
Given a language code, returns translation for that language or its fallbacks in an array format.
MessageBundle | $messageBundle | |
string | $languageCode | |
bool | $skipFallbacks | Skip loading the fallback languages |
Definition at line 25 of file MessageBundleTranslationLoader.php.