Public Member Functions | |
| formatDate ($date, $format) | |
| returns a date in current language formatted to the given format string | |
| formatFloatNumber ($num, $digits=2, $flags=0) | |
| format a float number | |
| formatIntNumber ($num, $flags=0) | |
| format an integer number | |
| getDate ($date) | |
| returns date in current language, default: ISO-date | |
| getDateTime ($date) | |
| returns date in current language, default: ISO-date | |
| getPrice ($price, $flags=3) | |
| returns price in current language | |
| getTime ($time) | |
| returns time in current language | |
| getValue ($key) | |
| returns value for specified key in current language | |
| templateFolder () | |
| returns the configured language template folder | |
| templateFolders () | |
| returns the configured language template folder plus its fallback | |
Static Public Member Functions | |
| static | getLanguages () |
| returns all supported languages | |
| static | resetLanguage ($lang) |
| resets the singleton instance to a different language | |
| static | setLanguage () |
| checks parameters, sets a language cookie returns home | |
| static | singleton () |
| returns the instance of the Language Manager | |
Public Attributes | |
| const | MoneyCurrencyClient = 0x20 |
| show the clients (Unicode) version of the currency symbol | |
| const | MoneyCurrencyHTML = 0 |
| show the HTML version of the currency symbol | |
| const | MoneyCurrencyMask = 0xf0 |
| mask for currency symbol choice | |
| const | MoneyCurrencyPlain = 0x10 |
| show the plain ASCII version of the currency symbol | |
| const | MoneyShowCurrency = 2 |
| show the currency symbol | |
| const | UseThousandSeparator = 1 |
| show the thoursand separator in numbers and money | |
| LanguageManager::formatDate | ( | $ | date, | |
| $ | format | |||
| ) |
returns a date in current language formatted to the given format string
References $d.
Referenced by getDate(), getDateTime(), and getTime().
| LanguageManager::formatFloatNumber | ( | $ | num, | |
| $ | digits = 2, |
|||
| $ | flags = 0 | |||
| ) |
| LanguageManager::formatIntNumber | ( | $ | num, | |
| $ | flags = 0 | |||
| ) |
format an integer number
Referenced by formatFloatNumber().
| LanguageManager::getDate | ( | $ | date | ) |
returns date in current language, default: ISO-date
References formatDate().
| LanguageManager::getDateTime | ( | $ | date | ) |
returns date in current language, default: ISO-date
References formatDate().
| static LanguageManager::getLanguages | ( | ) | [static] |
| LanguageManager::getPrice | ( | $ | price, | |
| $ | flags = 3 | |||
| ) |
returns price in current language
References formatFloatNumber(), WOServerFormatAbstract::NoSign, WOServerFormatAbstract::SignAfterNum, WOServerFormatAbstract::SignAfterSym, WOServerFormatAbstract::SignBeforeSym, and WOServerFormatAbstract::SignParen.
| LanguageManager::getTime | ( | $ | time | ) |
returns time in current language
References formatDate().
| LanguageManager::getValue | ( | $ | key | ) |
returns value for specified key in current language
| static LanguageManager::resetLanguage | ( | $ | lang | ) | [static] |
resets the singleton instance to a different language
| static LanguageManager::setLanguage | ( | ) | [static] |
checks parameters, sets a language cookie returns home
References $HTTPARGS, and redirectHome().
| static LanguageManager::singleton | ( | ) | [static] |
returns the instance of the Language Manager
Referenced by SmokeFilterExtension::__construct(), LangFilterExtension::__construct(), createOrderOverview(), and i18n().
| LanguageManager::templateFolder | ( | ) |
returns the configured language template folder
Referenced by templateFolders().
| LanguageManager::templateFolders | ( | ) |
returns the configured language template folder plus its fallback
References templateFolder().
| const LanguageManager::MoneyCurrencyClient = 0x20 |
show the clients (Unicode) version of the currency symbol
| const LanguageManager::MoneyCurrencyHTML = 0 |
show the HTML version of the currency symbol
| const LanguageManager::MoneyCurrencyMask = 0xf0 |
mask for currency symbol choice
| const LanguageManager::MoneyCurrencyPlain = 0x10 |
show the plain ASCII version of the currency symbol
Referenced by LangFilterExtension::getPricePlain().
| const LanguageManager::MoneyShowCurrency = 2 |
show the currency symbol
Referenced by LangFilterExtension::getPricePlain().
| const LanguageManager::UseThousandSeparator = 1 |
show the thoursand separator in numbers and money
Referenced by LangFilterExtension::getPricePlain().
1.7.1