#821: The gettext translator doesn't interpret the plural forms like the 
original
gettext
-------------------------+--------------------------------------------------
 Reporter:  dominik      |       Owner:  dominik                                
             
     Type:  defect       |      Status:  new                                    
             
 Priority:  normal       |   Milestone:  0.11.3                                 
             
Component:  translation  |     Version:  0.11.2                                 
             
 Severity:  major        |    Keywords:  gettext plural pluralforms ternary 
operator precende
Has_patch:  0            |  
-------------------------+--------------------------------------------------
 This happens due different operator precedences between c and php for the
 ternary operator

 {{{
 Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 &&
 n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n
 }}}
 would beed to changed to

 {{{
 Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : (n%10>=2 &&
 n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2));\n
 }}}

-- 
Ticket URL: <http://trac.agavi.org/ticket/821>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to