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,9 +1,8 @@
1
1
  ---
2
2
  :ru: ! '{ :''ru'' => { :i18n => { :plural => { :keys => [:one, :many, :other], :rule
3
- => lambda { |n| (((v = n.to_s.split(".")[1] || []).count > 1 ? v.last.length : 0)
4
- == 0 && n.to_i % 10 == 1 && n.to_i % 100 != 11) ? :one : ((((v = n.to_s.split(".")[1]
5
- || []).count > 1 ? v.last.length : 0) == 0 && n.to_i % 10 == 0) || (((v = n.to_s.split(".")[1]
6
- || []).count > 1 ? v.last.length : 0) == 0 && (((n.to_i % 10) % 1).zero? && (5..9).include?(n.to_i
7
- % 10))) || (((v = n.to_s.split(".")[1] || []).count > 1 ? v.last.length : 0) ==
8
- 0 && (((n.to_i % 100) % 1).zero? && (11..14).include?(n.to_i % 100)))) ? :many :
9
- :other } } } } }'
3
+ => lambda { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-" ? m[1,m.length]
4
+ : m); (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && n.to_i % 10 == 1 && n.to_i
5
+ % 100 != 11) ? :one : ((((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && n.to_i
6
+ % 10 == 0) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && (5..9).include?(n.to_i
7
+ % 10)) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && (11..14).include?(n.to_i
8
+ % 100))) ? :many : :other } } } } }'
@@ -1,164 +1,164 @@
1
- ---
2
- :ru:
3
- :units:
4
- :day:
5
- :default:
6
- :few: ! '{0} дня'
7
- :many: ! '{0} дней'
8
- :one: ! '{0} день'
9
- :other: ! '{0} дня'
10
- :short:
11
- :few: ! '{0} дн.'
12
- :many: ! '{0} дн.'
13
- :one: ! '{0} дн.'
14
- :other: ! '{0} дн.'
15
- :day-future:
16
- :default:
17
- :few: Через {0} дня
18
- :many: Через {0} дней
19
- :one: Через {0} день
20
- :other: Через {0} дня
21
- :day-past:
22
- :default:
23
- :few: ! '{0} дня назад'
24
- :many: ! '{0} дней назад'
25
- :one: ! '{0} день назад'
26
- :other: ! '{0} дня назад'
27
- :hour:
28
- :default:
29
- :few: ! '{0} часа'
30
- :many: ! '{0} часов'
31
- :one: ! '{0} час'
32
- :other: ! '{0} часа'
33
- :short:
34
- :few: ! '{0} ч.'
35
- :many: ! '{0} ч.'
36
- :one: ! '{0} ч.'
37
- :other: ! '{0} ч.'
38
- :hour-future:
39
- :default:
40
- :few: Через {0} часа
41
- :many: Через {0} часов
42
- :one: Через {0} час
43
- :other: Через {0} часа
44
- :hour-past:
45
- :default:
46
- :few: ! '{0} часа назад'
47
- :many: ! '{0} часов назад'
48
- :one: ! '{0} час назад'
49
- :other: ! '{0} часа назад'
50
- :minute:
51
- :default:
52
- :few: ! '{0} минуты'
53
- :many: ! '{0} минут'
54
- :one: ! '{0} минута'
55
- :other: ! '{0} минуты'
56
- :short:
57
- :few: ! '{0} мин.'
58
- :many: ! '{0} мин.'
59
- :one: ! '{0} мин.'
60
- :other: ! '{0} мин.'
61
- :minute-future:
62
- :default:
63
- :few: Через {0} минуты
64
- :many: Через {0} минут
65
- :one: Через {0} минуту
66
- :other: Через {0} минуты
67
- :minute-past:
68
- :default:
69
- :few: ! '{0} минуты назад'
70
- :many: ! '{0} минут назад'
71
- :one: ! '{0} минуту назад'
72
- :other: ! '{0} минуты назад'
73
- :month:
74
- :default:
75
- :few: ! '{0} месяца'
76
- :many: ! '{0} месяцев'
77
- :one: ! '{0} месяц'
78
- :other: ! '{0} месяца'
79
- :short:
80
- :few: ! '{0} мес.'
81
- :many: ! '{0} мес.'
82
- :one: ! '{0} мес.'
83
- :other: ! '{0} мес.'
84
- :month-future:
85
- :default:
86
- :few: Через {0} месяца
87
- :many: Через {0} месяцев
88
- :one: Через {0} месяц
89
- :other: Через {0} месяца
90
- :month-past:
91
- :default:
92
- :few: ! '{0} месяца назад'
93
- :many: ! '{0} месяцев назад'
94
- :one: ! '{0} месяц назад'
95
- :other: ! '{0} месяца назад'
96
- :second:
97
- :default:
98
- :few: ! '{0} секунды'
99
- :many: ! '{0} секунд'
100
- :one: ! '{0} секунда'
101
- :other: ! '{0} секунды'
102
- :short:
103
- :few: ! '{0} сек.'
104
- :many: ! '{0} сек.'
105
- :one: ! '{0} сек.'
106
- :other: ! '{0} сек.'
107
- :second-future:
108
- :default:
109
- :few: Через {0} секунды
110
- :many: Через {0} секунд
111
- :one: Через {0} секунду
112
- :other: Через {0} секунды
113
- :second-past:
114
- :default:
115
- :few: ! '{0} секунды назад'
116
- :many: ! '{0} секунд назад'
117
- :one: ! '{0} секунду назад'
118
- :other: ! '{0} секунды назад'
119
- :week:
120
- :default:
121
- :few: ! '{0} недели'
122
- :many: ! '{0} недель'
123
- :one: ! '{0} неделя'
124
- :other: ! '{0} недели'
125
- :short:
126
- :few: ! '{0} нед.'
127
- :many: ! '{0} нед.'
128
- :one: ! '{0} нед.'
129
- :other: ! '{0} нед.'
130
- :week-future:
131
- :default:
132
- :few: Через {0} недели
133
- :many: Через {0} недель
134
- :one: Через {0} неделю
135
- :other: Через {0} недели
136
- :week-past:
137
- :default:
138
- :few: ! '{0} недели назад'
139
- :many: ! '{0} недель назад'
140
- :one: ! '{0} неделю назад'
141
- :other: ! '{0} недели назад'
142
- :year:
143
- :default:
144
- :few: ! '{0} года'
145
- :many: ! '{0} лет'
146
- :one: ! '{0} год'
147
- :other: ! '{0} года'
148
- :short:
149
- :few: ! '{0} г.'
150
- :many: ! '{0} лет'
151
- :one: ! '{0} г.'
152
- :other: ! '{0} г.'
153
- :year-future:
154
- :default:
155
- :few: Через {0} года
156
- :many: Через {0} лет
157
- :one: Через {0} год
158
- :other: Через {0} года
159
- :year-past:
160
- :default:
161
- :few: ! '{0} года назад'
162
- :many: ! '{0} лет назад'
163
- :one: ! '{0} год назад'
164
- :other: ! '{0} года назад'
1
+ ---
2
+ :ru:
3
+ :units:
4
+ :day:
5
+ :default:
6
+ :few: "{0} дня"
7
+ :many: "{0} дней"
8
+ :one: "{0} день"
9
+ :other: "{0} дня"
10
+ :short:
11
+ :few: "{0} дн."
12
+ :many: "{0} дн."
13
+ :one: "{0} дн."
14
+ :other: "{0} дн."
15
+ :day-future:
16
+ :default:
17
+ :few: "Через {0} дня"
18
+ :many: "Через {0} дней"
19
+ :one: "Через {0} день"
20
+ :other: "Через {0} дня"
21
+ :day-past:
22
+ :default:
23
+ :few: "{0} дня назад"
24
+ :many: "{0} дней назад"
25
+ :one: "{0} день назад"
26
+ :other: "{0} дня назад"
27
+ :hour:
28
+ :default:
29
+ :few: "{0} часа"
30
+ :many: "{0} часов"
31
+ :one: "{0} час"
32
+ :other: "{0} часа"
33
+ :short:
34
+ :few: "{0} ч."
35
+ :many: "{0} ч."
36
+ :one: "{0} ч."
37
+ :other: "{0} ч."
38
+ :hour-future:
39
+ :default:
40
+ :few: "Через {0} часа"
41
+ :many: "Через {0} часов"
42
+ :one: "Через {0} час"
43
+ :other: "Через {0} часа"
44
+ :hour-past:
45
+ :default:
46
+ :few: "{0} часа назад"
47
+ :many: "{0} часов назад"
48
+ :one: "{0} час назад"
49
+ :other: "{0} часа назад"
50
+ :minute:
51
+ :default:
52
+ :few: "{0} минуты"
53
+ :many: "{0} минут"
54
+ :one: "{0} минута"
55
+ :other: "{0} минуты"
56
+ :short:
57
+ :few: "{0} мин."
58
+ :many: "{0} мин."
59
+ :one: "{0} мин."
60
+ :other: "{0} мин."
61
+ :minute-future:
62
+ :default:
63
+ :few: "Через {0} минуты"
64
+ :many: "Через {0} минут"
65
+ :one: "Через {0} минуту"
66
+ :other: "Через {0} минуты"
67
+ :minute-past:
68
+ :default:
69
+ :few: "{0} минуты назад"
70
+ :many: "{0} минут назад"
71
+ :one: "{0} минуту назад"
72
+ :other: "{0} минуты назад"
73
+ :month:
74
+ :default:
75
+ :few: "{0} месяца"
76
+ :many: "{0} месяцев"
77
+ :one: "{0} месяц"
78
+ :other: "{0} месяца"
79
+ :short:
80
+ :few: "{0} мес."
81
+ :many: "{0} мес."
82
+ :one: "{0} мес."
83
+ :other: "{0} мес."
84
+ :month-future:
85
+ :default:
86
+ :few: "Через {0} месяца"
87
+ :many: "Через {0} месяцев"
88
+ :one: "Через {0} месяц"
89
+ :other: "Через {0} месяца"
90
+ :month-past:
91
+ :default:
92
+ :few: "{0} месяца назад"
93
+ :many: "{0} месяцев назад"
94
+ :one: "{0} месяц назад"
95
+ :other: "{0} месяца назад"
96
+ :second:
97
+ :default:
98
+ :few: "{0} секунды"
99
+ :many: "{0} секунд"
100
+ :one: "{0} секунда"
101
+ :other: "{0} секунды"
102
+ :short:
103
+ :few: "{0} сек."
104
+ :many: "{0} сек."
105
+ :one: "{0} сек."
106
+ :other: "{0} сек."
107
+ :second-future:
108
+ :default:
109
+ :few: "Через {0} секунды"
110
+ :many: "Через {0} секунд"
111
+ :one: "Через {0} секунду"
112
+ :other: "Через {0} секунды"
113
+ :second-past:
114
+ :default:
115
+ :few: "{0} секунды назад"
116
+ :many: "{0} секунд назад"
117
+ :one: "{0} секунду назад"
118
+ :other: "{0} секунды назад"
119
+ :week:
120
+ :default:
121
+ :few: "{0} недели"
122
+ :many: "{0} недель"
123
+ :one: "{0} неделя"
124
+ :other: "{0} недели"
125
+ :short:
126
+ :few: "{0} нед."
127
+ :many: "{0} нед."
128
+ :one: "{0} нед."
129
+ :other: "{0} нед."
130
+ :week-future:
131
+ :default:
132
+ :few: "Через {0} недели"
133
+ :many: "Через {0} недель"
134
+ :one: "Через {0} неделю"
135
+ :other: "Через {0} недели"
136
+ :week-past:
137
+ :default:
138
+ :few: "{0} недели назад"
139
+ :many: "{0} недель назад"
140
+ :one: "{0} неделю назад"
141
+ :other: "{0} недели назад"
142
+ :year:
143
+ :default:
144
+ :few: "{0} года"
145
+ :many: "{0} лет"
146
+ :one: "{0} год"
147
+ :other: "{0} года"
148
+ :short:
149
+ :few: "{0} г."
150
+ :many: "{0} лет"
151
+ :one: "{0} г."
152
+ :other: "{0} г."
153
+ :year-future:
154
+ :default:
155
+ :few: "Через {0} года"
156
+ :many: "Через {0} лет"
157
+ :one: "Через {0} год"
158
+ :other: "Через {0} года"
159
+ :year-past:
160
+ :default:
161
+ :few: "{0} года назад"
162
+ :many: "{0} лет назад"
163
+ :one: "{0} год назад"
164
+ :other: "{0} года назад"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  :sk: ! '{ :''sk'' => { :i18n => { :plural => { :keys => [:one, :few, :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 % 1).zero? && (2..4).include?(n.to_i))
5
- && ((v = n.to_s.split(".")[1] || []).count > 1 ? v.last.length : 0) == 0) ? :few
6
- : ((v = n.to_s.split(".")[1] || []).count > 1 ? v.last.length : 0) != 0 ? :many
7
- : :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 : ((2..4).include?(n.to_i) && ((v = n.to_s.split(".")[1]) ? v.length
6
+ : 0) == 0) ? :few : ((v = n.to_s.split(".")[1]) ? v.length : 0) != 0 ? :many : :other
7
+ } } } } }'
@@ -1,136 +1,136 @@
1
- ---
2
- :sk:
3
- :units:
4
- :day:
5
- :default:
6
- :few: ! '{0} dni'
7
- :one: ! '{0} deň'
8
- :other: ! '{0} dní'
9
- :short:
10
- :few: ! '{0} d.'
11
- :one: ! '{0} d.'
12
- :other: ! '{0} d.'
13
- :day-future:
14
- :default:
15
- :few: O {0} dni
16
- :one: ! '{0} deň'
17
- :other: O {0} dní
18
- :day-past:
19
- :default:
20
- :few: Pred {0} dňami
21
- :one: Pred {0} dňom
22
- :other: Pred {0} dňami
23
- :hour:
24
- :default:
25
- :few: ! '{0} hodiny'
26
- :one: ! '{0} hodina'
27
- :other: ! '{0} hodín'
28
- :short:
29
- :few: ! '{0} h'
30
- :one: ! '{0} h'
31
- :other: ! '{0} h'
32
- :hour-future:
33
- :default:
34
- :few: O {0} hodiny
35
- :one: O {0} hodinu
36
- :other: O {0} hodín
37
- :hour-past:
38
- :default:
39
- :few: Pred {0} hodinami
40
- :one: Pred {0} hodinou
41
- :other: Pred {0} hodinami
42
- :minute:
43
- :default:
44
- :few: ! '{0} minúty'
45
- :one: ! '{0} minúta'
46
- :other: ! '{0} minút'
47
- :short:
48
- :few: ! '{0} min'
49
- :one: ! '{0} min'
50
- :other: ! '{0} min'
51
- :minute-future:
52
- :default:
53
- :few: O {0} minúty
54
- :one: O {0} minútu
55
- :other: O {0} minút
56
- :minute-past:
57
- :default:
58
- :few: Pred {0} minútami
59
- :one: Pred {0} minútou
60
- :other: Pred {0} minútami
61
- :month:
62
- :default:
63
- :few: ! '{0} mesiace'
64
- :one: ! '{0} mesiac'
65
- :other: ! '{0} mesiacov'
66
- :short:
67
- :few: ! '{0} mes.'
68
- :one: ! '{0} mes.'
69
- :other: ! '{0} mes.'
70
- :month-future:
71
- :default:
72
- :few: O {0} mesiace
73
- :one: O {0} mesiac
74
- :other: O {0} mesiacov
75
- :month-past:
76
- :default:
77
- :few: Pred {0} mesiacmi
78
- :one: Pred {0} mesiacom
79
- :other: Pred {0} mesiacmi
80
- :second:
81
- :default:
82
- :few: ! '{0} sekundy'
83
- :one: ! '{0} sekunda'
84
- :other: ! '{0} sekúnd'
85
- :short:
86
- :few: ! '{0} s'
87
- :one: ! '{0} s'
88
- :other: ! '{0} s'
89
- :second-future:
90
- :default:
91
- :few: O {0} sekundy
92
- :one: O {0} sekundu
93
- :other: O {0} sekúnd
94
- :second-past:
95
- :default:
96
- :few: Pred {0} sekundami
97
- :one: Pred {0} sekundou
98
- :other: Pred {0} sekundami
99
- :week:
100
- :default:
101
- :few: ! '{0} týždne'
102
- :one: ! '{0} týždeň'
103
- :other: ! '{0} týždňov'
104
- :short:
105
- :few: ! '{0} týžd.'
106
- :one: ! '{0} týžd.'
107
- :other: ! '{0} týžd.'
108
- :week-future:
109
- :default:
110
- :few: O {0} týždne
111
- :one: O {0} týždeň
112
- :other: O {0} týždňov
113
- :week-past:
114
- :default:
115
- :few: Pred {0} týždňami
116
- :one: Pred {0} týždňom
117
- :other: Pred {0} týždňami
118
- :year:
119
- :default:
120
- :few: ! '{0} roky'
121
- :one: ! '{0} rok'
122
- :other: ! '{0} rokov'
123
- :short:
124
- :few: ! '{0} r.'
125
- :one: ! '{0} r.'
126
- :other: ! '{0} r.'
127
- :year-future:
128
- :default:
129
- :few: O {0} roky
130
- :one: O {0} rok
131
- :other: O {0} rokov
132
- :year-past:
133
- :default:
134
- :few: Pred {0} rokmi
135
- :one: Pred {0} rokom
136
- :other: Pred {0} rokmi
1
+ ---
2
+ :sk:
3
+ :units:
4
+ :day:
5
+ :default:
6
+ :few: "{0} dni"
7
+ :one: "{0} deň"
8
+ :other: "{0} dní"
9
+ :short:
10
+ :few: "{0} d."
11
+ :one: "{0} d."
12
+ :other: "{0} d."
13
+ :day-future:
14
+ :default:
15
+ :few: "O {0} dni"
16
+ :one: "{0} deň"
17
+ :other: "O {0} dní"
18
+ :day-past:
19
+ :default:
20
+ :few: "Pred {0} dňami"
21
+ :one: "Pred {0} dňom"
22
+ :other: "Pred {0} dňami"
23
+ :hour:
24
+ :default:
25
+ :few: "{0} hodiny"
26
+ :one: "{0} hodina"
27
+ :other: "{0} hodín"
28
+ :short:
29
+ :few: "{0} h"
30
+ :one: "{0} h"
31
+ :other: "{0} h"
32
+ :hour-future:
33
+ :default:
34
+ :few: "O {0} hodiny"
35
+ :one: "O {0} hodinu"
36
+ :other: "O {0} hodín"
37
+ :hour-past:
38
+ :default:
39
+ :few: "Pred {0} hodinami"
40
+ :one: "Pred {0} hodinou"
41
+ :other: "Pred {0} hodinami"
42
+ :minute:
43
+ :default:
44
+ :few: "{0} minúty"
45
+ :one: "{0} minúta"
46
+ :other: "{0} minút"
47
+ :short:
48
+ :few: "{0} min"
49
+ :one: "{0} min"
50
+ :other: "{0} min"
51
+ :minute-future:
52
+ :default:
53
+ :few: "O {0} minúty"
54
+ :one: "O {0} minútu"
55
+ :other: "O {0} minút"
56
+ :minute-past:
57
+ :default:
58
+ :few: "Pred {0} minútami"
59
+ :one: "Pred {0} minútou"
60
+ :other: "Pred {0} minútami"
61
+ :month:
62
+ :default:
63
+ :few: "{0} mesiace"
64
+ :one: "{0} mesiac"
65
+ :other: "{0} mesiacov"
66
+ :short:
67
+ :few: "{0} mes."
68
+ :one: "{0} mes."
69
+ :other: "{0} mes."
70
+ :month-future:
71
+ :default:
72
+ :few: "O {0} mesiace"
73
+ :one: "O {0} mesiac"
74
+ :other: "O {0} mesiacov"
75
+ :month-past:
76
+ :default:
77
+ :few: "Pred {0} mesiacmi"
78
+ :one: "Pred {0} mesiacom"
79
+ :other: "Pred {0} mesiacmi"
80
+ :second:
81
+ :default:
82
+ :few: "{0} sekundy"
83
+ :one: "{0} sekunda"
84
+ :other: "{0} sekúnd"
85
+ :short:
86
+ :few: "{0} s"
87
+ :one: "{0} s"
88
+ :other: "{0} s"
89
+ :second-future:
90
+ :default:
91
+ :few: "O {0} sekundy"
92
+ :one: "O {0} sekundu"
93
+ :other: "O {0} sekúnd"
94
+ :second-past:
95
+ :default:
96
+ :few: "Pred {0} sekundami"
97
+ :one: "Pred {0} sekundou"
98
+ :other: "Pred {0} sekundami"
99
+ :week:
100
+ :default:
101
+ :few: "{0} týždne"
102
+ :one: "{0} týždeň"
103
+ :other: "{0} týždňov"
104
+ :short:
105
+ :few: "{0} týžd."
106
+ :one: "{0} týžd."
107
+ :other: "{0} týžd."
108
+ :week-future:
109
+ :default:
110
+ :few: "O {0} týždne"
111
+ :one: "O {0} týždeň"
112
+ :other: "O {0} týždňov"
113
+ :week-past:
114
+ :default:
115
+ :few: "Pred {0} týždňami"
116
+ :one: "Pred {0} týždňom"
117
+ :other: "Pred {0} týždňami"
118
+ :year:
119
+ :default:
120
+ :few: "{0} roky"
121
+ :one: "{0} rok"
122
+ :other: "{0} rokov"
123
+ :short:
124
+ :few: "{0} r."
125
+ :one: "{0} r."
126
+ :other: "{0} r."
127
+ :year-future:
128
+ :default:
129
+ :few: "O {0} roky"
130
+ :one: "O {0} rok"
131
+ :other: "O {0} rokov"
132
+ :year-past:
133
+ :default:
134
+ :few: "Pred {0} rokmi"
135
+ :one: "Pred {0} rokom"
136
+ :other: "Pred {0} rokmi"