ZF-4514: language packs

Issue Type: New Feature Created: 2008-10-07T15:00:09.000+0000 Last Updated: 2009-11-30T02:00:28.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Kristof Vansant (lupus) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: - ZF-3164



For non English users we need language packs for Zend_Validate we can use. A infrastructure which allows people to review en commit translations should be placed on the website like with other open source packs.

Otherwise everyone is doing it's own translations. This is a lot of double work!


Posted by old of Satoru Yoshida ( on 2008-10-07T22:42:33.000+0000

Hello, Kristof.

For example, you mean Zend_Filter_Alpha and Zend_Filter_Alnum should be customizable for each languages?

(Zend_Filter_Alpha and Zend_Filter_Alnum are used in Zend_Validate_Alpha and Zend_Validate_Alnum.)

Posted by Kristof Vansant (lupus) on 2008-10-08T00:22:40.000+0000

protected $_messageTemplates = array( self::IP_ADDRESS_NOT_ALLOWED => "'%value%' appears to be an IP address, but IP addresses are not allowed", self::UNKNOWN_TLD => "'%value%' appears to be a DNS hostname but cannot match TLD against known list", self::INVALID_DASH => "'%value%' appears to be a DNS hostname but contains a dash (-) in an invalid position", self::INVALID_HOSTNAME_SCHEMA => "'%value%' appears to be a DNS hostname but cannot match against hostname schema for TLD '%tld%'", self::UNDECIPHERABLE_TLD => "'%value%' appears to be a DNS hostname but cannot extract TLD part", self::INVALID_HOSTNAME => "'%value%' does not match the expected structure for a DNS hostname", self::INVALID_LOCAL_NAME => "'%value%' does not appear to be a valid local network name", self::LOCAL_NAME_NOT_ALLOWED => "'%value%' appears to be a local network name but local network names are not allowed" );

protected $_messageTemplates = array(
    self::INVALID            => "'%value%' is not a valid email address in the basic format local-part@hostname",
    self::INVALID_HOSTNAME   => "'%hostname%' is not a valid hostname for email address '%value%'",
    self::INVALID_MX_RECORD  => "'%hostname%' does not appear to have a valid MX record for the email address '%value%'",
    self::DOT_ATOM           => "'%localPart%' not matched against dot-atom format",
    self::QUOTED_STRING      => "'%localPart%' not matched against quoted-string format",
    self::INVALID_LOCAL_PART => "'%localPart%' is not a valid local part for email address '%value%'"


Posted by Thomas Weidner (thomas) on 2008-10-08T03:43:37.000+0000

There is already a issue for this one... No need to have it twice.

Still, this issue depends on other like ZF-3164, ZF-4311, ZF-1998, ZF-1877, ZF-4371. I see this more as part of the this proposal:… even if it's not exactly the same.

Alex: Would you mind if I take over the work internationalisation, collecting and so on also for this component ? I see this as part of I18N. Please give me a reply what you think.

Posted by Thomas Weidner (thomas) on 2009-10-26T13:21:15.000+0000

Closing as fixed.

Resources for english and german are available within incubator. Acceptance for core has been requested.

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-29T16:47:17.000+0000

Hi, thomas. Can I add ja/Zend_Validate.php to incubator/resources/languages/ ?

Posted by Thomas Weidner (thomas) on 2009-11-29T22:54:23.000+0000

There is still no acceptance.

It could be that it is wished to change the used format or that other points have to be done before migrating it to core.

And we have also to keep the revision where the resouce is build from. Otherwise there would be no way to know which messages have changed and which not.

You could add it, but you must keep track of any changes I am doing within 'en' and 'de' as I will not move other languages to core ( I don't understand them ;-) )

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-29T23:10:46.000+0000

Thank You for quick responce.

I see , I will wait for Your moving trunk and being released in core ;-)

Posted by Mickael Perraud (mikaelkael) on 2009-11-30T02:00:28.000+0000

French is really easy to learn ;)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.