twitter_cldr 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (361) hide show
  1. checksums.yaml +13 -5
  2. data/Gemfile +3 -7
  3. data/History.txt +6 -0
  4. data/README.md +1 -1
  5. data/Rakefile +26 -16
  6. data/lib/twitter_cldr/data_readers/number_data_reader.rb +9 -2
  7. data/lib/twitter_cldr/data_readers/timespan_data_reader.rb +11 -12
  8. data/lib/twitter_cldr/formatters/numbers/abbreviated/abbreviated_number_formatter.rb +10 -8
  9. data/lib/twitter_cldr/formatters/numbers/number_formatter.rb +2 -2
  10. data/lib/twitter_cldr/localized/localized_datetime.rb +1 -1
  11. data/lib/twitter_cldr/localized/localized_number.rb +13 -3
  12. data/lib/twitter_cldr/resources/collation_tries_dumper.rb +1 -2
  13. data/lib/twitter_cldr/resources/language_codes_importer.rb +1 -1
  14. data/lib/twitter_cldr/resources/locales_resources_importer.rb +13 -2
  15. data/lib/twitter_cldr/resources/tailoring_importer.rb +3 -2
  16. data/lib/twitter_cldr/shared/calendar.rb +4 -4
  17. data/lib/twitter_cldr/shared/postal_codes.rb +5 -7
  18. data/lib/twitter_cldr/version.rb +1 -1
  19. data/resources/collation/tailoring/de-CH.yml +4 -0
  20. data/resources/collation/tailoring/en-AU.yml +4 -0
  21. data/resources/collation/tailoring/en-CA.yml +4 -0
  22. data/resources/collation/tailoring/en-IE.yml +4 -0
  23. data/resources/collation/tailoring/en-SG.yml +4 -0
  24. data/resources/collation/tailoring/en-ZA.yml +4 -0
  25. data/resources/collation/tailoring/es-CO.yml +4 -0
  26. data/resources/collation/tailoring/es-MX.yml +4 -0
  27. data/resources/collation/tailoring/es-US.yml +4 -0
  28. data/resources/collation/tailoring/fr-BE.yml +4 -0
  29. data/resources/collation/tailoring/fr-CA.yml +4 -0
  30. data/resources/collation/tailoring/fr-CH.yml +4 -0
  31. data/resources/collation/tailoring/it-CH.yml +4 -0
  32. data/resources/collation/tries/af.dump +0 -0
  33. data/resources/collation/tries/ar.dump +0 -0
  34. data/resources/collation/tries/be.dump +0 -0
  35. data/resources/collation/tries/bg.dump +0 -0
  36. data/resources/collation/tries/bn.dump +0 -0
  37. data/resources/collation/tries/ca.dump +0 -0
  38. data/resources/collation/tries/cs.dump +0 -0
  39. data/resources/collation/tries/cy.dump +0 -0
  40. data/resources/collation/tries/da.dump +0 -0
  41. data/resources/collation/tries/de-CH.dump +0 -0
  42. data/resources/collation/tries/de.dump +0 -0
  43. data/resources/collation/tries/default.dump +0 -0
  44. data/resources/collation/tries/el.dump +0 -0
  45. data/resources/collation/tries/en-AU.dump +0 -0
  46. data/resources/collation/tries/en-CA.dump +0 -0
  47. data/resources/collation/tries/en-GB.dump +0 -0
  48. data/resources/collation/tries/en-IE.dump +0 -0
  49. data/resources/collation/tries/en-SG.dump +0 -0
  50. data/resources/collation/tries/en-ZA.dump +0 -0
  51. data/resources/collation/tries/en.dump +0 -0
  52. data/resources/collation/tries/es-CO.dump +0 -0
  53. data/resources/collation/tries/es-MX.dump +0 -0
  54. data/resources/collation/tries/es-US.dump +0 -0
  55. data/resources/collation/tries/es.dump +0 -0
  56. data/resources/collation/tries/eu.dump +0 -0
  57. data/resources/collation/tries/fa.dump +0 -0
  58. data/resources/collation/tries/fi.dump +0 -0
  59. data/resources/collation/tries/fil.dump +0 -0
  60. data/resources/collation/tries/fr-BE.dump +0 -0
  61. data/resources/collation/tries/fr-CA.dump +0 -0
  62. data/resources/collation/tries/fr-CH.dump +0 -0
  63. data/resources/collation/tries/fr.dump +0 -0
  64. data/resources/collation/tries/ga.dump +0 -0
  65. data/resources/collation/tries/gl.dump +0 -0
  66. data/resources/collation/tries/he.dump +0 -0
  67. data/resources/collation/tries/hi.dump +0 -0
  68. data/resources/collation/tries/hr.dump +0 -0
  69. data/resources/collation/tries/hu.dump +0 -0
  70. data/resources/collation/tries/id.dump +0 -0
  71. data/resources/collation/tries/is.dump +0 -0
  72. data/resources/collation/tries/it-CH.dump +0 -0
  73. data/resources/collation/tries/it.dump +0 -0
  74. data/resources/collation/tries/ja.dump +0 -0
  75. data/resources/collation/tries/ko.dump +0 -0
  76. data/resources/collation/tries/lv.dump +0 -0
  77. data/resources/collation/tries/ms.dump +0 -0
  78. data/resources/collation/tries/nb.dump +0 -0
  79. data/resources/collation/tries/nl.dump +0 -0
  80. data/resources/collation/tries/pl.dump +0 -0
  81. data/resources/collation/tries/pt.dump +0 -0
  82. data/resources/collation/tries/ro.dump +0 -0
  83. data/resources/collation/tries/ru.dump +0 -0
  84. data/resources/collation/tries/sk.dump +0 -0
  85. data/resources/collation/tries/sq.dump +0 -0
  86. data/resources/collation/tries/sr.dump +0 -0
  87. data/resources/collation/tries/sv.dump +0 -0
  88. data/resources/collation/tries/ta.dump +0 -0
  89. data/resources/collation/tries/th.dump +0 -0
  90. data/resources/collation/tries/tr.dump +0 -0
  91. data/resources/collation/tries/uk.dump +0 -0
  92. data/resources/collation/tries/ur.dump +0 -0
  93. data/resources/collation/tries/vi.dump +0 -0
  94. data/resources/collation/tries/zh-Hant.dump +0 -0
  95. data/resources/collation/tries/zh.dump +0 -0
  96. data/resources/locales/af/plurals.yml +2 -1
  97. data/resources/locales/af/units.yml +108 -108
  98. data/resources/locales/ar/plurals.yml +5 -4
  99. data/resources/locales/ar/units.yml +220 -220
  100. data/resources/locales/be/plurals.yml +6 -6
  101. data/resources/locales/be/units.yml +122 -122
  102. data/resources/locales/bg/plurals.yml +2 -1
  103. data/resources/locales/bg/units.yml +108 -108
  104. data/resources/locales/bn/plurals.yml +2 -1
  105. data/resources/locales/bn/units.yml +108 -108
  106. data/resources/locales/ca/plurals.yml +3 -2
  107. data/resources/locales/ca/units.yml +108 -108
  108. data/resources/locales/cs/plurals.yml +5 -5
  109. data/resources/locales/cs/units.yml +136 -136
  110. data/resources/locales/cy/plurals.yml +3 -3
  111. data/resources/locales/cy/units.yml +108 -220
  112. data/resources/locales/da/plurals.yml +3 -2
  113. data/resources/locales/da/units.yml +108 -108
  114. data/resources/locales/de-CH/calendars.yml +303 -0
  115. data/resources/locales/de-CH/currencies.yml +955 -0
  116. data/resources/locales/de-CH/languages.yml +583 -0
  117. data/resources/locales/de-CH/layout.yml +5 -0
  118. data/resources/locales/de-CH/lists.yml +23 -0
  119. data/resources/locales/de-CH/numbers.yml +62 -0
  120. data/resources/locales/de-CH/plurals.yml +5 -0
  121. data/resources/locales/de-CH/rbnf.yml +4 -0
  122. data/resources/locales/de-CH/territories.yml +264 -0
  123. data/resources/locales/de-CH/units.yml +108 -0
  124. data/resources/locales/de/plurals.yml +3 -2
  125. data/resources/locales/de/units.yml +108 -108
  126. data/resources/locales/el/plurals.yml +2 -1
  127. data/resources/locales/el/units.yml +108 -108
  128. data/resources/locales/en-AU/calendars.yml +208 -0
  129. data/resources/locales/en-AU/currencies.yml +953 -0
  130. data/resources/locales/en-AU/languages.yml +583 -0
  131. data/resources/locales/en-AU/layout.yml +5 -0
  132. data/resources/locales/en-AU/lists.yml +23 -0
  133. data/resources/locales/en-AU/numbers.yml +62 -0
  134. data/resources/locales/en-AU/plurals.yml +5 -0
  135. data/resources/locales/en-AU/rbnf.yml +4 -0
  136. data/resources/locales/en-AU/territories.yml +264 -0
  137. data/resources/locales/en-AU/units.yml +108 -0
  138. data/resources/locales/en-CA/calendars.yml +208 -0
  139. data/resources/locales/en-CA/currencies.yml +953 -0
  140. data/resources/locales/en-CA/languages.yml +583 -0
  141. data/resources/locales/en-CA/layout.yml +5 -0
  142. data/resources/locales/en-CA/lists.yml +23 -0
  143. data/resources/locales/en-CA/numbers.yml +62 -0
  144. data/resources/locales/en-CA/plurals.yml +5 -0
  145. data/resources/locales/en-CA/rbnf.yml +4 -0
  146. data/resources/locales/en-CA/territories.yml +264 -0
  147. data/resources/locales/en-CA/units.yml +108 -0
  148. data/resources/locales/en-GB/plurals.yml +3 -2
  149. data/resources/locales/en-GB/units.yml +108 -108
  150. data/resources/locales/en-IE/calendars.yml +208 -0
  151. data/resources/locales/en-IE/currencies.yml +953 -0
  152. data/resources/locales/en-IE/languages.yml +583 -0
  153. data/resources/locales/en-IE/layout.yml +5 -0
  154. data/resources/locales/en-IE/lists.yml +23 -0
  155. data/resources/locales/en-IE/numbers.yml +62 -0
  156. data/resources/locales/en-IE/plurals.yml +5 -0
  157. data/resources/locales/en-IE/rbnf.yml +4 -0
  158. data/resources/locales/en-IE/territories.yml +264 -0
  159. data/resources/locales/en-IE/units.yml +108 -0
  160. data/resources/locales/en-SG/calendars.yml +208 -0
  161. data/resources/locales/en-SG/currencies.yml +953 -0
  162. data/resources/locales/en-SG/languages.yml +583 -0
  163. data/resources/locales/en-SG/layout.yml +5 -0
  164. data/resources/locales/en-SG/lists.yml +23 -0
  165. data/resources/locales/en-SG/numbers.yml +62 -0
  166. data/resources/locales/en-SG/plurals.yml +5 -0
  167. data/resources/locales/en-SG/rbnf.yml +4 -0
  168. data/resources/locales/en-SG/territories.yml +264 -0
  169. data/resources/locales/en-SG/units.yml +108 -0
  170. data/resources/locales/en-ZA/calendars.yml +208 -0
  171. data/resources/locales/en-ZA/currencies.yml +954 -0
  172. data/resources/locales/en-ZA/languages.yml +583 -0
  173. data/resources/locales/en-ZA/layout.yml +5 -0
  174. data/resources/locales/en-ZA/lists.yml +23 -0
  175. data/resources/locales/en-ZA/numbers.yml +62 -0
  176. data/resources/locales/en-ZA/plurals.yml +5 -0
  177. data/resources/locales/en-ZA/rbnf.yml +4 -0
  178. data/resources/locales/en-ZA/territories.yml +264 -0
  179. data/resources/locales/en-ZA/units.yml +108 -0
  180. data/resources/locales/en/plurals.yml +3 -2
  181. data/resources/locales/en/units.yml +108 -108
  182. data/resources/locales/es-CO/calendars.yml +290 -0
  183. data/resources/locales/es-CO/currencies.yml +953 -0
  184. data/resources/locales/es-CO/languages.yml +583 -0
  185. data/resources/locales/es-CO/layout.yml +5 -0
  186. data/resources/locales/es-CO/lists.yml +23 -0
  187. data/resources/locales/es-CO/numbers.yml +62 -0
  188. data/resources/locales/es-CO/plurals.yml +4 -0
  189. data/resources/locales/es-CO/rbnf.yml +4 -0
  190. data/resources/locales/es-CO/territories.yml +264 -0
  191. data/resources/locales/es-CO/units.yml +108 -0
  192. data/resources/locales/es-MX/calendars.yml +290 -0
  193. data/resources/locales/es-MX/currencies.yml +1075 -0
  194. data/resources/locales/es-MX/languages.yml +583 -0
  195. data/resources/locales/es-MX/layout.yml +5 -0
  196. data/resources/locales/es-MX/lists.yml +23 -0
  197. data/resources/locales/es-MX/numbers.yml +62 -0
  198. data/resources/locales/es-MX/plurals.yml +4 -0
  199. data/resources/locales/es-MX/rbnf.yml +4 -0
  200. data/resources/locales/es-MX/territories.yml +264 -0
  201. data/resources/locales/es-MX/units.yml +108 -0
  202. data/resources/locales/es-US/calendars.yml +296 -0
  203. data/resources/locales/es-US/currencies.yml +953 -0
  204. data/resources/locales/es-US/languages.yml +583 -0
  205. data/resources/locales/es-US/layout.yml +5 -0
  206. data/resources/locales/es-US/lists.yml +23 -0
  207. data/resources/locales/es-US/numbers.yml +62 -0
  208. data/resources/locales/es-US/plurals.yml +4 -0
  209. data/resources/locales/es-US/rbnf.yml +4 -0
  210. data/resources/locales/es-US/territories.yml +264 -0
  211. data/resources/locales/es-US/units.yml +108 -0
  212. data/resources/locales/es/plurals.yml +2 -1
  213. data/resources/locales/es/units.yml +108 -108
  214. data/resources/locales/eu/plurals.yml +2 -1
  215. data/resources/locales/eu/units.yml +108 -108
  216. data/resources/locales/fa/plurals.yml +2 -1
  217. data/resources/locales/fa/units.yml +108 -108
  218. data/resources/locales/fi/plurals.yml +3 -2
  219. data/resources/locales/fi/units.yml +108 -108
  220. data/resources/locales/fil/plurals.yml +3 -2
  221. data/resources/locales/fil/units.yml +108 -108
  222. data/resources/locales/fr-BE/calendars.yml +305 -0
  223. data/resources/locales/fr-BE/currencies.yml +968 -0
  224. data/resources/locales/fr-BE/languages.yml +583 -0
  225. data/resources/locales/fr-BE/layout.yml +5 -0
  226. data/resources/locales/fr-BE/lists.yml +23 -0
  227. data/resources/locales/fr-BE/numbers.yml +62 -0
  228. data/resources/locales/fr-BE/plurals.yml +4 -0
  229. data/resources/locales/fr-BE/rbnf.yml +596 -0
  230. data/resources/locales/fr-BE/territories.yml +264 -0
  231. data/resources/locales/fr-BE/units.yml +108 -0
  232. data/resources/locales/fr-CA/calendars.yml +308 -0
  233. data/resources/locales/fr-CA/currencies.yml +968 -0
  234. data/resources/locales/fr-CA/languages.yml +583 -0
  235. data/resources/locales/fr-CA/layout.yml +5 -0
  236. data/resources/locales/fr-CA/lists.yml +23 -0
  237. data/resources/locales/fr-CA/numbers.yml +62 -0
  238. data/resources/locales/fr-CA/plurals.yml +4 -0
  239. data/resources/locales/fr-CA/rbnf.yml +4 -0
  240. data/resources/locales/fr-CA/territories.yml +264 -0
  241. data/resources/locales/fr-CA/units.yml +108 -0
  242. data/resources/locales/fr-CH/calendars.yml +307 -0
  243. data/resources/locales/fr-CH/currencies.yml +969 -0
  244. data/resources/locales/fr-CH/languages.yml +583 -0
  245. data/resources/locales/fr-CH/layout.yml +5 -0
  246. data/resources/locales/fr-CH/lists.yml +23 -0
  247. data/resources/locales/fr-CH/numbers.yml +62 -0
  248. data/resources/locales/fr-CH/plurals.yml +4 -0
  249. data/resources/locales/fr-CH/rbnf.yml +599 -0
  250. data/resources/locales/fr-CH/territories.yml +264 -0
  251. data/resources/locales/fr-CH/units.yml +108 -0
  252. data/resources/locales/fr/plurals.yml +2 -1
  253. data/resources/locales/fr/units.yml +108 -108
  254. data/resources/locales/ga/plurals.yml +4 -3
  255. data/resources/locales/ga/units.yml +108 -108
  256. data/resources/locales/gl/plurals.yml +3 -2
  257. data/resources/locales/gl/units.yml +108 -108
  258. data/resources/locales/he/plurals.yml +5 -5
  259. data/resources/locales/he/units.yml +164 -164
  260. data/resources/locales/hi/plurals.yml +2 -1
  261. data/resources/locales/hi/units.yml +108 -108
  262. data/resources/locales/hr/plurals.yml +7 -11
  263. data/resources/locales/hr/units.yml +164 -164
  264. data/resources/locales/hu/plurals.yml +2 -1
  265. data/resources/locales/hu/units.yml +108 -108
  266. data/resources/locales/id/plurals.yml +2 -1
  267. data/resources/locales/id/units.yml +108 -108
  268. data/resources/locales/is/plurals.yml +4 -4
  269. data/resources/locales/is/units.yml +108 -108
  270. data/resources/locales/it-CH/calendars.yml +291 -0
  271. data/resources/locales/it-CH/currencies.yml +954 -0
  272. data/resources/locales/it-CH/languages.yml +583 -0
  273. data/resources/locales/it-CH/layout.yml +5 -0
  274. data/resources/locales/it-CH/lists.yml +23 -0
  275. data/resources/locales/it-CH/numbers.yml +62 -0
  276. data/resources/locales/it-CH/plurals.yml +5 -0
  277. data/resources/locales/it-CH/rbnf.yml +4 -0
  278. data/resources/locales/it-CH/territories.yml +264 -0
  279. data/resources/locales/it-CH/units.yml +108 -0
  280. data/resources/locales/it/plurals.yml +3 -2
  281. data/resources/locales/it/units.yml +108 -108
  282. data/resources/locales/ja/plurals.yml +2 -1
  283. data/resources/locales/ja/units.yml +108 -108
  284. data/resources/locales/ko/plurals.yml +2 -1
  285. data/resources/locales/ko/units.yml +108 -108
  286. data/resources/locales/lv/plurals.yml +8 -10
  287. data/resources/locales/lv/units.yml +136 -136
  288. data/resources/locales/ms/plurals.yml +2 -1
  289. data/resources/locales/ms/units.yml +108 -108
  290. data/resources/locales/nb/plurals.yml +2 -1
  291. data/resources/locales/nb/units.yml +108 -108
  292. data/resources/locales/nl/plurals.yml +3 -2
  293. data/resources/locales/nl/units.yml +108 -108
  294. data/resources/locales/pl/plurals.yml +8 -10
  295. data/resources/locales/pl/units.yml +164 -164
  296. data/resources/locales/pt/plurals.yml +4 -3
  297. data/resources/locales/pt/units.yml +108 -108
  298. data/resources/locales/ro/plurals.yml +5 -4
  299. data/resources/locales/ro/units.yml +136 -136
  300. data/resources/locales/ru/plurals.yml +6 -7
  301. data/resources/locales/ru/units.yml +164 -164
  302. data/resources/locales/sk/plurals.yml +5 -5
  303. data/resources/locales/sk/units.yml +136 -136
  304. data/resources/locales/sq/plurals.yml +2 -1
  305. data/resources/locales/sq/units.yml +108 -108
  306. data/resources/locales/sr/plurals.yml +7 -11
  307. data/resources/locales/sr/units.yml +164 -164
  308. data/resources/locales/sv/plurals.yml +3 -2
  309. data/resources/locales/sv/units.yml +108 -108
  310. data/resources/locales/ta/plurals.yml +2 -1
  311. data/resources/locales/ta/units.yml +108 -108
  312. data/resources/locales/th/plurals.yml +2 -1
  313. data/resources/locales/th/units.yml +108 -108
  314. data/resources/locales/tr/plurals.yml +2 -1
  315. data/resources/locales/tr/units.yml +108 -108
  316. data/resources/locales/uk/plurals.yml +8 -9
  317. data/resources/locales/uk/units.yml +164 -164
  318. data/resources/locales/ur/plurals.yml +3 -2
  319. data/resources/locales/ur/units.yml +108 -108
  320. data/resources/locales/vi/plurals.yml +2 -1
  321. data/resources/locales/vi/units.yml +108 -108
  322. data/resources/locales/zh-Hant/plurals.yml +3 -2
  323. data/resources/locales/zh-Hant/units.yml +108 -108
  324. data/resources/locales/zh/plurals.yml +2 -1
  325. data/resources/locales/zh/units.yml +108 -108
  326. data/resources/shared/language_codes_table.dump +0 -0
  327. data/resources/shared/phone_codes.yml +9 -1
  328. data/resources/shared/postal_codes.yml +1276 -333
  329. data/resources/shared/segments/segments_root.yml +3 -0
  330. data/spec/data_readers/timespan_data_reader_spec.rb +16 -0
  331. data/spec/formatters/calendars/datetime_formatter_spec.rb +2 -2
  332. data/spec/formatters/numbers/abbreviated/abbreviated_number_formatter_spec.rb +25 -17
  333. data/spec/formatters/numbers/abbreviated/short_decimal_formatter_spec.rb +47 -34
  334. data/spec/formatters/numbers/currency_formatter_spec.rb +1 -1
  335. data/spec/formatters/numbers/decimal_formatter_spec.rb +1 -1
  336. data/spec/formatters/numbers/number_formatter_spec.rb +1 -1
  337. data/spec/formatters/numbers/percent_formatter_spec.rb +1 -1
  338. data/spec/formatters/numbers/rbnf/locales/de-CH/rbnf_test.yml +940 -0
  339. data/spec/formatters/numbers/rbnf/locales/en-AU/rbnf_test.yml +1291 -0
  340. data/spec/formatters/numbers/rbnf/locales/en-CA/rbnf_test.yml +1291 -0
  341. data/spec/formatters/numbers/rbnf/locales/en-IE/rbnf_test.yml +1291 -0
  342. data/spec/formatters/numbers/rbnf/locales/en-SG/rbnf_test.yml +1291 -0
  343. data/spec/formatters/numbers/rbnf/locales/en-ZA/rbnf_test.yml +1291 -0
  344. data/spec/formatters/numbers/rbnf/locales/es-CO/rbnf_test.yml +1642 -0
  345. data/spec/formatters/numbers/rbnf/locales/es-MX/rbnf_test.yml +1642 -0
  346. data/spec/formatters/numbers/rbnf/locales/es-US/rbnf_test.yml +1642 -0
  347. data/spec/formatters/numbers/rbnf/locales/fr-BE/rbnf_test.yml +1408 -0
  348. data/spec/formatters/numbers/rbnf/locales/fr-CA/rbnf_test.yml +1408 -0
  349. data/spec/formatters/numbers/rbnf/locales/fr-CH/rbnf_test.yml +1408 -0
  350. data/spec/formatters/numbers/rbnf/locales/it-CH/rbnf_test.yml +1174 -0
  351. data/spec/formatters/plurals/rules_spec.rb +4 -0
  352. data/spec/localized/localized_datetime_spec.rb +1 -1
  353. data/spec/localized/localized_number_spec.rb +28 -0
  354. data/spec/localized/localized_time_spec.rb +1 -1
  355. data/spec/shared/calendar_spec.rb +4 -1
  356. data/spec/tokenizers/calendars/date_tokenizer_spec.rb +3 -3
  357. data/spec/tokenizers/calendars/datetime_tokenizer_spec.rb +1 -2
  358. data/spec/tokenizers/calendars/time_tokenizer_spec.rb +2 -2
  359. data/spec/tokenizers/numbers/number_tokenizer_spec.rb +4 -4
  360. metadata +399 -230
  361. data/spec/data_readers/timespan_data_reader.rb +0 -22
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  :he: ! '{ :''he'' => { :i18n => { :plural => { :keys => [:one, :two, :many, :other],
3
- :rule => lambda { |n| (n.to_i == 1 && ((v = n.to_s.split(".")[1] || []).count >
4
- 1 ? v.last.length : 0) == 0) ? :one : (n.to_i == 2 && ((v = n.to_s.split(".")[1]
5
- || []).count > 1 ? v.last.length : 0) == 0) ? :two : (((v = n.to_s.split(".")[1]
6
- || []).count > 1 ? v.last.length : 0) == 0 && ((n.to_f.abs % 1).zero? && !(0..10).include?(n.to_f.abs))
7
- && n.to_f.abs % 10 == 0) ? :many : :other } } } } }'
3
+ :rule => lambda { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-"
4
+ ? m[1,m.length] : m); (n.to_i == 1 && ((v = n.to_s.split(".")[1]) ? v.length : 0)
5
+ == 0) ? :one : (n.to_i == 2 && ((v = n.to_s.split(".")[1]) ? v.length : 0) == 0)
6
+ ? :two : (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && ((n.to_f % 1).zero?
7
+ && !(0..10).include?(n.to_f)) && n.to_f % 10 == 0) ? :many : :other } } } } }'
@@ -1,164 +1,164 @@
1
- ---
2
- :he:
3
- :units:
4
- :day:
5
- :default:
6
- :many: ! '{0} ימים'
7
- :one: ‏{0} יום
8
- :other: ! '{0} ימים'
9
- :two: ! '{0} ימים'
10
- :short:
11
- :many: ! '{0} ימים'
12
- :one: ! '{0} יום'
13
- :other: ! '{0} ימים'
14
- :two: ! '{0} ימים'
15
- :day-future:
16
- :default:
17
- :many: בעוד {0} ימים
18
- :one: בעוד {0} ימים
19
- :other: בעוד {0} ימים
20
- :two: בעוד {0} ימים
21
- :day-past:
22
- :default:
23
- :many: לפני {0} ימים
24
- :one: לפני {0} ימים
25
- :other: לפני {0} ימים
26
- :two: לפני {0} ימים
27
- :hour:
28
- :default:
29
- :many: ! '{0} שעות'
30
- :one: ! '{0} שעה'
31
- :other: ! '{0} שעות'
32
- :two: ! '{0} שעות'
33
- :short:
34
- :many: ! '{0} שעות'
35
- :one: ! '{0} שעה'
36
- :other: ! '{0} שעות'
37
- :two: ! '{0} שעות'
38
- :hour-future:
39
- :default:
40
- :many: בעוד {0} שעות
41
- :one: בעוד {0} שעות
42
- :other: בעוד {0} שעות
43
- :two: בעוד {0} שעות
44
- :hour-past:
45
- :default:
46
- :many: לפני {0} שעות
47
- :one: לפני {0} שעות
48
- :other: לפני {0} שעות
49
- :two: לפני {0} שעות
50
- :minute:
51
- :default:
52
- :many: ! '{0} דקות'
53
- :one: ! '{0} דקה'
54
- :other: ! '{0} דקות'
55
- :two: ! '{0} דקות'
56
- :short:
57
- :many: ! '{0} דק׳'
58
- :one: ! '{0} דק׳'
59
- :other: ! '{0} דק׳'
60
- :two: ! '{0} דק׳'
61
- :minute-future:
62
- :default:
63
- :many: בעוד {0} דקות
64
- :one: בעוד {0} דקות
65
- :other: בעוד {0} דקות
66
- :two: בעוד {0} דקות
67
- :minute-past:
68
- :default:
69
- :many: לפני {0} דקות
70
- :one: לפני {0} דקות
71
- :other: לפני {0} דקות
72
- :two: לפני {0} דקות
73
- :month:
74
- :default:
75
- :many: ! '{0} חודשים'
76
- :one: ! '{0} חודש'
77
- :other: ! '{0} חודשים'
78
- :two: ! '{0} חודשים'
79
- :short:
80
- :many: ! '{0} חודשים'
81
- :one: ! '{0} חודש'
82
- :other: ! '{0} חודשים'
83
- :two: ! '{0} חודשים'
84
- :month-future:
85
- :default:
86
- :many: בעוד {0} חודשים
87
- :one: בעוד {0} חודשים
88
- :other: בעוד {0} חודשים
89
- :two: בעוד {0} חודשים
90
- :month-past:
91
- :default:
92
- :many: לפני {0} חודשים
93
- :one: לפני {0} חודשים
94
- :other: לפני {0} חודשים
95
- :two: לפני {0} חודשים
96
- :second:
97
- :default:
98
- :many: ‏{0} שניות
99
- :one: ! '{0} שניה'
100
- :other: ! '{0} שניות'
101
- :two: ! '{0} שניות'
102
- :short:
103
- :many: ! '{0} שנ׳'
104
- :one: ! '{0} שנ׳'
105
- :other: ! '{0} שניות'
106
- :two: ! '{0} שנ׳'
107
- :second-future:
108
- :default:
109
- :many: בעוד {0} שניות
110
- :one: בעוד {0} שניות
111
- :other: בעוד {0} שניות
112
- :two: בעוד {0} שניות
113
- :second-past:
114
- :default:
115
- :many: לפני {0} שניות
116
- :one: לפני {0} שניות
117
- :other: לפני {0} שניות
118
- :two: לפני {0} שניות
119
- :week:
120
- :default:
121
- :many: ! '{0} שבועות'
122
- :one: ! '{0} שבוע'
123
- :other: ! '{0} שבועות'
124
- :two: ! '{0} שבועות'
125
- :short:
126
- :many: ! '{0} שבועות'
127
- :one: ! '{0} שבוע'
128
- :other: ! '{0} שבועות'
129
- :two: ! '{0} שבועות'
130
- :week-future:
131
- :default:
132
- :many: בעוד {0} שבועות
133
- :one: בעוד {0} שבועות
134
- :other: בעוד {0} שבועות
135
- :two: בעוד {0} שבועות
136
- :week-past:
137
- :default:
138
- :many: לפני {0} שבועות
139
- :one: לפני {0} שבועות
140
- :other: לפני {0} שבועות
141
- :two: לפני {0} שבועות
142
- :year:
143
- :default:
144
- :many: ! '{0} שנים'
145
- :one: ! '{0} שנה'
146
- :other: ! '{0} שנים'
147
- :two: ! '{0} שנים'
148
- :short:
149
- :many: ! '{0} שנים'
150
- :one: ! '{0} שנה'
151
- :other: ! '{0} שנים'
152
- :two: ! '{0} שנים'
153
- :year-future:
154
- :default:
155
- :many: בעוד {0} שנים
156
- :one: בעוד {0} שנים
157
- :other: בעוד {0} שנים
158
- :two: בעוד {0} שנים
159
- :year-past:
160
- :default:
161
- :many: לפני {0} שנים
162
- :one: לפני {0} שנים
163
- :other: לפני {0} שנים
164
- :two: לפני {0} שנים
1
+ ---
2
+ :he:
3
+ :units:
4
+ :day:
5
+ :default:
6
+ :many: "{0} ימים"
7
+ :one: "‏{0} יום"
8
+ :other: "{0} ימים"
9
+ :two: "{0} ימים"
10
+ :short:
11
+ :many: "{0} ימים"
12
+ :one: "{0} יום"
13
+ :other: "{0} ימים"
14
+ :two: "{0} ימים"
15
+ :day-future:
16
+ :default:
17
+ :many: "בעוד {0} ימים"
18
+ :one: "בעוד {0} ימים"
19
+ :other: "בעוד {0} ימים"
20
+ :two: "בעוד {0} ימים"
21
+ :day-past:
22
+ :default:
23
+ :many: "לפני {0} ימים"
24
+ :one: "לפני {0} ימים"
25
+ :other: "לפני {0} ימים"
26
+ :two: "לפני {0} ימים"
27
+ :hour:
28
+ :default:
29
+ :many: "{0} שעות"
30
+ :one: "{0} שעה"
31
+ :other: "{0} שעות"
32
+ :two: "{0} שעות"
33
+ :short:
34
+ :many: "{0} שעות"
35
+ :one: "{0} שעה"
36
+ :other: "{0} שעות"
37
+ :two: "{0} שעות"
38
+ :hour-future:
39
+ :default:
40
+ :many: "בעוד {0} שעות"
41
+ :one: "בעוד {0} שעות"
42
+ :other: "בעוד {0} שעות"
43
+ :two: "בעוד {0} שעות"
44
+ :hour-past:
45
+ :default:
46
+ :many: "לפני {0} שעות"
47
+ :one: "לפני {0} שעות"
48
+ :other: "לפני {0} שעות"
49
+ :two: "לפני {0} שעות"
50
+ :minute:
51
+ :default:
52
+ :many: "{0} דקות"
53
+ :one: "{0} דקה"
54
+ :other: "{0} דקות"
55
+ :two: "{0} דקות"
56
+ :short:
57
+ :many: "{0} דק׳"
58
+ :one: "{0} דק׳"
59
+ :other: "{0} דק׳"
60
+ :two: "{0} דק׳"
61
+ :minute-future:
62
+ :default:
63
+ :many: "בעוד {0} דקות"
64
+ :one: "בעוד {0} דקות"
65
+ :other: "בעוד {0} דקות"
66
+ :two: "בעוד {0} דקות"
67
+ :minute-past:
68
+ :default:
69
+ :many: "לפני {0} דקות"
70
+ :one: "לפני {0} דקות"
71
+ :other: "לפני {0} דקות"
72
+ :two: "לפני {0} דקות"
73
+ :month:
74
+ :default:
75
+ :many: "{0} חודשים"
76
+ :one: "{0} חודש"
77
+ :other: "{0} חודשים"
78
+ :two: "{0} חודשים"
79
+ :short:
80
+ :many: "{0} חודשים"
81
+ :one: "{0} חודש"
82
+ :other: "{0} חודשים"
83
+ :two: "{0} חודשים"
84
+ :month-future:
85
+ :default:
86
+ :many: "בעוד {0} חודשים"
87
+ :one: "בעוד {0} חודשים"
88
+ :other: "בעוד {0} חודשים"
89
+ :two: "בעוד {0} חודשים"
90
+ :month-past:
91
+ :default:
92
+ :many: "לפני {0} חודשים"
93
+ :one: "לפני {0} חודשים"
94
+ :other: "לפני {0} חודשים"
95
+ :two: "לפני {0} חודשים"
96
+ :second:
97
+ :default:
98
+ :many: "‏{0} שניות"
99
+ :one: "{0} שניה"
100
+ :other: "{0} שניות"
101
+ :two: "{0} שניות"
102
+ :short:
103
+ :many: "{0} שנ׳"
104
+ :one: "{0} שנ׳"
105
+ :other: "{0} שניות"
106
+ :two: "{0} שנ׳"
107
+ :second-future:
108
+ :default:
109
+ :many: "בעוד {0} שניות"
110
+ :one: "בעוד {0} שניות"
111
+ :other: "בעוד {0} שניות"
112
+ :two: "בעוד {0} שניות"
113
+ :second-past:
114
+ :default:
115
+ :many: "לפני {0} שניות"
116
+ :one: "לפני {0} שניות"
117
+ :other: "לפני {0} שניות"
118
+ :two: "לפני {0} שניות"
119
+ :week:
120
+ :default:
121
+ :many: "{0} שבועות"
122
+ :one: "{0} שבוע"
123
+ :other: "{0} שבועות"
124
+ :two: "{0} שבועות"
125
+ :short:
126
+ :many: "{0} שבועות"
127
+ :one: "{0} שבוע"
128
+ :other: "{0} שבועות"
129
+ :two: "{0} שבועות"
130
+ :week-future:
131
+ :default:
132
+ :many: "בעוד {0} שבועות"
133
+ :one: "בעוד {0} שבועות"
134
+ :other: "בעוד {0} שבועות"
135
+ :two: "בעוד {0} שבועות"
136
+ :week-past:
137
+ :default:
138
+ :many: "לפני {0} שבועות"
139
+ :one: "לפני {0} שבועות"
140
+ :other: "לפני {0} שבועות"
141
+ :two: "לפני {0} שבועות"
142
+ :year:
143
+ :default:
144
+ :many: "{0} שנים"
145
+ :one: "{0} שנה"
146
+ :other: "{0} שנים"
147
+ :two: "{0} שנים"
148
+ :short:
149
+ :many: "{0} שנים"
150
+ :one: "{0} שנה"
151
+ :other: "{0} שנים"
152
+ :two: "{0} שנים"
153
+ :year-future:
154
+ :default:
155
+ :many: "בעוד {0} שנים"
156
+ :one: "בעוד {0} שנים"
157
+ :other: "בעוד {0} שנים"
158
+ :two: "בעוד {0} שנים"
159
+ :year-past:
160
+ :default:
161
+ :many: "לפני {0} שנים"
162
+ :one: "לפני {0} שנים"
163
+ :other: "לפני {0} שנים"
164
+ :two: "לפני {0} שנים"
@@ -1,3 +1,4 @@
1
1
  ---
