Country and Currency collections (Deprecation)
Included in this release:
- Countries: Added a country collection accessible via
Localization::createCountries(). - Countries: Added the
ISO_CODEconstant to all country classes. - Countries: Fixed some separator character mixups.
- Locales: Added the
LOCALE_NAMEconstant to all locale classes. - Locales: Added the
LocaleInterfaceinterface. - Locales: Added the
es_MXlocale. - Currencies: Added the
CurrencyInterfaceinterface. - Currencies: Added the
ISO_CODEconstant to all currency classes. - Currencies: Added
getCountries(). - Currencies: Added
isNamePreferred(). - Currencies: Added
getPreferredSymbol(). - Currencies: Improved template-based formatting.
- Generator: Fixed clientside files being regenerated every time.
Currency changes
Currencies can now be accessed without a country context for accessing basic
information. For number formatting, a country context is still required:
Get the currency from a country object for the added functionality.
Deprecations
Localization_Currency::getCountry(), no replacement planned.Localization::createCountry()=>Localization::createCountries()->getByID()CountryInterface::getCurrencyID()=>getCurrencyISO()Localization_CountryInterface=>CountryInterfaceLocalization_Country=>CountryInterfaceorBaseCountryLocalization_Currency=>CurrencyInterfaceorBaseCurrencyBaseCurrency::isCurrencyKnown()=>Localization::createCurrencies()->idExists()Localization_Currency_Number=>CurrencyNumberInfoLocalization_Event_LocaleChanged=>LocaleChanged