Elgg  Version 4.3
Go to the documentation of this file.
1 <?php
18 function elgg_echo($message_key, array $args = [], $language = "") {
19  return _elgg_services()->translator->translate($message_key, $args, $language);
20 }
29 function elgg_get_current_language(): string {
30  return _elgg_services()->translator->getCurrentLanguage();
31 }
47  return _elgg_services()->translator->languageKeyExists($key, $language);
48 }
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
Definition: languages.php:46
Get the current system/user language or "en".
Definition: languages.php:29
Some servers don&#39;t allow PHP to check the rewrite, so try via AJAX.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
Definition: useradd.php:19
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Definition: summary.php:44
Get the global service provider.
Definition: elgglib.php:638