![]() |
Xataface 2.0
Xataface Application Framework
|
Static Public Member Functions | |
| static & | getInstance ($lang=null) |
| static | loadRealm ($name) |
| static | addRealm ($name, $dictionary=null) |
| static | removeRealm ($name) |
| static | _loadLangINIFile () |
| static | translate ($__translation_id, $__defaultText=null, $params=array(), $lang=null) |
| static | getLanguageSelectorHTML ($params=array()) |
Definition at line 22 of file LanguageTool.php.
| static _loadLangINIFile | ( | ) | [static] |
Definition at line 65 of file LanguageTool.php.
| static addRealm | ( | $ | name, |
| $ | dictionary = null |
||
| ) | [static] |
Definition at line 53 of file LanguageTool.php.
| static& getInstance | ( | $ | lang = null | ) | [static] |
Definition at line 24 of file LanguageTool.php.
| static getLanguageSelectorHTML | ( | $ | params = array() | ) | [static] |
Returns the HTML for a language selector. This can be a list of flags, or names of languages, or a select list of names of languages.
| $params | An associative array of parameters for this method. Keys: name : The name of the select widget or id of the ul (if unordered list) var : The GET variable that will be set by selecting one of these languages. selected : The code of the language that is considered to be currently selected. autosubmit : Whether the select list should auto submit type : 'select' or 'ul' lang : language code override use_flags : default true. |
Definition at line 90 of file LanguageTool.php.
| static loadRealm | ( | $ | name | ) | [static] |
Like addRealm except that it only adds the realm if the realm isn't already loaded.
Definition at line 47 of file LanguageTool.php.
| static removeRealm | ( | $ | name | ) | [static] |
Definition at line 58 of file LanguageTool.php.
| static translate | ( | $ | __translation_id, |
| $ | __defaultText = null, |
||
| $ | params = array(), |
||
| $ | lang = null |
||
| ) | [static] |
Definition at line 72 of file LanguageTool.php.
1.7.4