All notable changes to this project will be documented in this file, in reverse chronological order by release.
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 with Zend\View\Renderer\PhpRenderer
in annotations on the $this
variable within view scripts to provide IDE autocompletion for helper-provided methods.#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 under translate()
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.
#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.
Translator
, getCacheId(string $textDomain, string $locale)
,
and clearCache(string $textDomain, string $locale)
.TranslatorServiceFactory
injects the configured TranslatorPluginManager
,
if any, before returning it. This ensures that configured remote loaders can be utilized.#71 adds a new option to the IsInt
validator, 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 a setStrict($flag)
method for
enabling/disabling the behavior.
#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 string LV-
, which is now mandatory within Latvia. For BC purposes, the
prefix is considered optional.
PostCode
validation for Ireland to support Eircode
(https://www.eircode.ie/what-is-eircode)LoaderPluginManagerFactory
factory initializes the plugin manager instance,
ensuring it is injecting the relevant configuration from the config
service
and thus seeding it with configured translator loader services. This means
that the translator_plugins
configuration will now be honored in
non-zend-mvc contexts.LoaderPluginManager
to ensure different cAsIng strategies will still
resolve translation loaders under zend-servicemanager v3.PoEdit
source keywords when a text_domain is
defined.CurrencyFormat
view helper for an ICU bug
(http://bugs.icu-project.org/trac/ticket/10997).PhoneNumber
validator 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.Zend\I18n\View\HelperConfig
implementation
when operating under zend-servicemanager v3.Module::init()
method to properly receive a ModuleManager
instance, and
not expect a ModuleEvent
.Zend\I18n\Module::init()
, which registers a specification for the translator
loader plugin manager with Zend\ModuleManager\Listener\ServiceListener
.Zend\I18n\Translator\LoaderPluginManagerFactory
, which provides a factory
for container-interop-compatible containers (including zend-servicemanager)
for creating and returning a LoaderPluginManager
instance.Zend\I18n\ConfigProvider
(which provides an invokable configuration
provider class; this could be used with zend-expressive) and
Zend\I18n\Module
(which provides a zend-mvc/zend-modulemanager module
providing service configuration for ZF applications); these provide
configuration for zend-i18n services, including filters, validators, and
view helpers.Zend\I18n\View\HelperConfig
, as the functionality is made obsolete by the
new Module
class. The class will be removed with the 3.0 release.NumberFormatter
text attributes to the NumberFormat
view helper.Translator::getTranslatedMessage()
to prevent illegal
offset warnings.