Class Mage_Core_Model_Locale
Locale model
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Locale.php
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
Zend_Locale
|
|
public
string
|
|
public
|
|
public
array
|
|
public
array
|
|
protected
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
unknown
|
|
public
unknown
|
|
protected
|
|
public
array
|
|
public
unknown
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
#
utcDate( mixed $store = null, string|integer|
Create Zend_Date object with date converted from store's timezone to UTC time zone. Date can be passed in format of store's locale or in format which was passed as parameter. |
public
integer
|
#
storeTimeStamp( mixed $store = null )
Get store timestamp Timstamp will be builded with store timezone settings |
public
Zend_Currency
|
|
public
float|null
|
|
public
array
|
#
getJsPriceFormat( )
Functions returns array with price formatting info for js function formatCurrency in js/varien/js.js |
public
|
|
public
|
|
public
array
|
#
getTranslationList( string $path = null, string $value = null )
Returns localized informations as array, supported are several types of informations. For detailed information about the types look into the documentation |
public
string|false
|
#
getTranslation( string $value = null, string $path = null )
Returns a localized information string, supported are several types of informations. For detailed information about the types look into the documentation |
public
array
|
|
public
array
|
#
getCountryTranslationList( )
Returns an array with the name of all countries translated to the given language |
public
boolean
|
#
isStoreDateInInterval( integer|string|
Checks if current date of the given store (in the store timezone) is within the range |
string |
DEFAULT_LOCALE
|
'en_US' |
#
Default locale name |
string |
DEFAULT_TIMEZONE
|
'UTC' |
|
string |
DEFAULT_CURRENCY
|
'USD' |
|
string |
XML_PATH_DEFAULT_LOCALE
|
'general/locale/code' |
#
XML path constants |
string |
XML_PATH_DEFAULT_TIMEZONE
|
'general/locale/timezone' |
|
string |
XML_PATH_ALLOW_CODES
|
'global/locale/allow/codes' |
|
string |
XML_PATH_ALLOW_CURRENCIES
|
'global/locale/allow/currencies' |
|
string |
XML_PATH_ALLOW_CURRENCIES_INSTALLED
|
'system/currency/installed' |
|
string |
FORMAT_TYPE_FULL
|
'full' |
#
Date and time format codes |
string |
FORMAT_TYPE_LONG
|
'long' |
|
string |
FORMAT_TYPE_MEDIUM
|
'medium' |
|
string |
FORMAT_TYPE_SHORT
|
'short' |
protected
string
|
$_defaultLocale |
|
#
Default locale code |
protected
Zend_Locale
|
$_locale |
|
#
Locale object |
protected
string
|
$_localeCode |
|
#
Locale code |
protected
array
|
$_emulatedLocales | array() |
#
Emulated locales stack |
protected static
array
|
$_currencyCache | array() |