2
2
  :hi: ! '{ :''hi'' => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda
3
- { |n| (n.to_i == 0 || n.to_f.abs == 1) ? :one : :other } } } } }'
3
+ { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-" ? m[1,m.length]
4
+ : m); (n.to_i == 0 || n.to_f == 1) ? :one : :other } } } } }'
@@ -1,108 +1,108 @@
1
- ---
2
- :hi:
3
- :units:
4
- :day:
5
- :default:
6
- :one: ! '{0} दिन'
7
- :other: ! '{0} दिन'
8
- :short:
9
- :one: ! '{0} दि.'
10
- :other: ! '{0} दि.'
11
- :day-future:
12
- :default:
13
- :one: ! '{0} दिन में'
14
- :other: ! '{0} दिन में'
15
- :day-past:
16
- :default:
17
- :one: ! '{0} दिन पहले'
18
- :other: ! '{0} दिन पहले'
19
- :hour:
20
- :default:
21
- :one: ! '{0} घंटा'
22
- :other: ! '{0} घंटे'
23
- :short:
24
- :one: ! '{0} घं.'
25
- :other: ! '{0} घंटे'
26
- :hour-future:
27
- :default:
28
- :one: ! '{0} घंटों में'
29
- :other: ! '{0} घंटों में'
30
- :hour-past:
31
- :default:
32
- :one: ! '{0} घंटे पहले'
33
- :other: ! '{0} घंटे पहले'
34
- :minute:
35
- :default:
36
- :one: ! '{0} मिनट'
37
- :other: ! '{0} मिनट'
38
- :short:
39
- :one: ! '{0} मिन.'
40
- :other: ! '{0} मिन.'
41
- :minute-future:
42
- :default:
43
- :one: ! '{0} मिनट में'
44
- :other: ! '{0} मिनट में'
45
- :minute-past:
46
- :default:
47
- :one: ! '{0} मिनट पहले'
48
- :other: ! '{0} मिनट पहले'
49
- :month:
50
- :default:
51
- :one: ! '{0} महीना'
52
- :other: ! '{0} महीने'
53
- :short:
54
- :one: ! '{0} मही.'
55
- :other: ! '{0} मही.'
56
- :month-future:
57
- :default:
58
- :one: ! '{0} माह में'
59
- :other: ! '{0} माह में'
60
- :month-past:
61
- :default:
62
- :one: ! '{0} माह पहले'
63
- :other: ! '{0} माह पहले'
64
- :second:
65
- :default:
66
- :one: ! '{0} सेकंड'
67
- :other: ! '{0} सेकंड'
68
- :short:
69
- :one: ! '{0} सेकं.'
70
- :other: ! '{0} सेकं.'
71
- :second-future:
72
- :default:
73
- :one: ! '{0} सेकंड में'
74
- :other: ! '{0} सेकंड में'
75
- :second-past:
76
- :default:
77
- :one: ! '{0} सेकंड पहले'
78
- :other: ! '{0} सेकंड पहले'
79
- :week:
80
- :default:
81
- :one: ! '{0} सप्ताह'
82
- :other: ! '{0} सप्ताह'
83
- :short:
84
- :one: ! '{0} सप्त.'
85
- :other: ! '{0} सप्त.'
86
- :week-future:
87
- :default:
88
- :one: ! '{0} सप्ताह में'
89
- :other: ! '{0} सप्ताह में'
90
- :week-past:
91
- :default:
92
- :one: ! '{0} सप्ताह पहले'
93
- :other: ! '{0} सप्ताह पहले'
94
- :year:
95
- :default:
96
- :one: ! '{0} साल'
97
- :other: ! '{0} साल'
98
- :short:
99
- :one: ! '{0} साल'
100
- :other: ! '{0} साल'
101
- :year-future:
102
- :default:
103
- :one: ! '{0} वर्ष में'
104
- :other: ! '{0} वर्ष में'
105
- :year-past:
106
- :default:
107
- :one: ! '{0} वर्ष पहले'
108
- :other: ! '{0} वर्ष पहले'
1
+ ---
2
+ :hi:
3
+ :units:
4
+ :day:
5
+ :default:
6
+ :one: "{0} दिन"
7
+ :other: "{0} दिन"
8
+ :short:
9
+ :one: "{0} दि."
10
+ :other: "{0} दि."
11
+ :day-future:
12
+ :default:
13
+ :one: "{0} दिन में"
14
+ :other: "{0} दिन में"
15
+ :day-past:
16
+ :default:
17
+ :one: "{0} दिन पहले"
18
+ :other: "{0} दिन पहले"
19
+ :hour:
20
+ :default:
21
+ :one: "{0} घंटा"
22
+ :other: "{0} घंटे"
23
+ :short:
24
+ :one: "{0} घं."
25
+ :other: "{0} घंटे"
26
+ :hour-future:
27
+ :default:
28
+ :one: "{0} घंटों में"
29
+ :other: "{0} घंटों में"
30
+ :hour-past:
31
+ :default:
32
+ :one: "{0} घंटे पहले"
33
+ :other: "{0} घंटे पहले"
34
+ :minute:
35
+ :default:
36
+ :one: "{0} मिनट"
37
+ :other: "{0} मिनट"
38
+ :short:
39
+ :one: "{0} मिन."
40
+ :other: "{0} मिन."
41
+ :minute-future:
42
+ :default:
43
+ :one: "{0} मिनट में"
44
+ :other: "{0} मिनट में"
45
+ :minute-past:
46
+ :default:
47
+ :one: "{0} मिनट पहले"
48
+ :other: "{0} मिनट पहले"
49
+ :month:
50
+ :default:
51
+ :one: "{0} महीना"
52
+ :other: "{0} महीने"
53
+ :short:
54
+ :one: "{0} मही."
55
+ :other: "{0} मही."
56
+ :month-future:
57
+ :default:
58
+ :one: "{0} माह में"
59
+ :other: "{0} माह में"
60
+ :month-past:
61
+ :default:
62
+ :one: "{0} माह पहले"
63
+ :other: "{0} माह पहले"
64
+ :second:
65
+ :default:
66
+ :one: "{0} सेकंड"
67
+ :other: "{0} सेकंड"
68
+ :short:
69
+ :one: "{0} सेकं."
70
+ :other: "{0} सेकं."
71
+ :second-future:
72
+ :default:
73
+ :one: "{0} सेकंड में"
74
+ :other: "{0} सेकंड में"
75
+ :second-past:
76
+ :default:
77
+ :one: "{0} सेकंड पहले"
78
+ :other: "{0} सेकंड पहले"
79
+ :week:
80
+ :default:
81
+ :one: "{0} सप्ताह"
82
+ :other: "{0} सप्ताह"
83
+ :short:
84
+ :one: "{0} सप्त."
85
+ :other: "{0} सप्त."
86
+ :week-future:
87
+ :default:
88
+ :one: "{0} सप्ताह में"
89
+ :other: "{0} सप्ताह में"
90
+ :week-past:
91
+ :default:
92
+ :one: "{0} सप्ताह पहले"
93
+ :other: "{0} सप्ताह पहले"
94
+ :year:
95
+ :default:
96
+ :one: "{0} साल"
97
+ :other: "{0} साल"
98
+ :short:
99
+ :one: "{0} साल"
100
+ :other: "{0} साल"
101
+ :year-future:
102
+ :default:
103
+ :one: "{0} वर्ष में"
104
+ :other: "{0} वर्ष में"
105
+ :year-past:
106
+ :default:
107
+ :one: "{0} वर्ष पहले"
108
+ :other: "{0} वर्ष पहले"