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,3 +1,4 @@
1
1
  ---
2
2
  :sq: ! '{ :''sq'' => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda
3
- { |n| 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_f == 1 ? :one : :other } } } } }'
@@ -1,108 +1,108 @@
1
- ---
2
- :sq:
3
- :units:
4
- :day:
5
- :default:
6
- :one: ! '{0} ditë'
7
- :other: ! '{0} ditë'
8
- :short:
9
- :one: ! '{0} day'
10
- :other: ! '{0} days'
11
- :day-future:
12
- :default:
13
- :one: In {0} day
14
- :other: In {0} days
15
- :day-past:
16
- :default:
17
- :one: ! '{0} day ago'
18
- :other: ! '{0} days ago'
19
- :hour:
20
- :default:
21
- :one: ! '{0} orë'
22
- :other: ! '{0} orë'
23
- :short:
24
- :one: ! '{0} hr'
25
- :other: ! '{0} hrs'
26
- :hour-future:
27
- :default:
28
- :one: In {0} hour
29
- :other: In {0} hours
30
- :hour-past:
31
- :default:
32
- :one: ! '{0} hour ago'
33
- :other: ! '{0} hours ago'
34
- :minute:
35
- :default:
36
- :one: ! '{0} minutë'
37
- :other: ! '{0} minuta'
38
- :short:
39
- :one: ! '{0} min'
40
- :other: ! '{0} mins'
41
- :minute-future:
42
- :default:
43
- :one: In {0} minute
44
- :other: In {0} minutes
45
- :minute-past:
46
- :default:
47
- :one: ! '{0} minute ago'
48
- :other: ! '{0} minutes ago'
49
- :month:
50
- :default:
51
- :one: ! '{0} muaj'
52
- :other: ! '{0} muaj'
53
- :short:
54
- :one: ! '{0} mth'
55
- :other: ! '{0} mths'
56
- :month-future:
57
- :default:
58
- :one: In {0} month
59
- :other: In {0} months
60
- :month-past:
61
- :default:
62
- :one: ! '{0} month ago'
63
- :other: ! '{0} months ago'
64
- :second:
65
- :default:
66
- :one: ! '{0} sekondë'
67
- :other: ! '{0} sekonda'
68
- :short:
69
- :one: ! '{0} sec'
70
- :other: ! '{0} secs'
71
- :second-future:
72
- :default:
73
- :one: In {0} second
74
- :other: In {0} seconds
75
- :second-past:
76
- :default:
77
- :one: ! '{0} second ago'
78
- :other: ! '{0} seconds ago'
79
- :week:
80
- :default:
81
- :one: ! '{0} javë'
82
- :other: ! '{0} javë'
83
- :short:
84
- :one: ! '{0} wk'
85
- :other: ! '{0} wks'
86
- :week-future:
87
- :default:
88
- :one: In {0} week
89
- :other: In {0} weeks
90
- :week-past:
91
- :default:
92
- :one: ! '{0} week ago'
93
- :other: ! '{0} weeks ago'
94
- :year:
95
- :default:
96
- :one: ! '{0} vit'
97
- :other: ! '{0} vjet'
98
- :short:
99
- :one: ! '{0} yr'
100
- :other: ! '{0} yrs'
101
- :year-future:
102
- :default:
103
- :one: In {0} year
104
- :other: In {0} years
105
- :year-past:
106
- :default:
107
- :one: ! '{0} year ago'
108
- :other: ! '{0} years ago'
1
+ ---
2
+ :sq:
3
+ :units:
4
+ :day:
5
+ :default:
6
+ :one: "{0} ditë"
7
+ :other: "{0} ditë"
8
+ :short:
9
+ :one: "{0} day"
10
+ :other: "{0} days"
11
+ :day-future:
12
+ :default:
13
+ :one: "In {0} day"
14
+ :other: "In {0} days"
15
+ :day-past:
16
+ :default:
17
+ :one: "{0} day ago"
18
+ :other: "{0} days ago"
19
+ :hour:
20
+ :default:
21
+ :one: "{0} orë"
22
+ :other: "{0} orë"
23
+ :short:
24
+ :one: "{0} hr"
25
+ :other: "{0} hrs"
26
+ :hour-future:
27
+ :default:
28
+ :one: "In {0} hour"
29
+ :other: "In {0} hours"
30
+ :hour-past:
31
+ :default:
32
+ :one: "{0} hour ago"
33
+ :other: "{0} hours ago"
34
+ :minute:
35
+ :default:
36
+ :one: "{0} minutë"
37
+ :other: "{0} minuta"
38
+ :short:
39
+ :one: "{0} min"
40
+ :other: "{0} mins"
41
+ :minute-future:
42
+ :default:
43
+ :one: "In {0} minute"
44
+ :other: "In {0} minutes"
45
+ :minute-past:
46
+ :default:
47
+ :one: "{0} minute ago"
48
+ :other: "{0} minutes ago"
49
+ :month:
50
+ :default:
51
+ :one: "{0} muaj"
52
+ :other: "{0} muaj"
53
+ :short:
54
+ :one: "{0} mth"
55
+ :other: "{0} mths"
56
+ :month-future:
57
+ :default:
58
+ :one: "In {0} month"
59
+ :other: "In {0} months"
60
+ :month-past:
61
+ :default:
62
+ :one: "{0} month ago"
63
+ :other: "{0} months ago"
64
+ :second:
65
+ :default:
66
+ :one: "{0} sekondë"
67
+ :other: "{0} sekonda"
68
+ :short:
69
+ :one: "{0} sec"
70
+ :other: "{0} secs"
71
+ :second-future:
72
+ :default:
73
+ :one: "In {0} second"
74
+ :other: "In {0} seconds"
75
+ :second-past:
76
+ :default:
77
+ :one: "{0} second ago"
78
+ :other: "{0} seconds ago"
79
+ :week:
80
+ :default:
81
+ :one: "{0} javë"
82
+ :other: "{0} javë"
83
+ :short:
84
+ :one: "{0} wk"
85
+ :other: "{0} wks"
86
+ :week-future:
87
+ :default:
88
+ :one: "In {0} week"
89
+ :other: "In {0} weeks"
90
+ :week-past:
91
+ :default:
92
+ :one: "{0} week ago"
93
+ :other: "{0} weeks ago"
94
+ :year:
95
+ :default:
96
+ :one: "{0} vit"
97
+ :other: "{0} vjet"
98
+ :short:
99
+ :one: "{0} yr"
100
+ :other: "{0} yrs"
101
+ :year-future:
102
+ :default:
103
+ :one: "In {0} year"
104
+ :other: "In {0} years"
105
+ :year-past:
106
+ :default:
107
+ :one: "{0} year ago"
108
+ :other: "{0} years ago"
@@ -1,13 +1,9 @@
1
1
  ---
