Releases: zendframework/zend-i18n
zend-i18n 2.10.1
zend-i18n 2.10.0
Added
- #102 adds
Zend\I18n\View\HelperTrait, which provides annotations describing the various helpers zend-i18n provides to a zend-view renderer. The trait can be used in combination withZend\View\Renderer\PhpRendererin annotations on the$thisvariable within view scripts to provide IDE autocompletion for helper-provided methods.
Changed
-
#110 modifies how
translatePlural()works when a msgid is present, but no translations are present. It now properly returns the source-code if unable to translate the message, instead of returning an empty string (which is the behavior undertranslate()as well). -
#126 modifies the package definition to put an explicit requirement on ext-intl, as it is required for the majority of functionality. Users have indicated multiple times confusion about why the component does not work after installation, when attempting to use intl functionality; requiring the extension resolves that issue.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-i18n 2.9.2
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #122 fixes PHP 7.4 compatibility.
zend-i18n 2.9.1
Added
- #106 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#114 fixes PHP 7.4 compatibility.
-
#116 fixes DateTime formatter when changing timezone within the same instance.
-
#100 fixes regular expression in Liechtenstein postcode validator.
-
#116 fixes PhoneNumber validator to match the whole value.
-
#103 fixes Brazilian PhoneNumber validator.
-
#117 fixes French PhoneNumber validator.
-
#119 fixes Kosovan PhoneNumber validator.
-
#120 fixes Luxembourgish PhoneNumber validator.
zend-i18n 2.9.0
Added
- #93 adds two methods to
Translator,getCacheId(string $textDomain, string $locale),
andclearCache(string $textDomain, string $locale).
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #96 ensures that the
TranslatorServiceFactoryinjects the configuredTranslatorPluginManager,
if any, before returning it. This ensures that configured remote loaders can be utilized.
zend-i18n 2.8.0
Added
-
#71 adds a new option to the
IsIntvalidator,strict. When set to boolean
true, comparisons will use strict type validations. The default,false, retains the current
behavior of non-strict comparisons. The class also exposes asetStrict($flag)method for
enabling/disabling the behavior.
Changed
-
#81 updates the list of allowed mobile prefixes for Chinese phones to match
current changes to their systems. -
#80 updates the PostCode validator to allow prefixing Latvian postal
codes using the stringLV-, which is now mandatory within Latvia. For BC purposes, the
prefix is considered optional.
Deprecated
- Nothing.
Removed
- #78 removes support for HHVM.
Fixed
- #75 fixes an issue with formatting currency values where
the currency indicator is at the end of the value.
zend-i18n 2.7.4
Added
- Nothing.
Changes
- #65 updates the
PostCodevalidation for Ireland to support Eircode (https://www.eircode.ie/what-is-eircode)
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #74 fixes how the
LoaderPluginManagerFactoryfactory initializes the plugin manager instance, ensuring it is injecting the relevant configuration from theconfigservice and thus seeding it with configured translator loader services. This means that thetranslator_pluginsconfiguration will now be honored in non-zend-mvc contexts. - #56 adds more aliases to the
LoaderPluginManagerto ensure different cAsIng strategies will still resolve translation loaders under zend-servicemanager v3. - #62 fixes an issue with how the gettext adapter resolves
PoEditsource keywords when a text_domain is defined. - #73 provides a workaround within the
CurrencyFormatview helper for an ICU bug (http://bugs.icu-project.org/trac/ticket/10997).
zend-i18n 2.7.3
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #42 fixes the behavior of the
PhoneNumbervalidator to store the country using the casing provided, but validate based on the uppercased country value. This ensures the same validation behavior, and prevents the value from being transformed, potentially breaking later retrieval. - #47 provides a performance improvement to the
Zend\I18n\View\HelperConfigimplementation when operating under zend-servicemanager v3.
zend-i18n 2.7.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #45 fixes the
Module::init()method to properly receive aModuleManagerinstance, and not expect aModuleEvent.
zend-i18n 2.7.1
Added
- #41 adds
Zend\I18n\Module::init(), which registers a specification for the translator loader plugin manager withZend\ModuleManager\Listener\ServiceListener.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.