when_exe 0.2.100 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/LICENSE.ja.txt +25 -25
  2. data/LICENSE.txt +31 -31
  3. data/bin/irb.rc +5 -0
  4. data/bin/locales.rb +2 -2
  5. data/bin/when.rb +16 -0
  6. data/bin/when.rb.config +7 -0
  7. data/lib/when_exe.rb +616 -14
  8. data/lib/when_exe/basictypes.rb +615 -0
  9. data/lib/when_exe/calendartypes.rb +1700 -0
  10. data/lib/when_exe/coordinates.rb +1936 -0
  11. data/lib/when_exe/core/compatibility.rb +54 -0
  12. data/lib/when_exe/core/duration.rb +72 -72
  13. data/lib/when_exe/core/extension.rb +382 -0
  14. data/lib/when_exe/ephemeris.rb +1845 -0
  15. data/lib/when_exe/googlecalendar.rb +140 -0
  16. data/lib/when_exe/icalendar.rb +1587 -0
  17. data/lib/when_exe/inspect.rb +1237 -0
  18. data/lib/when_exe/locales/af.rb +90 -0
  19. data/lib/when_exe/locales/ar.rb +145 -0
  20. data/lib/when_exe/locales/az.rb +90 -0
  21. data/lib/when_exe/locales/bg.rb +90 -0
  22. data/lib/when_exe/locales/bn.rb +94 -0
  23. data/lib/when_exe/locales/bs.rb +121 -0
  24. data/lib/when_exe/locales/ca.rb +92 -0
  25. data/lib/when_exe/locales/cs.rb +107 -0
  26. data/lib/when_exe/locales/cy.rb +150 -0
  27. data/lib/when_exe/locales/da.rb +84 -0
  28. data/lib/when_exe/locales/de.rb +92 -0
  29. data/lib/when_exe/locales/de_AT.rb +92 -0
  30. data/lib/when_exe/locales/de_CH.rb +92 -0
  31. data/lib/when_exe/locales/el.rb +93 -0
  32. data/lib/when_exe/locales/en.rb +88 -0
  33. data/lib/when_exe/locales/en_AU.rb +88 -0
  34. data/lib/when_exe/locales/en_CA.rb +88 -0
  35. data/lib/when_exe/locales/en_GB.rb +88 -0
  36. data/lib/when_exe/locales/en_IN.rb +88 -0
  37. data/lib/when_exe/locales/en_NZ.rb +88 -0
  38. data/lib/when_exe/locales/eo.rb +89 -0
  39. data/lib/when_exe/locales/es.rb +84 -0
  40. data/lib/when_exe/locales/es_419.rb +84 -0
  41. data/lib/when_exe/locales/es_AR.rb +84 -0
  42. data/lib/when_exe/locales/es_CL.rb +84 -0
  43. data/lib/when_exe/locales/es_CO.rb +84 -0
  44. data/lib/when_exe/locales/es_MX.rb +84 -0
  45. data/lib/when_exe/locales/es_PE.rb +85 -0
  46. data/lib/when_exe/locales/es_VE.rb +84 -0
  47. data/lib/when_exe/locales/et.rb +94 -0
  48. data/lib/when_exe/locales/eu.rb +95 -0
  49. data/lib/when_exe/locales/fa.rb +80 -0
  50. data/lib/when_exe/locales/fi.rb +89 -0
  51. data/lib/when_exe/locales/fr.rb +88 -0
  52. data/lib/when_exe/locales/fr_CA.rb +88 -0
  53. data/lib/when_exe/locales/fr_CH.rb +88 -0
  54. data/lib/when_exe/locales/gl.rb +81 -0
  55. data/lib/when_exe/locales/he.rb +84 -0
  56. data/lib/when_exe/locales/hi.rb +80 -0
  57. data/lib/when_exe/locales/hi_IN.rb +84 -0
  58. data/lib/when_exe/locales/hr.rb +128 -0
  59. data/lib/when_exe/locales/hu.rb +84 -0
  60. data/lib/when_exe/locales/id.rb +89 -0
  61. data/lib/when_exe/locales/is.rb +89 -0
  62. data/lib/when_exe/locales/it.rb +87 -0
  63. data/lib/when_exe/locales/it_CH.rb +87 -0
  64. data/lib/when_exe/locales/ja.rb +78 -0
  65. data/lib/when_exe/locales/kn.rb +86 -0
  66. data/lib/when_exe/locales/ko.rb +78 -0
  67. data/lib/when_exe/locales/links.rb +2342 -0
  68. data/lib/when_exe/locales/lo.rb +123 -0
  69. data/lib/when_exe/locales/locales.rb +91 -0
  70. data/lib/when_exe/locales/lt.rb +111 -0
  71. data/lib/when_exe/locales/lv.rb +118 -0
  72. data/lib/when_exe/locales/mk.rb +93 -0
  73. data/lib/when_exe/locales/mn.rb +80 -0
  74. data/lib/when_exe/locales/nb.rb +81 -0
  75. data/lib/when_exe/locales/ne.rb +81 -0
  76. data/lib/when_exe/locales/nl.rb +92 -0
  77. data/lib/when_exe/locales/nn.rb +73 -0
  78. data/lib/when_exe/locales/or.rb +84 -0
  79. data/lib/when_exe/locales/pl.rb +128 -0
  80. data/lib/when_exe/locales/pt.rb +88 -0
  81. data/lib/when_exe/locales/pt_BR.rb +88 -0
  82. data/lib/when_exe/locales/rm.rb +143 -0
  83. data/lib/when_exe/locales/ro.rb +105 -0
  84. data/lib/when_exe/locales/ru.rb +128 -0
  85. data/lib/when_exe/locales/sk.rb +109 -0
  86. data/lib/when_exe/locales/sl.rb +122 -0
  87. data/lib/when_exe/locales/sr.rb +122 -0
  88. data/lib/when_exe/locales/sv.rb +83 -0
  89. data/lib/when_exe/locales/sw.rb +89 -0
  90. data/lib/when_exe/locales/th.rb +78 -0
  91. data/lib/when_exe/locales/tl.rb +99 -0
  92. data/lib/when_exe/locales/tr.rb +96 -0
  93. data/lib/when_exe/locales/uk.rb +128 -0
  94. data/lib/when_exe/locales/uz.rb +128 -0
  95. data/lib/when_exe/locales/vi.rb +94 -0
  96. data/lib/when_exe/locales/wo.rb +82 -0
  97. data/lib/when_exe/locales/zh_CN.rb +77 -0
  98. data/lib/when_exe/locales/zh_HK.rb +77 -0
  99. data/lib/when_exe/locales/zh_TW.rb +77 -0
  100. data/lib/when_exe/mini_application.rb +252 -0
  101. data/lib/when_exe/parts/enumerator.rb +472 -0
  102. data/lib/when_exe/parts/geometric_complex.rb +379 -0
  103. data/lib/when_exe/parts/locale.rb +513 -0
  104. data/lib/when_exe/parts/method_cash.rb +207 -0
  105. data/lib/when_exe/parts/resource.rb +806 -0
  106. data/lib/when_exe/parts/timezone.rb +182 -0
  107. data/lib/when_exe/region/bahai.rb +145 -0
  108. data/lib/when_exe/region/balinese.rb +627 -0
  109. data/lib/when_exe/region/chinese.rb +896 -0
  110. data/lib/when_exe/region/chinese_calendar.rb +919 -0
  111. data/lib/when_exe/region/chinese_epoch.rb +1245 -0
  112. data/lib/when_exe/region/christian.rb +644 -0
  113. data/lib/when_exe/region/far_east.rb +192 -0
  114. data/lib/when_exe/region/french.rb +66 -0
  115. data/lib/when_exe/region/geologicalage.rb +639 -0
  116. data/lib/when_exe/region/indian.rb +1066 -0
  117. data/lib/when_exe/region/iranian.rb +66 -0
  118. data/lib/when_exe/region/islamic.rb +105 -0
  119. data/lib/when_exe/region/japanese.rb +851 -0
  120. data/lib/when_exe/region/japanese_notes.rb +964 -0
  121. data/lib/when_exe/region/japanese_residues.rb +1149 -0
  122. data/lib/when_exe/region/javanese.rb +228 -0
  123. data/lib/when_exe/region/jewish.rb +127 -0
  124. data/lib/when_exe/region/korean.rb +267 -0
  125. data/lib/when_exe/region/m17n.rb +115 -0
  126. data/lib/when_exe/region/martian.rb +215 -0
  127. data/lib/when_exe/region/mayan.rb +122 -0
  128. data/lib/when_exe/region/moon.rb +333 -0
  129. data/lib/when_exe/region/nihon_shoki.rb +73 -0
  130. data/lib/when_exe/region/planets.rb +585 -0
  131. data/lib/when_exe/region/pope.rb +298 -0
  132. data/lib/when_exe/region/residue.rb +229 -0
  133. data/lib/when_exe/region/roman.rb +325 -0
  134. data/lib/when_exe/region/ryukyu.rb +98 -0
  135. data/lib/when_exe/region/shire.rb +254 -0
  136. data/lib/when_exe/region/sun.rb +210 -0
  137. data/lib/when_exe/region/thai.rb +227 -0
  138. data/lib/when_exe/region/tibetan.rb +233 -0
  139. data/lib/when_exe/region/v50.rb +111 -0
  140. data/lib/when_exe/region/vietnamese.rb +173 -0
  141. data/lib/when_exe/region/world.rb +197 -0
  142. data/lib/when_exe/timestandard.rb +547 -0
  143. data/lib/when_exe/tmduration.rb +330 -330
  144. data/lib/when_exe/tmobjects.rb +1295 -0
  145. data/lib/when_exe/tmposition.rb +1955 -0
  146. data/lib/when_exe/tmreference.rb +1547 -0
  147. data/lib/when_exe/version.rb +10 -3
  148. data/link_to_online_documents +4 -0
  149. data/test/examples/JapanHolidays.ics +456 -0
  150. data/test/examples/Millennium.ics +17 -0
  151. data/test/examples/NewYork.ics +61 -0
  152. data/test/examples/Residue.m17n +135 -0
  153. data/test/examples/Spatial.m17n +179 -0
  154. data/test/examples/Terms.m17n +39 -0
  155. data/test/examples/Test.ics +53 -0
  156. data/test/examples/USA-DST.ics +61 -0
  157. data/test/examples/geometric_complex.rb +41 -0
  158. data/test/examples/sample.xml +14 -0
  159. data/test/examples/today.rb +61 -0
  160. data/test/test.rb +54 -19
  161. data/test/test.rb.config +1 -0
  162. data/test/test/basictypes.rb +368 -0
  163. data/test/test/calendartypes.rb +57 -0
  164. data/test/test/coordinates.rb +380 -0
  165. data/test/test/ephemeris.rb +127 -0
  166. data/test/test/googlecalendar.rb +167 -0
  167. data/test/test/icalendar.rb +848 -0
  168. data/test/test/inspect.rb +115 -0
  169. data/test/test/parts.rb +480 -0
  170. data/test/test/region/chinese.rb +161 -0
  171. data/test/test/region/french.rb +33 -0
  172. data/test/test/region/geologicalage.rb +14 -0
  173. data/test/test/region/indian.rb +55 -0
  174. data/test/test/region/iran.rb +54 -0
  175. data/test/test/region/islamic.rb +18 -0
  176. data/test/test/region/japanese.rb +62 -0
  177. data/test/test/region/jewish.rb +61 -0
  178. data/test/test/region/m17n.rb +181 -0
  179. data/test/test/region/mayan.rb +78 -0
  180. data/test/test/region/moon.rb +14 -0
  181. data/test/test/region/planets.rb +14 -0
  182. data/test/test/region/residue.rb +123 -0
  183. data/test/test/region/sun.rb +14 -0
  184. data/test/test/region/thai.rb +94 -0
  185. data/test/test/region/tibetan.rb +30 -0
  186. data/test/test/tmobjects.rb +356 -57
  187. data/test/test/tmposition.rb +237 -0
  188. data/test/test/tmreference.rb +95 -0
  189. data/when_exe.gemspec +2 -2
  190. metadata +187 -7
  191. data/doc/COPYING +0 -31
  192. data/doc/COPYING.ja +0 -25
  193. data/doc/document_url +0 -1
