Elgg  Version 6.1
languages.php
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 }
20 
27 function elgg_get_current_language(): string {
28  return _elgg_services()->translator->getCurrentLanguage();
29 }
30 
44 function elgg_language_key_exists(string $key, string $language = 'en'): bool {
45  return _elgg_services()->translator->languageKeyExists($key, $language);
46 }
elgg_get_current_language()
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
$args
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
$language
Definition: useradd.php:17
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:353