You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
MvcTranslator key will not trigger TranslatorDelegator (I'm using this to translate validator messages inside form generated with Zend\Form\View\Helper\Form). Instead, I had to create this as follows:
I'm using delegator factory as shown in docs for zend-i18n-resources (https://github.com/zendframework/zend-i18n-resources/blob/master/doc/book/usage.md). I'm not sure if it's a bug inside documentation or missing alias for Service Manager.
https://github.com/zendframework/zend-i18n/blob/master/src/Translator/LoaderPluginManager.php#L62
Here We can see definition only for lowercased 'phparray' key, so 'phpArray' won't work.
Another thing is delegator config:
MvcTranslator
key will not trigger TranslatorDelegator (I'm using this to translate validator messages inside form generated with Zend\Form\View\Helper\Form). Instead, I had to create this as follows:Shouldn't locale be normalized and maybe even merged, for example
First, class should look for
pt_BR
translation, thenpt
and if both exist, merge them.The text was updated successfully, but these errors were encountered: