|
| __clone () |
|
| getCurrentLangName ($bSetCookie=true) |
|
| getCurrentLangId () |
|
| getLangId ($sLang) |
|
| getLangName ($iLangId) |
|
| getLangTitle ($iLangId) |
|
| getLangFlag ($sLang='') |
|
| getLangDirection ($sLang='') |
|
| getLangCountryCode ($sLang='') |
|
| getDefaultLangName () |
|
| getLanguages ($bIdAsKey=false, $bActiveOnly=false) |
|
| getLanguagesExt ($bIdAsKey=false, $bActiveOnly=false) |
|
| getLanguageCategory ($sName) |
|
| detectLanguageFromArray ($aLangs, $sFallbackLanguage='en', $bLowercase=false) |
|
| getCurrentLanguage () |
|
| _t () |
|
| _t_err () |
|
| _t_action () |
|
| _t_ext ($key, $args) |
|
| _t_format_size ($iSize) |
|
| _t_format_duration ($iTime) |
|
| _t_format_currency ($fPrice, $iPrecision=2, $bFormatThousands=true, $sSign='') |
|
| _t_format_extensions ($mixedExtensions) |
|
|
| init () |
|
| tryToGetLang ($sLangs, $bSetCookie=false) |
|
| checkLangExists ( $sLang) |
|
| setLangCookie ( $sLang) |
|
◆ __construct()
BxDolLanguages::__construct |
( |
| ) |
|
|
protected |
◆ __clone()
BxDolLanguages::__clone |
( |
| ) |
|
Prevent cloning the instance
◆ detectLanguageFromArray()
BxDolLanguages::detectLanguageFromArray |
( |
| $aLangs, |
|
|
| $sFallbackLanguage = 'en', |
|
|
| $bLowercase = false ) |
It tries to match current language with provided languages array, if nothing is found $sFallbackLanguage is returned.
- Parameters
-
$aLangs | - array of languages, example: array('ru' => 1, 'kg' => 1); |
$sFallbackLanguage | - language to return of nothis is found |
- Returns
- language code string
◆ getCurrentLanguage()
BxDolLanguages::getCurrentLanguage |
( |
| ) |
|
◆ getInstance()
static BxDolLanguages::getInstance |
( |
| ) |
|
|
static |
◆ init()
Trying to initialize default language.
The documentation for this class was generated from the following file:
- inc/classes/BxDolLanguages.php