Elgg  Version 4.x
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 
35 function add_translation($country_code, $language_array) {
36  return _elgg_services()->translator->addTranslation($country_code, $language_array);
37 }
38 
45  return _elgg_services()->translator->getCurrentLanguage();
46 }
47 
62  return _elgg_services()->translator->languageKeyExists($key, $language);
63 }
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
Definition: languages.php:61
add_translation($country_code, $language_array)
Add a translation.
Definition: languages.php:35
get_current_language()
Get the current system/user language or "en".
Definition: languages.php:44
$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:777