| 1 |
// Copyright 2012 The Closure Library Authors. All Rights Reserved. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS-IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
/** |
| 16 |
* @fileoverview Plural rules. |
| 17 |
* |
| 18 |
* |
| 19 |
* File generated from CLDR ver. 32 |
| 20 |
* |
| 21 |
* Before check in, this file could have been manually edited. This is to |
| 22 |
* incorporate changes before we could fix CLDR. All manual modification must be |
| 23 |
* documented in this section, and should be removed after those changes land to |
| 24 |
* CLDR. |
| 25 |
*/ |
| 26 |
|
| 27 |
// clang-format off |
| 28 |
|
| 29 |
goog.provide('goog.i18n.pluralRules'); |
| 30 |
/** |
| 31 |
* Plural pattern keyword |
| 32 |
* @enum {string} |
| 33 |
*/ |
| 34 |
goog.i18n.pluralRules.Keyword = { |
| 35 |
ZERO: 'zero', |
| 36 |
ONE: 'one', |
| 37 |
TWO: 'two', |
| 38 |
FEW: 'few', |
| 39 |
MANY: 'many', |
| 40 |
OTHER: 'other' |
| 41 |
}; |
| 42 |
|
| 43 |
|
| 44 |
/** |
| 45 |
* Plural selection function. |
| 46 |
* |
| 47 |
* The actual implementation is locale-dependent. |
| 48 |
* |
| 49 |
* @param {number} n The count of items. |
| 50 |
* @param {number=} opt_precision optional, precision. |
| 51 |
* @return {goog.i18n.pluralRules.Keyword} |
| 52 |
*/ |
| 53 |
goog.i18n.pluralRules.select; |
| 54 |
|
| 55 |
/** |
| 56 |
* Default Plural select rule. |
| 57 |
* @param {number} n The count of items. |
| 58 |
* @param {number=} opt_precision optional, precision. |
| 59 |
* @return {goog.i18n.pluralRules.Keyword} Default value. |
| 60 |
* @private |
| 61 |
*/ |
| 62 |
goog.i18n.pluralRules.defaultSelect_ = function(n, opt_precision) { |
| 63 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 64 |
}; |
| 65 |
|
| 66 |
/** |
| 67 |
* Returns the fractional part of a number (3.1416 => 1416) |
| 68 |
* @param {number} n The count of items. |
| 69 |
* @return {number} The fractional part. |
| 70 |
* @private |
| 71 |
*/ |
| 72 |
goog.i18n.pluralRules.decimals_ = function(n) { |
| 73 |
var str = n + ''; |
| 74 |
var result = str.indexOf('.'); |
| 75 |
return (result == -1) ? 0 : str.length - result - 1; |
| 76 |
}; |
| 77 |
|
| 78 |
/** |
| 79 |
* Calculates v and f as per CLDR plural rules. |
| 80 |
* The short names for parameters / return match the CLDR syntax and UTS #35 |
| 81 |
* (https://unicode.org/reports/tr35/tr35-numbers.html#Plural_rules_syntax) |
| 82 |
* @param {number} n The count of items. |
| 83 |
* @param {number=} opt_precision optional, precision. |
| 84 |
* @return {!{v:number, f:number}} The v and f. |
| 85 |
* @private |
| 86 |
*/ |
| 87 |
goog.i18n.pluralRules.get_vf_ = function(n, opt_precision) { |
| 88 |
var DEFAULT_DIGITS = 3; |
| 89 |
|
| 90 |
if (undefined === opt_precision) { |
| 91 |
var v = Math.min(goog.i18n.pluralRules.decimals_(n), DEFAULT_DIGITS); |
| 92 |
} else { |
| 93 |
var v = opt_precision; |
| 94 |
} |
| 95 |
|
| 96 |
var base = Math.pow(10, v); |
| 97 |
var f = ((n * base) | 0) % base; |
| 98 |
|
| 99 |
return {v: v, f: f}; |
| 100 |
}; |
| 101 |
|
| 102 |
/** |
| 103 |
* Calculates w and t as per CLDR plural rules. |
| 104 |
* The short names for parameters / return match the CLDR syntax and UTS #35 |
| 105 |
* (https://unicode.org/reports/tr35/tr35-numbers.html#Plural_rules_syntax) |
| 106 |
* @param {number} v Calculated previously. |
| 107 |
* @param {number} f Calculated previously. |
| 108 |
* @return {!{w:number, t:number}} The w and t. |
| 109 |
* @private |
| 110 |
*/ |
| 111 |
goog.i18n.pluralRules.get_wt_ = function(v, f) { |
| 112 |
if (f === 0) { |
| 113 |
return {w: 0, t: 0}; |
| 114 |
} |
| 115 |
|
| 116 |
while ((f % 10) === 0) { |
| 117 |
f /= 10; |
| 118 |
v--; |
| 119 |
} |
| 120 |
|
| 121 |
return {w: v, t: f}; |
| 122 |
}; |
| 123 |
|
| 124 |
/** |
| 125 |
* Plural select rules for fil locale |
| 126 |
* |
| 127 |
* @param {number} n The count of items. |
| 128 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 129 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 130 |
* @private |
| 131 |
*/ |
| 132 |
goog.i18n.pluralRules.filSelect_ = function(n, opt_precision) { |
| 133 |
var i = n | 0; |
| 134 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 135 |
if (vf.v == 0 && (i == 1 || i == 2 || i == 3) || vf.v == 0 && i % 10 != 4 && i % 10 != 6 && i % 10 != 9 || vf.v != 0 && vf.f % 10 != 4 && vf.f % 10 != 6 && vf.f % 10 != 9) { |
| 136 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 137 |
} |
| 138 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 139 |
}; |
| 140 |
|
| 141 |
/** |
| 142 |
* Plural select rules for br locale |
| 143 |
* |
| 144 |
* @param {number} n The count of items. |
| 145 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 146 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 147 |
* @private |
| 148 |
*/ |
| 149 |
goog.i18n.pluralRules.brSelect_ = function(n, opt_precision) { |
| 150 |
if (n % 10 == 1 && n % 100 != 11 && n % 100 != 71 && n % 100 != 91) { |
| 151 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 152 |
} |
| 153 |
if (n % 10 == 2 && n % 100 != 12 && n % 100 != 72 && n % 100 != 92) { |
| 154 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 155 |
} |
| 156 |
if ((n % 10 >= 3 && n % 10 <= 4 || n % 10 == 9) && (n % 100 < 10 || n % 100 > 19) && (n % 100 < 70 || n % 100 > 79) && (n % 100 < 90 || n % 100 > 99)) { |
| 157 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 158 |
} |
| 159 |
if (n != 0 && n % 1000000 == 0) { |
| 160 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 161 |
} |
| 162 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 163 |
}; |
| 164 |
|
| 165 |
/** |
| 166 |
* Plural select rules for sr locale |
| 167 |
* |
| 168 |
* @param {number} n The count of items. |
| 169 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 170 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 171 |
* @private |
| 172 |
*/ |
| 173 |
goog.i18n.pluralRules.srSelect_ = function(n, opt_precision) { |
| 174 |
var i = n | 0; |
| 175 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 176 |
if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { |
| 177 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 178 |
} |
| 179 |
if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { |
| 180 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 181 |
} |
| 182 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 183 |
}; |
| 184 |
|
| 185 |
/** |
| 186 |
* Plural select rules for ro locale |
| 187 |
* |
| 188 |
* @param {number} n The count of items. |
| 189 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 190 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 191 |
* @private |
| 192 |
*/ |
| 193 |
goog.i18n.pluralRules.roSelect_ = function(n, opt_precision) { |
| 194 |
var i = n | 0; |
| 195 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 196 |
if (i == 1 && vf.v == 0) { |
| 197 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 198 |
} |
| 199 |
if (vf.v != 0 || n == 0 || n != 1 && n % 100 >= 1 && n % 100 <= 19) { |
| 200 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 201 |
} |
| 202 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 203 |
}; |
| 204 |
|
| 205 |
/** |
| 206 |
* Plural select rules for hi locale |
| 207 |
* |
| 208 |
* @param {number} n The count of items. |
| 209 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 210 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 211 |
* @private |
| 212 |
*/ |
| 213 |
goog.i18n.pluralRules.hiSelect_ = function(n, opt_precision) { |
| 214 |
var i = n | 0; |
| 215 |
if (i == 0 || n == 1) { |
| 216 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 217 |
} |
| 218 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 219 |
}; |
| 220 |
|
| 221 |
/** |
| 222 |
* Plural select rules for fr locale |
| 223 |
* |
| 224 |
* @param {number} n The count of items. |
| 225 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 226 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 227 |
* @private |
| 228 |
*/ |
| 229 |
goog.i18n.pluralRules.frSelect_ = function(n, opt_precision) { |
| 230 |
var i = n | 0; |
| 231 |
if (i == 0 || i == 1) { |
| 232 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 233 |
} |
| 234 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 235 |
}; |
| 236 |
|
| 237 |
/** |
| 238 |
* Plural select rules for pt locale |
| 239 |
* |
| 240 |
* @param {number} n The count of items. |
| 241 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 242 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 243 |
* @private |
| 244 |
*/ |
| 245 |
goog.i18n.pluralRules.ptSelect_ = function(n, opt_precision) { |
| 246 |
var i = n | 0; |
| 247 |
if (i >= 0 && i <= 1) { |
| 248 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 249 |
} |
| 250 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 251 |
}; |
| 252 |
|
| 253 |
/** |
| 254 |
* Plural select rules for cs locale |
| 255 |
* |
| 256 |
* @param {number} n The count of items. |
| 257 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 258 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 259 |
* @private |
| 260 |
*/ |
| 261 |
goog.i18n.pluralRules.csSelect_ = function(n, opt_precision) { |
| 262 |
var i = n | 0; |
| 263 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 264 |
if (i == 1 && vf.v == 0) { |
| 265 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 266 |
} |
| 267 |
if (i >= 2 && i <= 4 && vf.v == 0) { |
| 268 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 269 |
} |
| 270 |
if (vf.v != 0) { |
| 271 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 272 |
} |
| 273 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 274 |
}; |
| 275 |
|
| 276 |
/** |
| 277 |
* Plural select rules for pl locale |
| 278 |
* |
| 279 |
* @param {number} n The count of items. |
| 280 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 281 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 282 |
* @private |
| 283 |
*/ |
| 284 |
goog.i18n.pluralRules.plSelect_ = function(n, opt_precision) { |
| 285 |
var i = n | 0; |
| 286 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 287 |
if (i == 1 && vf.v == 0) { |
| 288 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 289 |
} |
| 290 |
if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) { |
| 291 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 292 |
} |
| 293 |
if (vf.v == 0 && i != 1 && i % 10 >= 0 && i % 10 <= 1 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 12 && i % 100 <= 14) { |
| 294 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 295 |
} |
| 296 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 297 |
}; |
| 298 |
|
| 299 |
/** |
| 300 |
* Plural select rules for shi locale |
| 301 |
* |
| 302 |
* @param {number} n The count of items. |
| 303 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 304 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 305 |
* @private |
| 306 |
*/ |
| 307 |
goog.i18n.pluralRules.shiSelect_ = function(n, opt_precision) { |
| 308 |
var i = n | 0; |
| 309 |
if (i == 0 || n == 1) { |
| 310 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 311 |
} |
| 312 |
if (n >= 2 && n <= 10) { |
| 313 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 314 |
} |
| 315 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 316 |
}; |
| 317 |
|
| 318 |
/** |
| 319 |
* Plural select rules for lv locale |
| 320 |
* |
| 321 |
* @param {number} n The count of items. |
| 322 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 323 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 324 |
* @private |
| 325 |
*/ |
| 326 |
goog.i18n.pluralRules.lvSelect_ = function(n, opt_precision) { |
| 327 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 328 |
if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) { |
| 329 |
return goog.i18n.pluralRules.Keyword.ZERO; |
| 330 |
} |
| 331 |
if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) { |
| 332 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 333 |
} |
| 334 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 335 |
}; |
| 336 |
|
| 337 |
/** |
| 338 |
* Plural select rules for iu locale |
| 339 |
* |
| 340 |
* @param {number} n The count of items. |
| 341 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 342 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 343 |
* @private |
| 344 |
*/ |
| 345 |
goog.i18n.pluralRules.iuSelect_ = function(n, opt_precision) { |
| 346 |
if (n == 1) { |
| 347 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 348 |
} |
| 349 |
if (n == 2) { |
| 350 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 351 |
} |
| 352 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 353 |
}; |
| 354 |
|
| 355 |
/** |
| 356 |
* Plural select rules for he locale |
| 357 |
* |
| 358 |
* @param {number} n The count of items. |
| 359 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 360 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 361 |
* @private |
| 362 |
*/ |
| 363 |
goog.i18n.pluralRules.heSelect_ = function(n, opt_precision) { |
| 364 |
var i = n | 0; |
| 365 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 366 |
if (i == 1 && vf.v == 0) { |
| 367 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 368 |
} |
| 369 |
if (i == 2 && vf.v == 0) { |
| 370 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 371 |
} |
| 372 |
if (vf.v == 0 && (n < 0 || n > 10) && n % 10 == 0) { |
| 373 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 374 |
} |
| 375 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 376 |
}; |
| 377 |
|
| 378 |
/** |
| 379 |
* Plural select rules for mt locale |
| 380 |
* |
| 381 |
* @param {number} n The count of items. |
| 382 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 383 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 384 |
* @private |
| 385 |
*/ |
| 386 |
goog.i18n.pluralRules.mtSelect_ = function(n, opt_precision) { |
| 387 |
if (n == 1) { |
| 388 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 389 |
} |
| 390 |
if (n == 0 || n % 100 >= 2 && n % 100 <= 10) { |
| 391 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 392 |
} |
| 393 |
if (n % 100 >= 11 && n % 100 <= 19) { |
| 394 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 395 |
} |
| 396 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 397 |
}; |
| 398 |
|
| 399 |
/** |
| 400 |
* Plural select rules for si locale |
| 401 |
* |
| 402 |
* @param {number} n The count of items. |
| 403 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 404 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 405 |
* @private |
| 406 |
*/ |
| 407 |
goog.i18n.pluralRules.siSelect_ = function(n, opt_precision) { |
| 408 |
var i = n | 0; |
| 409 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 410 |
if ((n == 0 || n == 1) || i == 0 && vf.f == 1) { |
| 411 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 412 |
} |
| 413 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 414 |
}; |
| 415 |
|
| 416 |
/** |
| 417 |
* Plural select rules for cy locale |
| 418 |
* |
| 419 |
* @param {number} n The count of items. |
| 420 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 421 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 422 |
* @private |
| 423 |
*/ |
| 424 |
goog.i18n.pluralRules.cySelect_ = function(n, opt_precision) { |
| 425 |
if (n == 0) { |
| 426 |
return goog.i18n.pluralRules.Keyword.ZERO; |
| 427 |
} |
| 428 |
if (n == 1) { |
| 429 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 430 |
} |
| 431 |
if (n == 2) { |
| 432 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 433 |
} |
| 434 |
if (n == 3) { |
| 435 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 436 |
} |
| 437 |
if (n == 6) { |
| 438 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 439 |
} |
| 440 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 441 |
}; |
| 442 |
|
| 443 |
/** |
| 444 |
* Plural select rules for da locale |
| 445 |
* |
| 446 |
* @param {number} n The count of items. |
| 447 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 448 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 449 |
* @private |
| 450 |
*/ |
| 451 |
goog.i18n.pluralRules.daSelect_ = function(n, opt_precision) { |
| 452 |
var i = n | 0; |
| 453 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 454 |
var wt = goog.i18n.pluralRules.get_wt_(vf.v, vf.f); |
| 455 |
if (n == 1 || wt.t != 0 && (i == 0 || i == 1)) { |
| 456 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 457 |
} |
| 458 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 459 |
}; |
| 460 |
|
| 461 |
/** |
| 462 |
* Plural select rules for ru locale |
| 463 |
* |
| 464 |
* @param {number} n The count of items. |
| 465 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 466 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 467 |
* @private |
| 468 |
*/ |
| 469 |
goog.i18n.pluralRules.ruSelect_ = function(n, opt_precision) { |
| 470 |
var i = n | 0; |
| 471 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 472 |
if (vf.v == 0 && i % 10 == 1 && i % 100 != 11) { |
| 473 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 474 |
} |
| 475 |
if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) { |
| 476 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 477 |
} |
| 478 |
if (vf.v == 0 && i % 10 == 0 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 11 && i % 100 <= 14) { |
| 479 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 480 |
} |
| 481 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 482 |
}; |
| 483 |
|
| 484 |
/** |
| 485 |
* Plural select rules for gv locale |
| 486 |
* |
| 487 |
* @param {number} n The count of items. |
| 488 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 489 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 490 |
* @private |
| 491 |
*/ |
| 492 |
goog.i18n.pluralRules.gvSelect_ = function(n, opt_precision) { |
| 493 |
var i = n | 0; |
| 494 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 495 |
if (vf.v == 0 && i % 10 == 1) { |
| 496 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 497 |
} |
| 498 |
if (vf.v == 0 && i % 10 == 2) { |
| 499 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 500 |
} |
| 501 |
if (vf.v == 0 && (i % 100 == 0 || i % 100 == 20 || i % 100 == 40 || i % 100 == 60 || i % 100 == 80)) { |
| 502 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 503 |
} |
| 504 |
if (vf.v != 0) { |
| 505 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 506 |
} |
| 507 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 508 |
}; |
| 509 |
|
| 510 |
/** |
| 511 |
* Plural select rules for be locale |
| 512 |
* |
| 513 |
* @param {number} n The count of items. |
| 514 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 515 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 516 |
* @private |
| 517 |
*/ |
| 518 |
goog.i18n.pluralRules.beSelect_ = function(n, opt_precision) { |
| 519 |
if (n % 10 == 1 && n % 100 != 11) { |
| 520 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 521 |
} |
| 522 |
if (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { |
| 523 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 524 |
} |
| 525 |
if (n % 10 == 0 || n % 10 >= 5 && n % 10 <= 9 || n % 100 >= 11 && n % 100 <= 14) { |
| 526 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 527 |
} |
| 528 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 529 |
}; |
| 530 |
|
| 531 |
/** |
| 532 |
* Plural select rules for mk locale |
| 533 |
* |
| 534 |
* @param {number} n The count of items. |
| 535 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 536 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 537 |
* @private |
| 538 |
*/ |
| 539 |
goog.i18n.pluralRules.mkSelect_ = function(n, opt_precision) { |
| 540 |
var i = n | 0; |
| 541 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 542 |
if (vf.v == 0 && i % 10 == 1 || vf.f % 10 == 1) { |
| 543 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 544 |
} |
| 545 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 546 |
}; |
| 547 |
|
| 548 |
/** |
| 549 |
* Plural select rules for ga locale |
| 550 |
* |
| 551 |
* @param {number} n The count of items. |
| 552 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 553 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 554 |
* @private |
| 555 |
*/ |
| 556 |
goog.i18n.pluralRules.gaSelect_ = function(n, opt_precision) { |
| 557 |
if (n == 1) { |
| 558 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 559 |
} |
| 560 |
if (n == 2) { |
| 561 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 562 |
} |
| 563 |
if (n >= 3 && n <= 6) { |
| 564 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 565 |
} |
| 566 |
if (n >= 7 && n <= 10) { |
| 567 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 568 |
} |
| 569 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 570 |
}; |
| 571 |
|
| 572 |
/** |
| 573 |
* Plural select rules for es locale |
| 574 |
* |
| 575 |
* @param {number} n The count of items. |
| 576 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 577 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 578 |
* @private |
| 579 |
*/ |
| 580 |
goog.i18n.pluralRules.esSelect_ = function(n, opt_precision) { |
| 581 |
if (n == 1) { |
| 582 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 583 |
} |
| 584 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 585 |
}; |
| 586 |
|
| 587 |
/** |
| 588 |
* Plural select rules for dsb locale |
| 589 |
* |
| 590 |
* @param {number} n The count of items. |
| 591 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 592 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 593 |
* @private |
| 594 |
*/ |
| 595 |
goog.i18n.pluralRules.dsbSelect_ = function(n, opt_precision) { |
| 596 |
var i = n | 0; |
| 597 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 598 |
if (vf.v == 0 && i % 100 == 1 || vf.f % 100 == 1) { |
| 599 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 600 |
} |
| 601 |
if (vf.v == 0 && i % 100 == 2 || vf.f % 100 == 2) { |
| 602 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 603 |
} |
| 604 |
if (vf.v == 0 && i % 100 >= 3 && i % 100 <= 4 || vf.f % 100 >= 3 && vf.f % 100 <= 4) { |
| 605 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 606 |
} |
| 607 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 608 |
}; |
| 609 |
|
| 610 |
/** |
| 611 |
* Plural select rules for lag locale |
| 612 |
* |
| 613 |
* @param {number} n The count of items. |
| 614 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 615 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 616 |
* @private |
| 617 |
*/ |
| 618 |
goog.i18n.pluralRules.lagSelect_ = function(n, opt_precision) { |
| 619 |
var i = n | 0; |
| 620 |
if (n == 0) { |
| 621 |
return goog.i18n.pluralRules.Keyword.ZERO; |
| 622 |
} |
| 623 |
if ((i == 0 || i == 1) && n != 0) { |
| 624 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 625 |
} |
| 626 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 627 |
}; |
| 628 |
|
| 629 |
/** |
| 630 |
* Plural select rules for is locale |
| 631 |
* |
| 632 |
* @param {number} n The count of items. |
| 633 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 634 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 635 |
* @private |
| 636 |
*/ |
| 637 |
goog.i18n.pluralRules.isSelect_ = function(n, opt_precision) { |
| 638 |
var i = n | 0; |
| 639 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 640 |
var wt = goog.i18n.pluralRules.get_wt_(vf.v, vf.f); |
| 641 |
if (wt.t == 0 && i % 10 == 1 && i % 100 != 11 || wt.t != 0) { |
| 642 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 643 |
} |
| 644 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 645 |
}; |
| 646 |
|
| 647 |
/** |
| 648 |
* Plural select rules for ksh locale |
| 649 |
* |
| 650 |
* @param {number} n The count of items. |
| 651 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 652 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 653 |
* @private |
| 654 |
*/ |
| 655 |
goog.i18n.pluralRules.kshSelect_ = function(n, opt_precision) { |
| 656 |
if (n == 0) { |
| 657 |
return goog.i18n.pluralRules.Keyword.ZERO; |
| 658 |
} |
| 659 |
if (n == 1) { |
| 660 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 661 |
} |
| 662 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 663 |
}; |
| 664 |
|
| 665 |
/** |
| 666 |
* Plural select rules for ar locale |
| 667 |
* |
| 668 |
* @param {number} n The count of items. |
| 669 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 670 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 671 |
* @private |
| 672 |
*/ |
| 673 |
goog.i18n.pluralRules.arSelect_ = function(n, opt_precision) { |
| 674 |
if (n == 0) { |
| 675 |
return goog.i18n.pluralRules.Keyword.ZERO; |
| 676 |
} |
| 677 |
if (n == 1) { |
| 678 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 679 |
} |
| 680 |
if (n == 2) { |
| 681 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 682 |
} |
| 683 |
if (n % 100 >= 3 && n % 100 <= 10) { |
| 684 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 685 |
} |
| 686 |
if (n % 100 >= 11 && n % 100 <= 99) { |
| 687 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 688 |
} |
| 689 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 690 |
}; |
| 691 |
|
| 692 |
/** |
| 693 |
* Plural select rules for gd locale |
| 694 |
* |
| 695 |
* @param {number} n The count of items. |
| 696 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 697 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 698 |
* @private |
| 699 |
*/ |
| 700 |
goog.i18n.pluralRules.gdSelect_ = function(n, opt_precision) { |
| 701 |
if (n == 1 || n == 11) { |
| 702 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 703 |
} |
| 704 |
if (n == 2 || n == 12) { |
| 705 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 706 |
} |
| 707 |
if (n >= 3 && n <= 10 || n >= 13 && n <= 19) { |
| 708 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 709 |
} |
| 710 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 711 |
}; |
| 712 |
|
| 713 |
/** |
| 714 |
* Plural select rules for sl locale |
| 715 |
* |
| 716 |
* @param {number} n The count of items. |
| 717 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 718 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 719 |
* @private |
| 720 |
*/ |
| 721 |
goog.i18n.pluralRules.slSelect_ = function(n, opt_precision) { |
| 722 |
var i = n | 0; |
| 723 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 724 |
if (vf.v == 0 && i % 100 == 1) { |
| 725 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 726 |
} |
| 727 |
if (vf.v == 0 && i % 100 == 2) { |
| 728 |
return goog.i18n.pluralRules.Keyword.TWO; |
| 729 |
} |
| 730 |
if (vf.v == 0 && i % 100 >= 3 && i % 100 <= 4 || vf.v != 0) { |
| 731 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 732 |
} |
| 733 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 734 |
}; |
| 735 |
|
| 736 |
/** |
| 737 |
* Plural select rules for lt locale |
| 738 |
* |
| 739 |
* @param {number} n The count of items. |
| 740 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 741 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 742 |
* @private |
| 743 |
*/ |
| 744 |
goog.i18n.pluralRules.ltSelect_ = function(n, opt_precision) { |
| 745 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 746 |
if (n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) { |
| 747 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 748 |
} |
| 749 |
if (n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) { |
| 750 |
return goog.i18n.pluralRules.Keyword.FEW; |
| 751 |
} |
| 752 |
if (vf.f != 0) { |
| 753 |
return goog.i18n.pluralRules.Keyword.MANY; |
| 754 |
} |
| 755 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 756 |
}; |
| 757 |
|
| 758 |
/** |
| 759 |
* Plural select rules for tzm locale |
| 760 |
* |
| 761 |
* @param {number} n The count of items. |
| 762 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 763 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 764 |
* @private |
| 765 |
*/ |
| 766 |
goog.i18n.pluralRules.tzmSelect_ = function(n, opt_precision) { |
| 767 |
if (n >= 0 && n <= 1 || n >= 11 && n <= 99) { |
| 768 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 769 |
} |
| 770 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 771 |
}; |
| 772 |
|
| 773 |
/** |
| 774 |
* Plural select rules for en locale |
| 775 |
* |
| 776 |
* @param {number} n The count of items. |
| 777 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 778 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 779 |
* @private |
| 780 |
*/ |
| 781 |
goog.i18n.pluralRules.enSelect_ = function(n, opt_precision) { |
| 782 |
var i = n | 0; |
| 783 |
var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision); |
| 784 |
if (i == 1 && vf.v == 0) { |
| 785 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 786 |
} |
| 787 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 788 |
}; |
| 789 |
|
| 790 |
/** |
| 791 |
* Plural select rules for ak locale |
| 792 |
* |
| 793 |
* @param {number} n The count of items. |
| 794 |
* @param {number=} opt_precision Precision for number formatting, if not default. |
| 795 |
* @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value. |
| 796 |
* @private |
| 797 |
*/ |
| 798 |
goog.i18n.pluralRules.akSelect_ = function(n, opt_precision) { |
| 799 |
if (n >= 0 && n <= 1) { |
| 800 |
return goog.i18n.pluralRules.Keyword.ONE; |
| 801 |
} |
| 802 |
return goog.i18n.pluralRules.Keyword.OTHER; |
| 803 |
}; |
| 804 |
|
| 805 |
/** |
| 806 |
* Selected Plural rules by locale. |
| 807 |
*/ |
| 808 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 809 |
if (goog.LOCALE == 'af') { |
| 810 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 811 |
} |
| 812 |
if (goog.LOCALE == 'am') { |
| 813 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 814 |
} |
| 815 |
if (goog.LOCALE == 'ar') { |
| 816 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.arSelect_; |
| 817 |
} |
| 818 |
if (goog.LOCALE == 'ar_DZ' || goog.LOCALE == 'ar-DZ') { |
| 819 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.arSelect_; |
| 820 |
} |
| 821 |
if (goog.LOCALE == 'az') { |
| 822 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 823 |
} |
| 824 |
if (goog.LOCALE == 'be') { |
| 825 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.beSelect_; |
| 826 |
} |
| 827 |
if (goog.LOCALE == 'bg') { |
| 828 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 829 |
} |
| 830 |
if (goog.LOCALE == 'bn') { |
| 831 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 832 |
} |
| 833 |
if (goog.LOCALE == 'br') { |
| 834 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.brSelect_; |
| 835 |
} |
| 836 |
if (goog.LOCALE == 'bs') { |
| 837 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_; |
| 838 |
} |
| 839 |
if (goog.LOCALE == 'ca') { |
| 840 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 841 |
} |
| 842 |
if (goog.LOCALE == 'chr') { |
| 843 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 844 |
} |
| 845 |
if (goog.LOCALE == 'cs') { |
| 846 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.csSelect_; |
| 847 |
} |
| 848 |
if (goog.LOCALE == 'cy') { |
| 849 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.cySelect_; |
| 850 |
} |
| 851 |
if (goog.LOCALE == 'da') { |
| 852 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.daSelect_; |
| 853 |
} |
| 854 |
if (goog.LOCALE == 'de') { |
| 855 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 856 |
} |
| 857 |
if (goog.LOCALE == 'de_AT' || goog.LOCALE == 'de-AT') { |
| 858 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 859 |
} |
| 860 |
if (goog.LOCALE == 'de_CH' || goog.LOCALE == 'de-CH') { |
| 861 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 862 |
} |
| 863 |
if (goog.LOCALE == 'el') { |
| 864 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 865 |
} |
| 866 |
if (goog.LOCALE == 'en') { |
| 867 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 868 |
} |
| 869 |
if (goog.LOCALE == 'en_AU' || goog.LOCALE == 'en-AU') { |
| 870 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 871 |
} |
| 872 |
if (goog.LOCALE == 'en_CA' || goog.LOCALE == 'en-CA') { |
| 873 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 874 |
} |
| 875 |
if (goog.LOCALE == 'en_GB' || goog.LOCALE == 'en-GB') { |
| 876 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 877 |
} |
| 878 |
if (goog.LOCALE == 'en_IE' || goog.LOCALE == 'en-IE') { |
| 879 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 880 |
} |
| 881 |
if (goog.LOCALE == 'en_IN' || goog.LOCALE == 'en-IN') { |
| 882 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 883 |
} |
| 884 |
if (goog.LOCALE == 'en_SG' || goog.LOCALE == 'en-SG') { |
| 885 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 886 |
} |
| 887 |
if (goog.LOCALE == 'en_US' || goog.LOCALE == 'en-US') { |
| 888 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 889 |
} |
| 890 |
if (goog.LOCALE == 'en_ZA' || goog.LOCALE == 'en-ZA') { |
| 891 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 892 |
} |
| 893 |
if (goog.LOCALE == 'es') { |
| 894 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 895 |
} |
| 896 |
if (goog.LOCALE == 'es_419' || goog.LOCALE == 'es-419') { |
| 897 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 898 |
} |
| 899 |
if (goog.LOCALE == 'es_ES' || goog.LOCALE == 'es-ES') { |
| 900 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 901 |
} |
| 902 |
if (goog.LOCALE == 'es_MX' || goog.LOCALE == 'es-MX') { |
| 903 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 904 |
} |
| 905 |
if (goog.LOCALE == 'es_US' || goog.LOCALE == 'es-US') { |
| 906 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 907 |
} |
| 908 |
if (goog.LOCALE == 'et') { |
| 909 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 910 |
} |
| 911 |
if (goog.LOCALE == 'eu') { |
| 912 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 913 |
} |
| 914 |
if (goog.LOCALE == 'fa') { |
| 915 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 916 |
} |
| 917 |
if (goog.LOCALE == 'fi') { |
| 918 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 919 |
} |
| 920 |
if (goog.LOCALE == 'fil') { |
| 921 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.filSelect_; |
| 922 |
} |
| 923 |
if (goog.LOCALE == 'fr') { |
| 924 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.frSelect_; |
| 925 |
} |
| 926 |
if (goog.LOCALE == 'fr_CA' || goog.LOCALE == 'fr-CA') { |
| 927 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.frSelect_; |
| 928 |
} |
| 929 |
if (goog.LOCALE == 'ga') { |
| 930 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.gaSelect_; |
| 931 |
} |
| 932 |
if (goog.LOCALE == 'gl') { |
| 933 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 934 |
} |
| 935 |
if (goog.LOCALE == 'gsw') { |
| 936 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 937 |
} |
| 938 |
if (goog.LOCALE == 'gu') { |
| 939 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 940 |
} |
| 941 |
if (goog.LOCALE == 'haw') { |
| 942 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 943 |
} |
| 944 |
if (goog.LOCALE == 'he') { |
| 945 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.heSelect_; |
| 946 |
} |
| 947 |
if (goog.LOCALE == 'hi') { |
| 948 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 949 |
} |
| 950 |
if (goog.LOCALE == 'hr') { |
| 951 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_; |
| 952 |
} |
| 953 |
if (goog.LOCALE == 'hu') { |
| 954 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 955 |
} |
| 956 |
if (goog.LOCALE == 'hy') { |
| 957 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.frSelect_; |
| 958 |
} |
| 959 |
if (goog.LOCALE == 'id') { |
| 960 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 961 |
} |
| 962 |
if (goog.LOCALE == 'in') { |
| 963 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 964 |
} |
| 965 |
if (goog.LOCALE == 'is') { |
| 966 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.isSelect_; |
| 967 |
} |
| 968 |
if (goog.LOCALE == 'it') { |
| 969 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 970 |
} |
| 971 |
if (goog.LOCALE == 'iw') { |
| 972 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.heSelect_; |
| 973 |
} |
| 974 |
if (goog.LOCALE == 'ja') { |
| 975 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 976 |
} |
| 977 |
if (goog.LOCALE == 'ka') { |
| 978 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 979 |
} |
| 980 |
if (goog.LOCALE == 'kk') { |
| 981 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 982 |
} |
| 983 |
if (goog.LOCALE == 'km') { |
| 984 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 985 |
} |
| 986 |
if (goog.LOCALE == 'kn') { |
| 987 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 988 |
} |
| 989 |
if (goog.LOCALE == 'ko') { |
| 990 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 991 |
} |
| 992 |
if (goog.LOCALE == 'ky') { |
| 993 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 994 |
} |
| 995 |
if (goog.LOCALE == 'ln') { |
| 996 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.akSelect_; |
| 997 |
} |
| 998 |
if (goog.LOCALE == 'lo') { |
| 999 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1000 |
} |
| 1001 |
if (goog.LOCALE == 'lt') { |
| 1002 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.ltSelect_; |
| 1003 |
} |
| 1004 |
if (goog.LOCALE == 'lv') { |
| 1005 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.lvSelect_; |
| 1006 |
} |
| 1007 |
if (goog.LOCALE == 'mk') { |
| 1008 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.mkSelect_; |
| 1009 |
} |
| 1010 |
if (goog.LOCALE == 'ml') { |
| 1011 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1012 |
} |
| 1013 |
if (goog.LOCALE == 'mn') { |
| 1014 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1015 |
} |
| 1016 |
if (goog.LOCALE == 'mo') { |
| 1017 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.roSelect_; |
| 1018 |
} |
| 1019 |
if (goog.LOCALE == 'mr') { |
| 1020 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 1021 |
} |
| 1022 |
if (goog.LOCALE == 'ms') { |
| 1023 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1024 |
} |
| 1025 |
if (goog.LOCALE == 'mt') { |
| 1026 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.mtSelect_; |
| 1027 |
} |
| 1028 |
if (goog.LOCALE == 'my') { |
| 1029 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1030 |
} |
| 1031 |
if (goog.LOCALE == 'nb') { |
| 1032 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1033 |
} |
| 1034 |
if (goog.LOCALE == 'ne') { |
| 1035 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1036 |
} |
| 1037 |
if (goog.LOCALE == 'nl') { |
| 1038 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 1039 |
} |
| 1040 |
if (goog.LOCALE == 'no') { |
| 1041 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1042 |
} |
| 1043 |
if (goog.LOCALE == 'no_NO' || goog.LOCALE == 'no-NO') { |
| 1044 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1045 |
} |
| 1046 |
if (goog.LOCALE == 'or') { |
| 1047 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1048 |
} |
| 1049 |
if (goog.LOCALE == 'pa') { |
| 1050 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.akSelect_; |
| 1051 |
} |
| 1052 |
if (goog.LOCALE == 'pl') { |
| 1053 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.plSelect_; |
| 1054 |
} |
| 1055 |
if (goog.LOCALE == 'pt') { |
| 1056 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.ptSelect_; |
| 1057 |
} |
| 1058 |
if (goog.LOCALE == 'pt_BR' || goog.LOCALE == 'pt-BR') { |
| 1059 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.ptSelect_; |
| 1060 |
} |
| 1061 |
if (goog.LOCALE == 'pt_PT' || goog.LOCALE == 'pt-PT') { |
| 1062 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 1063 |
} |
| 1064 |
if (goog.LOCALE == 'ro') { |
| 1065 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.roSelect_; |
| 1066 |
} |
| 1067 |
if (goog.LOCALE == 'ru') { |
| 1068 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.ruSelect_; |
| 1069 |
} |
| 1070 |
if (goog.LOCALE == 'sh') { |
| 1071 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_; |
| 1072 |
} |
| 1073 |
if (goog.LOCALE == 'si') { |
| 1074 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.siSelect_; |
| 1075 |
} |
| 1076 |
if (goog.LOCALE == 'sk') { |
| 1077 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.csSelect_; |
| 1078 |
} |
| 1079 |
if (goog.LOCALE == 'sl') { |
| 1080 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.slSelect_; |
| 1081 |
} |
| 1082 |
if (goog.LOCALE == 'sq') { |
| 1083 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1084 |
} |
| 1085 |
if (goog.LOCALE == 'sr') { |
| 1086 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_; |
| 1087 |
} |
| 1088 |
if (goog.LOCALE == 'sr_Latn' || goog.LOCALE == 'sr-Latn') { |
| 1089 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_; |
| 1090 |
} |
| 1091 |
if (goog.LOCALE == 'sv') { |
| 1092 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 1093 |
} |
| 1094 |
if (goog.LOCALE == 'sw') { |
| 1095 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 1096 |
} |
| 1097 |
if (goog.LOCALE == 'ta') { |
| 1098 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1099 |
} |
| 1100 |
if (goog.LOCALE == 'te') { |
| 1101 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1102 |
} |
| 1103 |
if (goog.LOCALE == 'th') { |
| 1104 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1105 |
} |
| 1106 |
if (goog.LOCALE == 'tl') { |
| 1107 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.filSelect_; |
| 1108 |
} |
| 1109 |
if (goog.LOCALE == 'tr') { |
| 1110 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1111 |
} |
| 1112 |
if (goog.LOCALE == 'uk') { |
| 1113 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.ruSelect_; |
| 1114 |
} |
| 1115 |
if (goog.LOCALE == 'ur') { |
| 1116 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_; |
| 1117 |
} |
| 1118 |
if (goog.LOCALE == 'uz') { |
| 1119 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_; |
| 1120 |
} |
| 1121 |
if (goog.LOCALE == 'vi') { |
| 1122 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1123 |
} |
| 1124 |
if (goog.LOCALE == 'zh') { |
| 1125 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1126 |
} |
| 1127 |
if (goog.LOCALE == 'zh_CN' || goog.LOCALE == 'zh-CN') { |
| 1128 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1129 |
} |
| 1130 |
if (goog.LOCALE == 'zh_HK' || goog.LOCALE == 'zh-HK') { |
| 1131 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1132 |
} |
| 1133 |
if (goog.LOCALE == 'zh_TW' || goog.LOCALE == 'zh-TW') { |
| 1134 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_; |
| 1135 |
} |
| 1136 |
if (goog.LOCALE == 'zu') { |
| 1137 |
goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_; |
| 1138 |
} |