ordinalrules.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  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. * @fileoverview Ordinal rules.
  16. *
  17. * This file is autogenerated by script:
  18. * http://go/generate_pluralrules.py
  19. * File generated from CLDR ver. 31.0.1
  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. // clang-format off
  27. goog.provide('goog.i18n.ordinalRules');
  28. /**
  29. * Ordinal pattern keyword
  30. * @enum {string}
  31. */
  32. goog.i18n.ordinalRules.Keyword = {
  33. ZERO: 'zero',
  34. ONE: 'one',
  35. TWO: 'two',
  36. FEW: 'few',
  37. MANY: 'many',
  38. OTHER: 'other'
  39. };
  40. /**
  41. * Default Ordinal select rule.
  42. * @param {number} n The count of items.
  43. * @param {number=} opt_precision optional, precision.
  44. * @return {goog.i18n.ordinalRules.Keyword} Default value.
  45. * @private
  46. */
  47. goog.i18n.ordinalRules.defaultSelect_ = function(n, opt_precision) {
  48. return goog.i18n.ordinalRules.Keyword.OTHER;
  49. };
  50. /**
  51. * Returns the fractional part of a number (3.1416 => 1416)
  52. * @param {number} n The count of items.
  53. * @return {number} The fractional part.
  54. * @private
  55. */
  56. goog.i18n.ordinalRules.decimals_ = function(n) {
  57. var str = n + '';
  58. var result = str.indexOf('.');
  59. return (result == -1) ? 0 : str.length - result - 1;
  60. };
  61. /**
  62. * Calculates v and f as per CLDR plural rules.
  63. * The short names for parameters / return match the CLDR syntax and UTS #35
  64. * (http://unicode.org/reports/tr35/tr35-numbers.html#Plural_rules_syntax)
  65. * @param {number} n The count of items.
  66. * @param {number=} opt_precision optional, precision.
  67. * @return {!{v:number, f:number}} The v and f.
  68. * @private
  69. */
  70. goog.i18n.ordinalRules.get_vf_ = function(n, opt_precision) {
  71. var DEFAULT_DIGITS = 3;
  72. if (undefined === opt_precision) {
  73. var v = Math.min(goog.i18n.ordinalRules.decimals_(n), DEFAULT_DIGITS);
  74. } else {
  75. var v = opt_precision;
  76. }
  77. var base = Math.pow(10, v);
  78. var f = ((n * base) | 0) % base;
  79. return {v: v, f: f};
  80. };
  81. /**
  82. * Calculates w and t as per CLDR plural rules.
  83. * The short names for parameters / return match the CLDR syntax and UTS #35
  84. * (http://unicode.org/reports/tr35/tr35-numbers.html#Plural_rules_syntax)
  85. * @param {number} v Calculated previously.
  86. * @param {number} f Calculated previously.
  87. * @return {!{w:number, t:number}} The w and t.
  88. * @private
  89. */
  90. goog.i18n.ordinalRules.get_wt_ = function(v, f) {
  91. if (f === 0) {
  92. return {w: 0, t: 0};
  93. }
  94. while ((f % 10) === 0) {
  95. f /= 10;
  96. v--;
  97. }
  98. return {w: v, t: f};
  99. };
  100. /**
  101. * Ordinal select rules for cy locale
  102. *
  103. * @param {number} n The count of items.
  104. * @param {number=} opt_precision Precision for number formatting, if not default.
  105. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  106. * @private
  107. */
  108. goog.i18n.ordinalRules.cySelect_ = function(n, opt_precision) {
  109. if (n == 0 || n == 7 || n == 8 || n == 9) {
  110. return goog.i18n.ordinalRules.Keyword.ZERO;
  111. }
  112. if (n == 1) {
  113. return goog.i18n.ordinalRules.Keyword.ONE;
  114. }
  115. if (n == 2) {
  116. return goog.i18n.ordinalRules.Keyword.TWO;
  117. }
  118. if (n == 3 || n == 4) {
  119. return goog.i18n.ordinalRules.Keyword.FEW;
  120. }
  121. if (n == 5 || n == 6) {
  122. return goog.i18n.ordinalRules.Keyword.MANY;
  123. }
  124. return goog.i18n.ordinalRules.Keyword.OTHER;
  125. };
  126. /**
  127. * Ordinal select rules for en locale
  128. *
  129. * @param {number} n The count of items.
  130. * @param {number=} opt_precision Precision for number formatting, if not default.
  131. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  132. * @private
  133. */
  134. goog.i18n.ordinalRules.enSelect_ = function(n, opt_precision) {
  135. if (n % 10 == 1 && n % 100 != 11) {
  136. return goog.i18n.ordinalRules.Keyword.ONE;
  137. }
  138. if (n % 10 == 2 && n % 100 != 12) {
  139. return goog.i18n.ordinalRules.Keyword.TWO;
  140. }
  141. if (n % 10 == 3 && n % 100 != 13) {
  142. return goog.i18n.ordinalRules.Keyword.FEW;
  143. }
  144. return goog.i18n.ordinalRules.Keyword.OTHER;
  145. };
  146. /**
  147. * Ordinal select rules for uk locale
  148. *
  149. * @param {number} n The count of items.
  150. * @param {number=} opt_precision Precision for number formatting, if not default.
  151. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  152. * @private
  153. */
  154. goog.i18n.ordinalRules.ukSelect_ = function(n, opt_precision) {
  155. if (n % 10 == 3 && n % 100 != 13) {
  156. return goog.i18n.ordinalRules.Keyword.FEW;
  157. }
  158. return goog.i18n.ordinalRules.Keyword.OTHER;
  159. };
  160. /**
  161. * Ordinal select rules for it locale
  162. *
  163. * @param {number} n The count of items.
  164. * @param {number=} opt_precision Precision for number formatting, if not default.
  165. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  166. * @private
  167. */
  168. goog.i18n.ordinalRules.itSelect_ = function(n, opt_precision) {
  169. if (n == 11 || n == 8 || n == 80 || n == 800) {
  170. return goog.i18n.ordinalRules.Keyword.MANY;
  171. }
  172. return goog.i18n.ordinalRules.Keyword.OTHER;
  173. };
  174. /**
  175. * Ordinal select rules for ne locale
  176. *
  177. * @param {number} n The count of items.
  178. * @param {number=} opt_precision Precision for number formatting, if not default.
  179. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  180. * @private
  181. */
  182. goog.i18n.ordinalRules.neSelect_ = function(n, opt_precision) {
  183. if (n >= 1 && n <= 4) {
  184. return goog.i18n.ordinalRules.Keyword.ONE;
  185. }
  186. return goog.i18n.ordinalRules.Keyword.OTHER;
  187. };
  188. /**
  189. * Ordinal select rules for be locale
  190. *
  191. * @param {number} n The count of items.
  192. * @param {number=} opt_precision Precision for number formatting, if not default.
  193. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  194. * @private
  195. */
  196. goog.i18n.ordinalRules.beSelect_ = function(n, opt_precision) {
  197. if ((n % 10 == 2 || n % 10 == 3) && n % 100 != 12 && n % 100 != 13) {
  198. return goog.i18n.ordinalRules.Keyword.FEW;
  199. }
  200. return goog.i18n.ordinalRules.Keyword.OTHER;
  201. };
  202. /**
  203. * Ordinal select rules for az locale
  204. *
  205. * @param {number} n The count of items.
  206. * @param {number=} opt_precision Precision for number formatting, if not default.
  207. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  208. * @private
  209. */
  210. goog.i18n.ordinalRules.azSelect_ = function(n, opt_precision) {
  211. var i = n | 0;
  212. if ((i % 10 == 1 || i % 10 == 2 || i % 10 == 5 || i % 10 == 7 || i % 10 == 8) || (i % 100 == 20 || i % 100 == 50 || i % 100 == 70 || i % 100 == 80)) {
  213. return goog.i18n.ordinalRules.Keyword.ONE;
  214. }
  215. if ((i % 10 == 3 || i % 10 == 4) || (i % 1000 == 100 || i % 1000 == 200 || i % 1000 == 300 || i % 1000 == 400 || i % 1000 == 500 || i % 1000 == 600 || i % 1000 == 700 || i % 1000 == 800 || i % 1000 == 900)) {
  216. return goog.i18n.ordinalRules.Keyword.FEW;
  217. }
  218. if (i == 0 || i % 10 == 6 || (i % 100 == 40 || i % 100 == 60 || i % 100 == 90)) {
  219. return goog.i18n.ordinalRules.Keyword.MANY;
  220. }
  221. return goog.i18n.ordinalRules.Keyword.OTHER;
  222. };
  223. /**
  224. * Ordinal select rules for ka locale
  225. *
  226. * @param {number} n The count of items.
  227. * @param {number=} opt_precision Precision for number formatting, if not default.
  228. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  229. * @private
  230. */
  231. goog.i18n.ordinalRules.kaSelect_ = function(n, opt_precision) {
  232. var i = n | 0;
  233. if (i == 1) {
  234. return goog.i18n.ordinalRules.Keyword.ONE;
  235. }
  236. if (i == 0 || (i % 100 >= 2 && i % 100 <= 20 || i % 100 == 40 || i % 100 == 60 || i % 100 == 80)) {
  237. return goog.i18n.ordinalRules.Keyword.MANY;
  238. }
  239. return goog.i18n.ordinalRules.Keyword.OTHER;
  240. };
  241. /**
  242. * Ordinal select rules for mr locale
  243. *
  244. * @param {number} n The count of items.
  245. * @param {number=} opt_precision Precision for number formatting, if not default.
  246. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  247. * @private
  248. */
  249. goog.i18n.ordinalRules.mrSelect_ = function(n, opt_precision) {
  250. if (n == 1) {
  251. return goog.i18n.ordinalRules.Keyword.ONE;
  252. }
  253. if (n == 2 || n == 3) {
  254. return goog.i18n.ordinalRules.Keyword.TWO;
  255. }
  256. if (n == 4) {
  257. return goog.i18n.ordinalRules.Keyword.FEW;
  258. }
  259. return goog.i18n.ordinalRules.Keyword.OTHER;
  260. };
  261. /**
  262. * Ordinal select rules for sv locale
  263. *
  264. * @param {number} n The count of items.
  265. * @param {number=} opt_precision Precision for number formatting, if not default.
  266. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  267. * @private
  268. */
  269. goog.i18n.ordinalRules.svSelect_ = function(n, opt_precision) {
  270. if ((n % 10 == 1 || n % 10 == 2) && n % 100 != 11 && n % 100 != 12) {
  271. return goog.i18n.ordinalRules.Keyword.ONE;
  272. }
  273. return goog.i18n.ordinalRules.Keyword.OTHER;
  274. };
  275. /**
  276. * Ordinal select rules for kk locale
  277. *
  278. * @param {number} n The count of items.
  279. * @param {number=} opt_precision Precision for number formatting, if not default.
  280. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  281. * @private
  282. */
  283. goog.i18n.ordinalRules.kkSelect_ = function(n, opt_precision) {
  284. if (n % 10 == 6 || n % 10 == 9 || n % 10 == 0 && n != 0) {
  285. return goog.i18n.ordinalRules.Keyword.MANY;
  286. }
  287. return goog.i18n.ordinalRules.Keyword.OTHER;
  288. };
  289. /**
  290. * Ordinal select rules for mk locale
  291. *
  292. * @param {number} n The count of items.
  293. * @param {number=} opt_precision Precision for number formatting, if not default.
  294. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  295. * @private
  296. */
  297. goog.i18n.ordinalRules.mkSelect_ = function(n, opt_precision) {
  298. var i = n | 0;
  299. if (i % 10 == 1 && i % 100 != 11) {
  300. return goog.i18n.ordinalRules.Keyword.ONE;
  301. }
  302. if (i % 10 == 2 && i % 100 != 12) {
  303. return goog.i18n.ordinalRules.Keyword.TWO;
  304. }
  305. if ((i % 10 == 7 || i % 10 == 8) && i % 100 != 17 && i % 100 != 18) {
  306. return goog.i18n.ordinalRules.Keyword.MANY;
  307. }
  308. return goog.i18n.ordinalRules.Keyword.OTHER;
  309. };
  310. /**
  311. * Ordinal select rules for hu locale
  312. *
  313. * @param {number} n The count of items.
  314. * @param {number=} opt_precision Precision for number formatting, if not default.
  315. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  316. * @private
  317. */
  318. goog.i18n.ordinalRules.huSelect_ = function(n, opt_precision) {
  319. if (n == 1 || n == 5) {
  320. return goog.i18n.ordinalRules.Keyword.ONE;
  321. }
  322. return goog.i18n.ordinalRules.Keyword.OTHER;
  323. };
  324. /**
  325. * Ordinal select rules for fr locale
  326. *
  327. * @param {number} n The count of items.
  328. * @param {number=} opt_precision Precision for number formatting, if not default.
  329. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  330. * @private
  331. */
  332. goog.i18n.ordinalRules.frSelect_ = function(n, opt_precision) {
  333. if (n == 1) {
  334. return goog.i18n.ordinalRules.Keyword.ONE;
  335. }
  336. return goog.i18n.ordinalRules.Keyword.OTHER;
  337. };
  338. /**
  339. * Ordinal select rules for sq locale
  340. *
  341. * @param {number} n The count of items.
  342. * @param {number=} opt_precision Precision for number formatting, if not default.
  343. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  344. * @private
  345. */
  346. goog.i18n.ordinalRules.sqSelect_ = function(n, opt_precision) {
  347. if (n == 1) {
  348. return goog.i18n.ordinalRules.Keyword.ONE;
  349. }
  350. if (n % 10 == 4 && n % 100 != 14) {
  351. return goog.i18n.ordinalRules.Keyword.MANY;
  352. }
  353. return goog.i18n.ordinalRules.Keyword.OTHER;
  354. };
  355. /**
  356. * Ordinal select rules for ca 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.ordinalRules.Keyword} Locale-specific ordinal value.
  361. * @private
  362. */
  363. goog.i18n.ordinalRules.caSelect_ = function(n, opt_precision) {
  364. if (n == 1 || n == 3) {
  365. return goog.i18n.ordinalRules.Keyword.ONE;
  366. }
  367. if (n == 2) {
  368. return goog.i18n.ordinalRules.Keyword.TWO;
  369. }
  370. if (n == 4) {
  371. return goog.i18n.ordinalRules.Keyword.FEW;
  372. }
  373. return goog.i18n.ordinalRules.Keyword.OTHER;
  374. };
  375. /**
  376. * Ordinal select rules for gu locale
  377. *
  378. * @param {number} n The count of items.
  379. * @param {number=} opt_precision Precision for number formatting, if not default.
  380. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  381. * @private
  382. */
  383. goog.i18n.ordinalRules.guSelect_ = function(n, opt_precision) {
  384. if (n == 1) {
  385. return goog.i18n.ordinalRules.Keyword.ONE;
  386. }
  387. if (n == 2 || n == 3) {
  388. return goog.i18n.ordinalRules.Keyword.TWO;
  389. }
  390. if (n == 4) {
  391. return goog.i18n.ordinalRules.Keyword.FEW;
  392. }
  393. if (n == 6) {
  394. return goog.i18n.ordinalRules.Keyword.MANY;
  395. }
  396. return goog.i18n.ordinalRules.Keyword.OTHER;
  397. };
  398. /**
  399. * Ordinal select rules for as locale
  400. *
  401. * @param {number} n The count of items.
  402. * @param {number=} opt_precision Precision for number formatting, if not default.
  403. * @return {goog.i18n.ordinalRules.Keyword} Locale-specific ordinal value.
  404. * @private
  405. */
  406. goog.i18n.ordinalRules.asSelect_ = function(n, opt_precision) {
  407. if (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) {
  408. return goog.i18n.ordinalRules.Keyword.ONE;
  409. }
  410. if (n == 2 || n == 3) {
  411. return goog.i18n.ordinalRules.Keyword.TWO;
  412. }
  413. if (n == 4) {
  414. return goog.i18n.ordinalRules.Keyword.FEW;
  415. }
  416. if (n == 6) {
  417. return goog.i18n.ordinalRules.Keyword.MANY;
  418. }
  419. return goog.i18n.ordinalRules.Keyword.OTHER;
  420. };
  421. /**
  422. * Selected Ordinal rules by locale.
  423. */
  424. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  425. if (goog.LOCALE == 'af') {
  426. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  427. }
  428. if (goog.LOCALE == 'am') {
  429. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  430. }
  431. if (goog.LOCALE == 'ar') {
  432. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  433. }
  434. if (goog.LOCALE == 'ar_DZ' || goog.LOCALE == 'ar-DZ') {
  435. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  436. }
  437. if (goog.LOCALE == 'az') {
  438. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.azSelect_;
  439. }
  440. if (goog.LOCALE == 'be') {
  441. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.beSelect_;
  442. }
  443. if (goog.LOCALE == 'bg') {
  444. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  445. }
  446. if (goog.LOCALE == 'bn') {
  447. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.asSelect_;
  448. }
  449. if (goog.LOCALE == 'br') {
  450. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  451. }
  452. if (goog.LOCALE == 'bs') {
  453. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  454. }
  455. if (goog.LOCALE == 'ca') {
  456. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.caSelect_;
  457. }
  458. if (goog.LOCALE == 'chr') {
  459. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  460. }
  461. if (goog.LOCALE == 'cs') {
  462. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  463. }
  464. if (goog.LOCALE == 'cy') {
  465. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.cySelect_;
  466. }
  467. if (goog.LOCALE == 'da') {
  468. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  469. }
  470. if (goog.LOCALE == 'de') {
  471. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  472. }
  473. if (goog.LOCALE == 'de_AT' || goog.LOCALE == 'de-AT') {
  474. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  475. }
  476. if (goog.LOCALE == 'de_CH' || goog.LOCALE == 'de-CH') {
  477. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  478. }
  479. if (goog.LOCALE == 'el') {
  480. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  481. }
  482. if (goog.LOCALE == 'en') {
  483. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  484. }
  485. if (goog.LOCALE == 'en_AU' || goog.LOCALE == 'en-AU') {
  486. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  487. }
  488. if (goog.LOCALE == 'en_CA' || goog.LOCALE == 'en-CA') {
  489. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  490. }
  491. if (goog.LOCALE == 'en_GB' || goog.LOCALE == 'en-GB') {
  492. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  493. }
  494. if (goog.LOCALE == 'en_IE' || goog.LOCALE == 'en-IE') {
  495. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  496. }
  497. if (goog.LOCALE == 'en_IN' || goog.LOCALE == 'en-IN') {
  498. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  499. }
  500. if (goog.LOCALE == 'en_SG' || goog.LOCALE == 'en-SG') {
  501. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  502. }
  503. if (goog.LOCALE == 'en_US' || goog.LOCALE == 'en-US') {
  504. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  505. }
  506. if (goog.LOCALE == 'en_ZA' || goog.LOCALE == 'en-ZA') {
  507. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.enSelect_;
  508. }
  509. if (goog.LOCALE == 'es') {
  510. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  511. }
  512. if (goog.LOCALE == 'es_419' || goog.LOCALE == 'es-419') {
  513. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  514. }
  515. if (goog.LOCALE == 'es_ES' || goog.LOCALE == 'es-ES') {
  516. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  517. }
  518. if (goog.LOCALE == 'es_MX' || goog.LOCALE == 'es-MX') {
  519. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  520. }
  521. if (goog.LOCALE == 'es_US' || goog.LOCALE == 'es-US') {
  522. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  523. }
  524. if (goog.LOCALE == 'et') {
  525. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  526. }
  527. if (goog.LOCALE == 'eu') {
  528. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  529. }
  530. if (goog.LOCALE == 'fa') {
  531. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  532. }
  533. if (goog.LOCALE == 'fi') {
  534. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  535. }
  536. if (goog.LOCALE == 'fil') {
  537. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  538. }
  539. if (goog.LOCALE == 'fr') {
  540. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  541. }
  542. if (goog.LOCALE == 'fr_CA' || goog.LOCALE == 'fr-CA') {
  543. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  544. }
  545. if (goog.LOCALE == 'ga') {
  546. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  547. }
  548. if (goog.LOCALE == 'gl') {
  549. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  550. }
  551. if (goog.LOCALE == 'gsw') {
  552. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  553. }
  554. if (goog.LOCALE == 'gu') {
  555. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.guSelect_;
  556. }
  557. if (goog.LOCALE == 'haw') {
  558. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  559. }
  560. if (goog.LOCALE == 'he') {
  561. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  562. }
  563. if (goog.LOCALE == 'hi') {
  564. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.guSelect_;
  565. }
  566. if (goog.LOCALE == 'hr') {
  567. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  568. }
  569. if (goog.LOCALE == 'hu') {
  570. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.huSelect_;
  571. }
  572. if (goog.LOCALE == 'hy') {
  573. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  574. }
  575. if (goog.LOCALE == 'id') {
  576. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  577. }
  578. if (goog.LOCALE == 'in') {
  579. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  580. }
  581. if (goog.LOCALE == 'is') {
  582. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  583. }
  584. if (goog.LOCALE == 'it') {
  585. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.itSelect_;
  586. }
  587. if (goog.LOCALE == 'iw') {
  588. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  589. }
  590. if (goog.LOCALE == 'ja') {
  591. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  592. }
  593. if (goog.LOCALE == 'ka') {
  594. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.kaSelect_;
  595. }
  596. if (goog.LOCALE == 'kk') {
  597. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.kkSelect_;
  598. }
  599. if (goog.LOCALE == 'km') {
  600. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  601. }
  602. if (goog.LOCALE == 'kn') {
  603. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  604. }
  605. if (goog.LOCALE == 'ko') {
  606. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  607. }
  608. if (goog.LOCALE == 'ky') {
  609. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  610. }
  611. if (goog.LOCALE == 'ln') {
  612. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  613. }
  614. if (goog.LOCALE == 'lo') {
  615. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  616. }
  617. if (goog.LOCALE == 'lt') {
  618. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  619. }
  620. if (goog.LOCALE == 'lv') {
  621. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  622. }
  623. if (goog.LOCALE == 'mk') {
  624. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.mkSelect_;
  625. }
  626. if (goog.LOCALE == 'ml') {
  627. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  628. }
  629. if (goog.LOCALE == 'mn') {
  630. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  631. }
  632. if (goog.LOCALE == 'mo') {
  633. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  634. }
  635. if (goog.LOCALE == 'mr') {
  636. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.mrSelect_;
  637. }
  638. if (goog.LOCALE == 'ms') {
  639. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  640. }
  641. if (goog.LOCALE == 'mt') {
  642. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  643. }
  644. if (goog.LOCALE == 'my') {
  645. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  646. }
  647. if (goog.LOCALE == 'nb') {
  648. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  649. }
  650. if (goog.LOCALE == 'ne') {
  651. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.neSelect_;
  652. }
  653. if (goog.LOCALE == 'nl') {
  654. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  655. }
  656. if (goog.LOCALE == 'no') {
  657. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  658. }
  659. if (goog.LOCALE == 'no_NO' || goog.LOCALE == 'no-NO') {
  660. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  661. }
  662. if (goog.LOCALE == 'or') {
  663. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  664. }
  665. if (goog.LOCALE == 'pa') {
  666. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  667. }
  668. if (goog.LOCALE == 'pl') {
  669. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  670. }
  671. if (goog.LOCALE == 'pt') {
  672. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  673. }
  674. if (goog.LOCALE == 'pt_BR' || goog.LOCALE == 'pt-BR') {
  675. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  676. }
  677. if (goog.LOCALE == 'pt_PT' || goog.LOCALE == 'pt-PT') {
  678. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  679. }
  680. if (goog.LOCALE == 'ro') {
  681. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  682. }
  683. if (goog.LOCALE == 'ru') {
  684. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  685. }
  686. if (goog.LOCALE == 'sh') {
  687. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  688. }
  689. if (goog.LOCALE == 'si') {
  690. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  691. }
  692. if (goog.LOCALE == 'sk') {
  693. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  694. }
  695. if (goog.LOCALE == 'sl') {
  696. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  697. }
  698. if (goog.LOCALE == 'sq') {
  699. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.sqSelect_;
  700. }
  701. if (goog.LOCALE == 'sr') {
  702. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  703. }
  704. if (goog.LOCALE == 'sr_Latn' || goog.LOCALE == 'sr-Latn') {
  705. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  706. }
  707. if (goog.LOCALE == 'sv') {
  708. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.svSelect_;
  709. }
  710. if (goog.LOCALE == 'sw') {
  711. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  712. }
  713. if (goog.LOCALE == 'ta') {
  714. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  715. }
  716. if (goog.LOCALE == 'te') {
  717. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  718. }
  719. if (goog.LOCALE == 'th') {
  720. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  721. }
  722. if (goog.LOCALE == 'tl') {
  723. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  724. }
  725. if (goog.LOCALE == 'tr') {
  726. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  727. }
  728. if (goog.LOCALE == 'uk') {
  729. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.ukSelect_;
  730. }
  731. if (goog.LOCALE == 'ur') {
  732. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  733. }
  734. if (goog.LOCALE == 'uz') {
  735. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  736. }
  737. if (goog.LOCALE == 'vi') {
  738. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.frSelect_;
  739. }
  740. if (goog.LOCALE == 'zh') {
  741. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  742. }
  743. if (goog.LOCALE == 'zh_CN' || goog.LOCALE == 'zh-CN') {
  744. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  745. }
  746. if (goog.LOCALE == 'zh_HK' || goog.LOCALE == 'zh-HK') {
  747. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  748. }
  749. if (goog.LOCALE == 'zh_TW' || goog.LOCALE == 'zh-TW') {
  750. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  751. }
  752. if (goog.LOCALE == 'zu') {
  753. goog.i18n.ordinalRules.select = goog.i18n.ordinalRules.defaultSelect_;
  754. }