2
2
  :sr: ! '{ :''sr'' => { :i18n => { :plural => { :keys => [:one, :few, :other], :rule
3
- => lambda { |n| ((((v = n.to_s.split(".")[1] || []).count > 1 ? v.last.length :
4
- 0) == 0 && n.to_i % 10 == 1 && n.to_i % 100 != 11) || (((f = n.to_s.split(".")[1]
5
- || []).count > 1 ? f.last.to_i : 0) % 10 == 1 && ((f = n.to_s.split(".")[1] || []).count
6
- > 1 ? f.last.to_i : 0) % 100 != 11)) ? :one : ((((v = n.to_s.split(".")[1] || []).count
7
- > 1 ? v.last.length : 0) == 0 && (((n.to_i % 10) % 1).zero? && (2..4).include?(n.to_i
8
- % 10)) && (((n.to_i % 100) % 1).zero? && !(12..14).include?(n.to_i % 100))) || ((((((f
9
- = n.to_s.split(".")[1] || []).count > 1 ? f.last.to_i : 0) % 10) % 1).zero? && (2..4).include?(((f
10
- = n.to_s.split(".")[1] || []).count > 1 ? f.last.to_i : 0) % 10)) && (((((f = n.to_s.split(".")[1]
11
- || []).count > 1 ? f.last.to_i : 0) % 100) % 1).zero? && !(12..14).include?(((f
12
- = n.to_s.split(".")[1] || []).count > 1 ? f.last.to_i : 0) % 100)))) ? :few : :other
13
- } } } } }'
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 &&
5
+ n.to_i % 100 != 11) || (((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 10 == 1 && ((f
6
+ = n.to_s.split(".")[1]) ? f.to_i : 0) % 100 != 11)) ? :one : ((((v = n.to_s.split(".")[1])
7
+ ? v.length : 0) == 0 && (2..4).include?(n.to_i % 10) && !(12..14).include?(n.to_i
8
+ % 100)) || ((2..4).include?(((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 10) && !(12..14).include?(((f
9
+ = n.to_s.split(".")[1]) ? f.to_i : 0) % 100))) ? :few : :other } } } } }'
@@ -1,164 +1,164 @@
1
- ---
2
- :sr:
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
+ :sr:
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} година"