39 return _elgg_services()->translator->addTranslation($country_code, $language_array);
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
reload_all_translations()
Reload all translations from all registered paths.
register_translations($path, $load_all=false, $language=null)
When given a full path, finds translation files and loads them.
add_translation($country_code, $language_array)
Add a translation.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
get_current_language()
Get the current system/user language or "en".
get_language()
Detect the current system/user language or false.
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
get_installed_translations()
Return an array of installed translations as an associative array "two letter code" => "native langua...
get_language_completeness($language)
Return the level of completeness for a given language code (compared to english)
get_missing_language_keys($language)
Return the translation keys missing from a given language, or those that are identical to the english...