Elgg
Version 6.1
|
Go to the source code of this file.
Functions | |
elgg_echo (string $message_key, array $args=[], string $language= '') | |
Elgg language module Functions to manage language and translations. More... | |
elgg_get_current_language () | |
Get the current system/user language or 'en'. More... | |
elgg_language_key_exists (string $key, string $language= 'en') | |
Check if a given language key exists. More... | |
elgg_echo | ( | string | $message_key, |
array | $args = [] , |
||
string | $language = '' |
||
) |
Elgg language module Functions to manage language and translations.
Given a message key, returns an appropriately translated full-text string
string | $message_key | The short message code |
array | $args | An array of arguments to pass through vsprintf(). |
string | $language | Optionally, the standard language code (defaults to site/user default, then English) |
Definition at line 17 of file languages.php.
elgg_get_current_language | ( | ) |
Get the current system/user language or 'en'.
Definition at line 27 of file languages.php.
elgg_language_key_exists | ( | string | $key, |
string | $language = 'en' |
||
) |
Check if a given language key exists.
string | $key | The translation key |
string | $language | The language. Provided an English translation exists for all created keys, then devs can generally use the default "en", regardless of the site/user language. |
Definition at line 44 of file languages.php.