File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- /*! l10n.js v1.0.0 */
1
+ /*! l10n.js v1.0.1 */
2
2
/*
3
3
* l10n.js
4
4
*
123
123
* On the other hand, if plural=(n==1), first cell should be "cat"
124
124
* and second cell should be "cats".
125
125
*/
126
- parsePlural = function ( pluralForms ) {
126
+ parsePlural = function ( pluralForms , n ) {
127
127
//n is used in eval()
128
128
var re = / ^ n p l u r a l s = [ 0 - 9 ] ; \s * p l u r a l = \( ( [ n ! = > < ( ? : \s + \| \| \s + ) ( ? : \s + & & \s + ) % 0 - 9 ] { 3 , } ) \) / i,
129
129
evalResult ,
200
200
}
201
201
}
202
202
if ( pluralForms . indexOf ( 'nplurals=2' ) !== - 1 ) {
203
- position = parsePlural ( pluralForms ) ;
203
+ position = parsePlural ( pluralForms , cardinality ) ;
204
204
plural = getPlural ( localizations [ locale ] , position , this_val ) ;
205
205
//only return if plural form is found
206
206
if ( plural ) {
You can’t perform that action at this time.
0 commit comments