Definition at line 6 of file oxlang.php.
Public Member Functions | |
| resetBaseLanguage () | |
| getBaseLanguage () | |
| getTplLanguage () | |
| getEditLanguage () | |
| getLanguageArray ($iLanguage=null) | |
| getLanguageAbbr ($iLanguage=null) | |
| getLanguageNames () | |
| getLanguageIds () | |
| translateString ($sStringToTranslate, $iLang=null, $blAdminMode=null) | |
| formatCurrency ($dValue, $oActCur=null) | |
| formatVat ($dValue, $oActCur=null) | |
| getLanguageTag ($iLanguage=null) | |
| validateLanguage ($iLang=null) | |
| setBaseLanguage ($iLang=null) | |
| setTplLanguage ($iLang=null) | |
Static Public Member Functions | |
| static | getInstance () |
Protected Member Functions | |
| _getLangTranslationArray ($iLang=null, $blAdminMode=null) | |
| _readTranslateStrFromTextFile ($sStringToTranslate, $iLang=null, $blIsAdmin=null) | |
Protected Attributes | |
| $_iBaseLanguageId = null | |
| $_iTplLanguageId = null | |
| $_iEditLanguageId = null | |
| $_aLangCache = null | |
| $_aAdminLangCache = null | |
Static Private Attributes | |
| static | $_instance = null |
| static oxLang.getInstance | ( | ) | [static] |
| oxLang.resetBaseLanguage | ( | ) |
resetBaseLanguage resets base language id cache
public
Definition at line 80 of file oxlang.php.
| oxLang.getBaseLanguage | ( | ) |
| oxLang.getTplLanguage | ( | ) |
Returns active shop templates language id If it is not an admin area, template language id is same as base shop language id
Definition at line 145 of file oxlang.php.
| oxLang.getEditLanguage | ( | ) |
Returns editing object working language id
Definition at line 177 of file oxlang.php.
| oxLang.getLanguageArray | ( | $ | iLanguage = null |
) |
Returns array of available languages.
| integer | $iLanguage Number if current language (default null) |
Definition at line 218 of file oxlang.php.
| oxLang.getLanguageAbbr | ( | $ | iLanguage = null |
) |
getLanguageNames returns array of language names e.g. array('Deutch', 'English')
| int | $iLanguage language number |
Definition at line 259 of file oxlang.php.
| oxLang.getLanguageNames | ( | ) |
getLanguageNames returns array of language names e.g. array('Deutch', 'English')
public
Definition at line 282 of file oxlang.php.
| oxLang.getLanguageIds | ( | ) |
| oxLang.translateString | ( | $ | sStringToTranslate, | |
| $ | iLang = null, |
|||
| $ | blAdminMode = null | |||
| ) |
Searches for translation string in file and on success returns translation, otherwise returns initial string.
| string | $sStringToTranslate Initial string | |
| int | $iLang optional language number | |
| bool | $blAdminMode on special case you can force mode, to load language constant from admin/shops language file |
| oxLanguageException | in debug mode |
Definition at line 309 of file oxlang.php.
| oxLang.formatCurrency | ( | $ | dValue, | |
| $ | oActCur = null | |||
| ) |
Returns formatted currency string, according to formatting standards.
| double | $dValue Plain price | |
| object | $oActCur Object of active currency |
Definition at line 334 of file oxlang.php.
| oxLang.formatVat | ( | $ | dValue, | |
| $ | oActCur = null | |||
| ) |
Returns formatted vat value, according to formatting standards.
| double | $dValue Plain price | |
| object | $oActCur Object of active currency |
Definition at line 350 of file oxlang.php.
| oxLang.getLanguageTag | ( | $ | iLanguage = null |
) |
According to user configuration forms and return language prefix.
| integer | $iLanguage User selected language (default null) |
Definition at line 370 of file oxlang.php.
| oxLang._getLangTranslationArray | ( | $ | iLang = null, |
|
| $ | blAdminMode = null | |||
| ) | [protected] |
get language array from lang translation file
| int | $iLang optional language | |
| bool | $blAdminMode admin mode switch |
Definition at line 389 of file oxlang.php.
| oxLang._readTranslateStrFromTextFile | ( | $ | sStringToTranslate, | |
| $ | iLang = null, |
|||
| $ | blIsAdmin = null | |||
| ) | [protected] |
translates a given string
| string | $sStringToTranslate string that should be translated | |
| int | $iLang language id (optional) | |
| bool | $blIsAdmin admin mode switch (default null) |
Definition at line 478 of file oxlang.php.
| oxLang.validateLanguage | ( | $ | iLang = null |
) |
Validate language id. If not valid id, returns default value
| int | $iLang Language id |
Definition at line 536 of file oxlang.php.
| oxLang.setBaseLanguage | ( | $ | iLang = null |
) |
Set base shop language
| int | $iLang Language id |
Definition at line 558 of file oxlang.php.
| oxLang.setTplLanguage | ( | $ | iLang = null |
) |
Set templates language id
| int | $iLang Language id |
Definition at line 580 of file oxlang.php.
oxLang.$_instance = null [static, private] |
Definition at line 13 of file oxlang.php.
oxLang.$_iBaseLanguageId = null [protected] |
Definition at line 20 of file oxlang.php.
oxLang.$_iTplLanguageId = null [protected] |
Definition at line 27 of file oxlang.php.
oxLang.$_iEditLanguageId = null [protected] |
Definition at line 34 of file oxlang.php.
oxLang.$_aLangCache = null [protected] |
Definition at line 41 of file oxlang.php.
oxLang.$_aAdminLangCache = null [protected] |
Definition at line 48 of file oxlang.php.
1.5.5