Issues

ZF-10072: Wrong plural rule for polish language

Issue Type: Bug Created: 2010-06-29T04:26:30.000+0000 Last Updated: 2010-07-04T04:07:26.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Adam Kusmierz (raistlin) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments: - polish.patch

Description

There is mistake for polish plural rule.

The rule is: return ($number == 1) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 > 29))) ? 1 : 2); But should be: return ($number == 1) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 > 19))) ? 1 : 2);

Patch will be attached.

Comments

Posted by Thomas Weidner (thomas) on 2010-07-04T04:07:23.000+0000

Fixed with r22519

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts