Elgg
Version 1.11
|
WARNING: API IN FLUX. More...
Public Member Functions | |
translate ($key, $args=array(), $lang= '') | |
Public Member Functions inherited from Elgg\I18n\Translator | |
__construct () | |
Initializes new translator. More... | |
translate ($message_key, $args=array(), $language="") | |
Given a message key, returns an appropriately translated full-text string. More... | |
addTranslation ($country_code, $language_array) | |
Add a translation. More... | |
getCurrentLanguage () | |
Detect the current language being used by the current site or logged in user. More... | |
getLanguage () | |
Gets the current language in use by the system or user. More... | |
loadTranslations () | |
private More... | |
registerTranslations ($path, $load_all=false) | |
When given a full path, finds translation files and loads them. More... | |
reloadAllTranslations () | |
Reload all translations from all registered paths. More... | |
getInstalledTranslations () | |
Return an array of installed translations as an associative array "two letter code" => "native language name". More... | |
getLanguageCompleteness ($language) | |
Return the level of completeness for a given language code (compared to english) More... | |
getMissingLanguageKeys ($language) | |
Return the translation keys missing from a given language, or those that are identical to the english version. More... | |
languageKeyExists ($key, $language= 'en') | |
Check if a give language key exists. More... | |
getAllLanguageCodes () | |
Returns an array of language codes. More... | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
A translator that does nothing except return the key that was requested.
This translator is useful during development if you want to be able to easily tell what the available keys are for changing the wording of UI elements.
private
Definition at line 17 of file NullTranslator.php.
Elgg\I18n\NullTranslator::translate | ( | $key, | |
$args = array() , |
|||
$lang = '' |
|||
) |
Definition at line 19 of file NullTranslator.php.