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