Elgg  Version 4.3
languages.php
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 }
21 
29 function elgg_get_current_language(): string {
30  return _elgg_services()->translator->getCurrentLanguage();
31 }
32 
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
elgg_get_current_language()
Get the current system/user language or "en".
Definition: languages.php:29
$args
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
$language
Definition: useradd.php:19
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Definition: summary.php:44
_elgg_services()
Get the global service provider.
Definition: elgglib.php:638