@@ -0,0 +1,80 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ Copyright (C) 2012-2013 Takashi SUGA
4
+
5
+ You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
6
+ =end
7
+
8
+ module When::BasicTypes
9
+ class M17n
10
+
11
+ # from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hi.yml
12
+
13
+ Locale_hi =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "जन",
19
+ "फर",
20
+ "मार्च",
21
+ "अप्रै",
22
+ "मई",
23
+ "जून",
24
+ "जुला",
25
+ "अग",
26
+ "सितं",
27
+ "अक्टू",
28
+ "नवं",
29
+ "दिस"],
30
+ "day_names"=>
31
+ ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"],
32
+ "formats"=>{"default"=>"%d-%m-%Y", "long"=>"%B %d, %Y", "short"=>"%b %d"},
33
+ "month_names"=>
34
+ [nil,
35
+ "जनवरी",
36
+ "फरवरी",
37
+ "मार्च",
38
+ "अप्रैल",
39
+ "मई",
40
+ "जून",
41
+ "जुलाई",
42
+ "अगस्त",
43
+ "सितंबर",
44
+ "अक्टूबर",
45
+ "नवंबर",
46
+ "दिसंबर"],
47
+ "order"=>[:day, :month, :year]},
48
+ "time"=>
49
+ {"am"=>"पूर्वाह्न",
50
+ "formats"=>
51
+ {"default"=>"%a, %d %b %Y %H:%M:%S %z",
52
+ "long"=>"%B %d, %Y %H:%M",
53
+ "short"=>"%d %b %H:%M",
54
+ "time"=>"%H:%M:%S %z"},
55
+ "pm"=>"अपराह्न"},
56
+ "datetime"=>
57
+ {"distance_in_words"=>
58
+ {"about_x_hours"=>{"one"=>"लगभग एक घंटा", "other"=>"लगभग %{count} घंटा"},
59
+ "about_x_months"=>{"one"=>"लगभग 1 महीना", "other"=>"लगभग %{count} महीना"},
60
+ "about_x_years"=>{"one"=>"लगभग 1 साल", "other"=>"लगभग %{count} साल"},
61
+ "almost_x_years"=>{"one"=>"लगभग एक साल", "other"=>"लगभग %{count} साल"},
62
+ "half_a_minute"=>"एक आधा मिनट",
63
+ "less_than_x_minutes"=>
64
+ {"one"=>"एक मिनट से कम", "other"=>"%{count} मिनट से कम"},
65
+ "less_than_x_seconds"=>
66
+ {"one"=>"एक सेकेंड से कम", "other"=>"%{count} सेकेंड से कम"},
67
+ "over_x_years"=>{"one"=>"एक साल के ऊपर", "other"=>"%{count} साल से अधिक"},
68
+ "x_days"=>{"one"=>"एक दिन", "other"=>"%{count} दिन"},
69
+ "x_minutes"=>{"one"=>"एक मिनट", "other"=>"%{count} मिनट"},
70
+ "x_months"=>{"one"=>"एक महीना", "other"=>"%{count} महीना"},
71
+ "x_seconds"=>{"one"=>"एक सेकेंड", "other"=>"%{count} सेकेंड"}},
72
+ "prompts"=>
73
+ {"day"=>"दिन",
74
+ "hour"=>"घंटा",
75
+ "minute"=>"मिनट",
76
+ "month"=>"माह",
77
+ "second"=>"सेकेंड",
78
+ "year"=>"वर्ष"}}}
79
+ end
80
+ end
@@ -0,0 +1,84 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ Copyright (C) 2012-2013 Takashi SUGA
4
+
5
+ You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
6
+ =end
7
+
8
+ module When::BasicTypes
9
+ class M17n
10
+
11
+ # from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hi-IN.yml
12
+
13
+ Locale_hi_IN =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "Jan",
19
+ "Feb",
20
+ "Mar",
21
+ "Apr",
22
+ "May",
23
+ "Jun",
24
+ "Jul",
25
+ "Aug",
26
+ "Sep",
27
+ "Oct",
28
+ "Nov",
29
+ "Dec"],
30
+ "day_names"=>
31
+ ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"],
32
+ "formats"=>{"default"=>"%d-%m-%Y", "long"=>"%B %d, %Y", "short"=>"%b %d"},
33
+ "month_names"=>
34
+ [nil,
35
+ "जनवरी",
36
+ "फरवरी",
37
+ "मार्च",
38
+ "अप्रैल",
39
+ "मई",
40
+ "जून",
41
+ "जुलाई",
42
+ "अगस्त",
43
+ "सितंबर",
44
+ "अक्टूबर",
45
+ "नवंबर",
46
+ "दिसंबर"],
47
+ "order"=>[:day, :month, :year]},
48
+ "time"=>
49
+ {"am"=>"am",
50
+ "formats"=>
51
+ {"default"=>"%a, %d %b %Y %H:%M:%S %z",
52
+ "long"=>"%B %d, %Y %H:%M",
53
+ "short"=>"%d %b %H:%M",
54
+ "time"=>"%H:%M:%S %z"},
55
+ "pm"=>"pm"},
56
+ "datetime"=>
57
+ {"distance_in_words"=>
58
+ {"about_x_hours"=>
59
+ {"one"=>"लग - भग एक घंटा", "other"=>"लग - भग %{count} घंटा"},
60
+ "about_x_months"=>
61
+ {"one"=>"लग - भग 1 महीना", "other"=>"लग - भग %{count} महीना"},
62
+ "about_x_years"=>
63
+ {"one"=>"लग - भग 1 साल", "other"=>"लग - भग %{count} साल"},
64
+ "almost_x_years"=>
65
+ {"one"=>"लग - भग एक साल", "other"=>"लग - भग %{count} साल"},
66
+ "half_a_minute"=>"एक आधा मिनट",
67
+ "less_than_x_minutes"=>
68
+ {"one"=>"एक मिनट से कम", "other"=>"%{count} मिनट से कम"},
69
+ "less_than_x_seconds"=>
70
+ {"one"=>"एक सेकंड से कम", "other"=>"%{count} सेकंड से कम"},
71
+ "over_x_years"=>{"one"=>"एक साल के ऊपर", "other"=>"%{count} साल के ऊपर"},
72
+ "x_days"=>{"one"=>"एक दिन", "other"=>"%{count} दिन"},
73
+ "x_minutes"=>{"one"=>"एक मिनट", "other"=>"%{count} मिनट"},
74
+ "x_months"=>{"one"=>"एक महीना", "other"=>"%{count} महीना"},
75
+ "x_seconds"=>{"one"=>"एक सेकंड", "other"=>"%{count} सेकंड"}},
76
+ "prompts"=>
77
+ {"day"=>"दिन",
78
+ "hour"=>"घंटा",
79
+ "minute"=>"क्षण",
80
+ "month"=>"माह",
81
+ "second"=>"सेकंड",
82
+ "year"=>"वर्ष"}}}
83
+ end
84
+ end
@@ -0,0 +1,128 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ Copyright (C) 2012-2013 Takashi SUGA
4
+
5
+ You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
6
+ =end
7
+
8
+ module When::BasicTypes
9
+ class M17n
10
+
11
+ # from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hr.yml
12
+
13
+ Locale_hr =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "Sij",
19
+ "Vel",
20
+ "Ožu",
21
+ "Tra",
22
+ "Svi",
23
+ "Lip",
24
+ "Srp",
25
+ "Kol",
26
+ "Ruj",
27
+ "Lis",
28
+ "Stu",
29
+ "Pro"],
30
+ "day_names"=>
31
+ ["Nedjelja",
32
+ "Ponedjeljak",
33
+ "Utorak",
34
+ "Srijeda",
35
+ "Četvrtak",
36
+ "Petak",
37
+ "Subota"],
38
+ "formats"=>{"default"=>"%d.%m.%Y.", "long"=>"%B %e, %Y", "short"=>"%e %b"},
39
+ "month_names"=>
40
+ [nil,
41
+ "Siječanj",
42
+ "Veljača",
43
+ "Ožujak",
44
+ "Travanj",
45
+ "Svibanj",
46
+ "Lipanj",
47
+ "Srpanj",
48
+ "Kolovoz",
49
+ "Rujan",
50
+ "Listopad",
51
+ "Studeni",
52
+ "Prosinac"],
53
+ "order"=>[:day, :month, :year]},
54
+ "time"=>
55
+ {"am"=>"AM",
56
+ "formats"=>
57
+ {"default"=>"%a %b %d %H:%M:%S %Z %Y",
58
+ "long"=>"%B %d, %Y %H:%M",
59
+ "short"=>"%d %b %H:%M",
60
+ "time"=>"%H:%M:%S %Z"},
61
+ "pm"=>"PM"},
62
+ "datetime"=>
63
+ {"distance_in_words"=>
64
+ {"about_x_hours"=>
65
+ {"one"=>"oko %{count} sat",
66
+ "few"=>"oko %{count} sata",
67
+ "many"=>"oko %{count} sati",
68
+ "other"=>"oko %{count} sati"},
69
+ "about_x_months"=>
70
+ {"one"=>"oko %{count} mjesec",
71
+ "few"=>"oko %{count} mjeseca",
72
+ "many"=>"oko %{count} mjeseci",
73
+ "other"=>"oko %{count} mjeseci"},
74
+ "about_x_years"=>
75
+ {"one"=>"oko %{count} godine",
76
+ "few"=>"oko %{count} godine",
77
+ "many"=>"oko %{count} godina",
78
+ "other"=>"oko %{count} godina"},
79
+ "almost_x_years"=>
80
+ {"one"=>"skoro %{count} godina",
81
+ "few"=>"skoro %{count} godine",
82
+ "many"=>"skoro %{count} godina",
83
+ "other"=>"skoro %{count} godina"},
84
+ "half_a_minute"=>"pola minute",
85
+ "less_than_x_minutes"=>
86
+ {"one"=>"manje od %{count} minute",
87
+ "few"=>"manje od %{count} minute",
88
+ "many"=>"manje od %{count} minuta",
89
+ "other"=>"manje od %{count} minuta"},
90
+ "less_than_x_seconds"=>
91
+ {"one"=>"manje od %{count} sekunde",
92
+ "few"=>"manje od %{count} sekunde",
93
+ "many"=>"manje od %{count} sekundi",
94
+ "other"=>"manje od %{count} sekundi"},
95
+ "over_x_years"=>
96
+ {"one"=>"preko %{count} godine",
97
+ "few"=>"preko %{count} godine",
98
+ "many"=>"preko %{count} godina",
99
+ "other"=>"preko %{count} godina"},
100
+ "x_days"=>
101
+ {"one"=>"%{count} dan",
102
+ "few"=>"%{count} dana",
103
+ "many"=>"%{count} dana",
104
+ "other"=>"%{count} dana"},
105
+ "x_minutes"=>
106
+ {"one"=>"%{count} minuta",
107
+ "few"=>"%{count} minute",
108
+ "many"=>"%{count} minuta",
109
+ "other"=>"%{count} minuta"},
110
+ "x_months"=>
111
+ {"one"=>"%{count} mjesec",
112
+ "few"=>"%{count} mjeseca",
113
+ "many"=>"%{count} mjeseci",
114
+ "other"=>"%{count} mjeseci"},
115
+ "x_seconds"=>
116
+ {"one"=>"%{count} sekunda",
117
+ "few"=>"%{count} sekunde",
118
+ "many"=>"%{count} sekundi",
119
+ "other"=>"%{count} sekundi"}},
120
+ "prompts"=>
121
+ {"day"=>"Dan",
122
+ "hour"=>"Sat",
123
+ "minute"=>"Minuta",
124
+ "month"=>"Mjesec",
125
+ "second"=>"Sekunde",
126
+ "year"=>"Godina"}}}
127
+ end
128
+ end
@@ -0,0 +1,84 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ Copyright (C) 2012-2013 Takashi SUGA
4
+
5
+ You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
6
+ =end
7
+
8
+ module When::BasicTypes
9
+ class M17n
10
+
11
+ # from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hu.yml
12
+
13
+ Locale_hu =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["v.", "h.", "k.", "sze.", "cs.", "p.", "szo."],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "jan.",
19
+ "febr.",
20
+ "márc.",
21
+ "ápr.",
22
+ "máj.",
23
+ "jún.",
24
+ "júl.",
25
+ "aug.",
26
+ "szept.",
27
+ "okt.",
28
+ "nov.",
29
+ "dec."],
30
+ "day_names"=>
31
+ ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"],
32
+ "formats"=>
33
+ {"default"=>"%Y.%m.%d.", "long"=>"%Y. %B %e.", "short"=>"%b %e."},
34
+ "month_names"=>
35
+ [nil,
36
+ "január",
37
+ "február",
38
+ "március",
39
+ "április",
40
+ "május",
41
+ "június",
42
+ "július",
43
+ "augusztus",
44
+ "szeptember",
45
+ "október",
46
+ "november",
47
+ "december"],
48
+ "order"=>[:year, :month, :day]},
49
+ "time"=>
50
+ {"am"=>"de.",
51
+ "formats"=>
52
+ {"default"=>"%Y. %b %e., %H:%M",
53
+ "long"=>"%Y. %B %e., %A, %H:%M",
54
+ "short"=>"%b %e., %H:%M",
55
+ "time"=>"%H:%M"},
56
+ "pm"=>"du."},
57
+ "datetime"=>
58
+ {"distance_in_words"=>
59
+ {"about_x_hours"=>{"one"=>"kb 1 óra", "other"=>"kb %{count} óra"},
60
+ "about_x_months"=>{"one"=>"kb 1 hónap", "other"=>"kb %{count} hónap"},
61
+ "about_x_years"=>{"one"=>"kb 1 év", "other"=>"kb %{count} év"},
62
+ "almost_x_years"=>{"one"=>"majdnem 1 év", "other"=>"majdnem %{count} év"},
63
+ "half_a_minute"=>"fél perc",
64
+ "less_than_x_minutes"=>
65
+ {"one"=>"kevesebb, mint 1 perc",
66
+ "other"=>"kevesebb, mint %{count} perc"},
67
+ "less_than_x_seconds"=>
68
+ {"one"=>"kevesebb, mint 1 másodperc",
69
+ "other"=>"kevesebb, mint %{count} másodperc"},
70
+ "over_x_years"=>
71
+ {"one"=>"több, mint 1 év", "other"=>"több, mint %{count} év"},
72
+ "x_days"=>{"one"=>"1 nap", "other"=>"%{count} nap"},
73
+ "x_minutes"=>{"one"=>"1 perc", "other"=>"%{count} perc"},
74
+ "x_months"=>{"one"=>"1 hónap", "other"=>"%{count} hónap"},
75
+ "x_seconds"=>{"one"=>"1 másodperc", "other"=>"%{count} másodperc"}},
76
+ "prompts"=>
77
+ {"day"=>"Nap",
78
+ "hour"=>"Óra",
79
+ "minute"=>"Perc",
80
+ "month"=>"Hónap",
81
+ "second"=>"Másodperc",
82
+ "year"=>"Év"}}}
83
+ end
84
+ end
@@ -0,0 +1,89 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ Copyright (C) 2012-2013 Takashi SUGA
4
+
5
+ You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
6
+ =end
7
+
8
+ module When::BasicTypes
9
+ class M17n
10
+
11
+ # from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/id.yml
12
+
13
+ Locale_id =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "Jan",
19
+ "Feb",
20
+ "Mar",
21
+ "Apr",
22
+ "Mei",
23
+ "Jun",
24
+ "Jul",
25
+ "Agu",
26
+ "Sep",
27
+ "Okt",
28
+ "Nov",
29
+ "Des"],
30
+ "day_names"=>
31
+ ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jum'at", "Sabtu"],
32
+ "formats"=>
33
+ {"default"=>"%d %B %Y", "long"=>"%A, %d %B %Y", "short"=>"%d.%m.%Y"},
34
+ "month_names"=>
35
+ [nil,
36
+ "Januari",
37
+ "Februari",
38
+ "Maret",
39
+ "April",
40
+ "Mei",
41
+ "Juni",
42
+ "Juli",
43
+ "Agustus",
44
+ "September",
45
+ "Oktober",
46
+ "November",
47
+ "Desember"],
48
+ "order"=>[:day, :month, :year]},
49
+ "time"=>
50
+ {"am"=>"am",
51
+ "formats"=>
52
+ {"default"=>"%a, %d %b %Y %H.%M.%S %z",
53
+ "long"=>"%d %B %Y %H.%M",
54
+ "short"=>"%d %b %H.%M",
55
+ "time"=>"%H.%M.%S %z"},
56
+ "pm"=>"pm"},
57
+ "datetime"=>
58
+ {"distance_in_words"=>
59
+ {"about_x_hours"=>
60
+ {"one"=>"sekitar satu jam", "other"=>"sekitar %{count} jam"},
61
+ "about_x_months"=>
62
+ {"one"=>"sekitar sebulan", "other"=>"sekitar %{count} bulan"},
63
+ "about_x_years"=>{"one"=>"setahun", "other"=>"noin %{count} tahun"},
64
+ "almost_x_years"=>
65
+ {"one"=>"hampir setahun", "other"=>"hampir %{count} tahun"},
66
+ "half_a_minute"=>"setengah menit",
67
+ "less_than_x_minutes"=>
68
+ {"one"=>"kurang dari 1 menit",
69
+ "other"=>"kurang dari %{count} menit",
70
+ "zero"=>"kurang dari 1 menit"},
71
+ "less_than_x_seconds"=>
72
+ {"one"=>"kurang dari 1 detik",
73
+ "other"=>"kurang dari %{count} detik",
74
+ "zero"=>"kurang dari 1 detik"},
75
+ "over_x_years"=>
76
+ {"one"=>"lebih dari setahun", "other"=>"lebih dari %{count} tahun"},
77
+ "x_days"=>{"one"=>"sehari", "other"=>"%{count} hari"},
78
+ "x_minutes"=>{"one"=>"satu menit", "other"=>"%{count} menit"},
79
+ "x_months"=>{"one"=>"sebulan", "other"=>"%{count} bulan"},
80
+ "x_seconds"=>{"one"=>"satu detik", "other"=>"%{count} detik"}},
81
+ "prompts"=>
82
+ {"day"=>"Hari",
83
+ "hour"=>"Jam",
84
+ "minute"=>"Menit",
85
+ "month"=>"Bulan",
86
+ "second"=>"Detik",
87
+ "year"=>"Tahun"}}}
88
+ end
89
+ end