Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Locale instead of language is used in resource path when using Zend_Validate #691

Open
holtkamp opened this issue May 8, 2016 · 1 comment

Comments

@holtkamp
Copy link
Contributor

holtkamp commented May 8, 2016

I consider this an inconsistency:

screen shot 2016-05-08 at 19 57 36

It seems to also have made it into ZF2: https://github.com/zendframework/zend-i18n-resources/tree/master/languages

Any specific reason for this?

Based on the peferred user language we register a validator for Form Validation. However, for users with Portuguese as preferred language (either Locale: pt_BR, pt_PT, pt_AO..., resulting in 'language = pt') this fails, since the file will not exist: resources/languages/pt/Zend_Validate.php.

@froschdesign
Copy link
Member

@holtkamp
We need a test case for the problem. Maybe like this one?!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants