15 private $defaultLocale;
27 $this->defaultLocale = $defaultLocale;
28 $this->messages = $messages;
41 foreach ($locales as $locale) {
static parse($locale)
Create a language, asserting that the language code is valid.
__construct(Locale $defaultLocale, MessageBundle $messages)
Constructor.
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
translate($key, array $args=[], Locale $locale=null)
Given a message key, returns a best-effort translated string.If the translator doesn't know how to tr...