when_exe 0.2.100 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,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/es-MX.yml
12
+
13
+ Locale_es_MX =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "ene",
19
+ "feb",
20
+ "mar",
21
+ "abr",
22
+ "may",
23
+ "jun",
24
+ "jul",
25
+ "ago",
26
+ "sep",
27
+ "oct",
28
+ "nov",
29
+ "dic"],
30
+ "day_names"=>
31
+ ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
32
+ "formats"=>
33
+ {"default"=>"%d/%m/%Y", "long"=>"%A, %d de %B de %Y", "short"=>"%d de %b"},
34
+ "month_names"=>
35
+ [nil,
36
+ "enero",
37
+ "febrero",
38
+ "marzo",
39
+ "abril",
40
+ "mayo",
41
+ "junio",
42
+ "julio",
43
+ "agosto",
44
+ "septiembre",
45
+ "octubre",
46
+ "noviembre",
47
+ "diciembre"],
48
+ "order"=>[:day, :month, :year]},
49
+ "time"=>
50
+ {"am"=>"am",
51
+ "formats"=>
52
+ {"default"=>"%a, %d de %b de %Y a las %H:%M:%S %Z",
53
+ "long"=>"%A, %d de %B de %Y a las %I:%M %p",
54
+ "short"=>"%d de %b a las %H:%M hrs",
55
+ "time"=>"%H:%M:%S %Z"},
56
+ "pm"=>"pm"},
57
+ "datetime"=>
58
+ {"distance_in_words"=>
59
+ {"about_x_hours"=>
60
+ {"one"=>"cerca de 1 hora", "other"=>"cerca de %{count} horas"},
61
+ "about_x_months"=>
62
+ {"one"=>"cerca de 1 mes", "other"=>"cerca de %{count} meses"},
63
+ "about_x_years"=>
64
+ {"one"=>"cerca de 1 año", "other"=>"cerca de %{count} años"},
65
+ "almost_x_years"=>{"one"=>"casi 1 año", "other"=>"casi %{count} años"},
66
+ "half_a_minute"=>"medio minuto",
67
+ "less_than_x_minutes"=>
68
+ {"one"=>"menos de 1 minuto", "other"=>"menos de %{count} minutos"},
69
+ "less_than_x_seconds"=>
70
+ {"one"=>"menos de 1 segundo", "other"=>"menos de %{count} segundos"},
71
+ "over_x_years"=>{"one"=>"más de 1 año", "other"=>"más de %{count} años"},
72
+ "x_days"=>{"one"=>"1 día", "other"=>"%{count} días"},
73
+ "x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minutos"},
74
+ "x_months"=>{"one"=>"1 mes", "other"=>"%{count} meses"},
75
+ "x_seconds"=>{"one"=>"1 segundo", "other"=>"%{count} segundos"}},
76
+ "prompts"=>
77
+ {"day"=>"Día",
78
+ "hour"=>"Hora",
79
+ "minute"=>"Minuto",
80
+ "month"=>"Mes",
81
+ "second"=>"Segundos",
82
+ "year"=>"Año"}}}
83
+ end
84
+ end
@@ -0,0 +1,85 @@
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/es-PE.yml
12
+
13
+ Locale_es_PE =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "ene",
19
+ "feb",
20
+ "mar",
21
+ "abr",
22
+ "may",
23
+ "jun",
24
+ "jul",
25
+ "ago",
26
+ "sep",
27
+ "oct",
28
+ "nov",
29
+ "dic"],
30
+ "day_names"=>
31
+ ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
32
+ "formats"=>
33
+ {"default"=>"%d/%m/%Y",
34
+ "long"=>"%A, %d de %B del %Y",
35
+ "short"=>"%d de %b"},
36
+ "month_names"=>
37
+ [nil,
38
+ "enero",
39
+ "febrero",
40
+ "marzo",
41
+ "abril",
42
+ "mayo",
43
+ "junio",
44
+ "julio",
45
+ "agosto",
46
+ "septiembre",
47
+ "octubre",
48
+ "noviembre",
49
+ "diciembre"],
50
+ "order"=>[:day, :month, :year]},
51
+ "time"=>
52
+ {"am"=>"am",
53
+ "formats"=>
54
+ {"default"=>"%a, %d de %b del %Y a las %H:%M:%S %Z",
55
+ "long"=>"%A, %d de %B del %Y a las %I:%M %p",
56
+ "short"=>"%d de %b a las %H:%M hrs",
57
+ "time"=>"%H:%M:%S %Z"},
58
+ "pm"=>"pm"},
59
+ "datetime"=>
60
+ {"distance_in_words"=>
61
+ {"about_x_hours"=>
62
+ {"one"=>"cerca de 1 hora", "other"=>"cerca de %{count} horas"},
63
+ "about_x_months"=>
64
+ {"one"=>"cerca de 1 mes", "other"=>"cerca de %{count} meses"},
65
+ "about_x_years"=>
66
+ {"one"=>"cerca de 1 año", "other"=>"cerca de %{count} años"},
67
+ "half_a_minute"=>"medio minuto",
68
+ "less_than_x_minutes"=>
69
+ {"one"=>"menos de 1 minuto", "other"=>"menos de %{count} minutos"},
70
+ "less_than_x_seconds"=>
71
+ {"one"=>"menos de 1 segundo", "other"=>"menos de %{count} segundos"},
72
+ "over_x_years"=>{"one"=>"más de 1 año", "other"=>"más de %{count} años"},
73
+ "x_days"=>{"one"=>"1 día", "other"=>"%{count} días"},
74
+ "x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minutos"},
75
+ "x_months"=>{"one"=>"1 mes", "other"=>"%{count} meses"},
76
+ "x_seconds"=>{"one"=>"1 segundo", "other"=>"%{count} segundos"}},
77
+ "prompts"=>
78
+ {"day"=>"Día",
79
+ "hour"=>"Hora",
80
+ "minute"=>"Minuto",
81
+ "month"=>"Mes",
82
+ "second"=>"Segundos",
83
+ "year"=>"Año"}}}
84
+ end
85
+ 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/es-VE.yml
12
+
13
+ Locale_es_VE =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "ene",
19
+ "feb",
20
+ "mar",
21
+ "abr",
22
+ "may",
23
+ "jun",
24
+ "jul",
25
+ "ago",
26
+ "sep",
27
+ "oct",
28
+ "nov",
29
+ "dic"],
30
+ "day_names"=>
31
+ ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
32
+ "formats"=>
33
+ {"default"=>"%d/%m/%Y", "long"=>"%A, %d de %B de %Y", "short"=>"%d de %b"},
34
+ "month_names"=>
35
+ [nil,
36
+ "enero",
37
+ "febrero",
38
+ "marzo",
39
+ "abril",
40
+ "mayo",
41
+ "junio",
42
+ "julio",
43
+ "agosto",
44
+ "septiembre",
45
+ "octubre",
46
+ "noviembre",
47
+ "diciembre"],
48
+ "order"=>[:day, :month, :year]},
49
+ "time"=>
50
+ {"am"=>"am",
51
+ "formats"=>
52
+ {"default"=>"%a, %d de %b de %Y a las %H:%M:%S%p %Z",
53
+ "long"=>"%A, %d de %B de %Y a las %I:%M%p",
54
+ "short"=>"%d de %b a las %H:%M%p",
55
+ "time"=>"%H:%M:%S%p %Z"},
56
+ "pm"=>"pm"},
57
+ "datetime"=>
58
+ {"distance_in_words"=>
59
+ {"about_x_hours"=>
60
+ {"one"=>"cerca de 1 hora", "other"=>"cerca de %{count} horas"},
61
+ "about_x_months"=>
62
+ {"one"=>"cerca de 1 mes", "other"=>"cerca de %{count} meses"},
63
+ "about_x_years"=>
64
+ {"one"=>"cerca de 1 año", "other"=>"cerca de %{count} años"},
65
+ "almost_x_years"=>{"one"=>"casi 1 año", "other"=>"casi %{count} años"},
66
+ "half_a_minute"=>"medio minuto",
67
+ "less_than_x_minutes"=>
68
+ {"one"=>"menos de 1 minuto", "other"=>"menos de %{count} minutos"},
69
+ "less_than_x_seconds"=>
70
+ {"one"=>"menos de 1 segundo", "other"=>"menos de %{count} segundos"},
71
+ "over_x_years"=>{"one"=>"más de 1 año", "other"=>"más de %{count} años"},
72
+ "x_days"=>{"one"=>"1 día", "other"=>"%{count} días"},
73
+ "x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minutos"},
74
+ "x_months"=>{"one"=>"1 mes", "other"=>"%{count} meses"},
75
+ "x_seconds"=>{"one"=>"1 segundo", "other"=>"%{count} segundos"}},
76
+ "prompts"=>
77
+ {"day"=>"Día",
78
+ "hour"=>"Hora",
79
+ "minute"=>"Minuto",
80
+ "month"=>"Mes",
81
+ "second"=>"Segundos",
82
+ "year"=>"Año"}}}
83
+ end
84
+ end
@@ -0,0 +1,94 @@
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/et.yml
12
+
13
+ Locale_et =
14
+ {"date"=>
15
+ {"abbr_day_names"=>["P", "E", "T", "K", "N", "R", "L"],
16
+ "abbr_month_names"=>
17
+ [nil,
18
+ "jaan.",
19
+ "veebr.",
20
+ "märts",
21
+ "apr.",
22
+ "mai",
23
+ "juuni",
24
+ "juuli",
25
+ "aug.",
26
+ "sept.",
27
+ "okt.",
28
+ "nov.",
29
+ "dets."],
30
+ "day_names"=>
31
+ ["pühapäev",
32
+ "esmaspäev",
33
+ "teisipäev",
34
+ "kolmapäev",
35
+ "neljapäev",
36
+ "reede",
37
+ "laupäev"],
38
+ "formats"=>
39
+ {"default"=>"%d.%m.%Y", "long"=>"%d. %B %Y", "short"=>"%d.%m.%y"},
40
+ "month_names"=>
41
+ [nil,
42
+ "jaanuar",
43
+ "veebruar",
44
+ "märts",
45
+ "aprill",
46
+ "mai",
47
+ "juuni",
48
+ "juuli",
49
+ "august",
50
+ "september",
51
+ "oktoober",
52
+ "november",
53
+ "detsember"],
54
+ "order"=>[:day, :month, :year]},
55
+ "time"=>
56
+ {"am"=>"enne lõunat",
57
+ "formats"=>
58
+ {"default"=>"%d. %B %Y, %H:%M",
59
+ "long"=>"%a, %d. %b %Y, %H:%M:%S %z",
60
+ "short"=>"%d.%m.%y, %H:%M",
61
+ "time"=>"%H:%M"},
62
+ "pm"=>"pärast lõunat"},
63
+ "datetime"=>
64
+ {"distance_in_words"=>
65
+ {"about_x_hours"=>
66
+ {"one"=>"umbes %{count} tund", "other"=>"umbes %{count} tundi"},
67
+ "about_x_months"=>
68
+ {"one"=>"umbes %{count} kuu", "other"=>"umbes %{count} kuud"},
69
+ "about_x_years"=>
70
+ {"one"=>"umbes %{count} aasta", "other"=>"umbes %{count} aastat"},
71
+ "almost_x_years"=>
72
+ {"one"=>"peaaegu üks aasta", "other"=>"peaaegu %{count} aastat"},
73
+ "half_a_minute"=>"pool minutit",
74
+ "less_than_x_minutes"=>
75
+ {"one"=>"vähem kui %{count} minut",
76
+ "other"=>"vähem kui %{count} minutit"},
77
+ "less_than_x_seconds"=>
78
+ {"one"=>"vähem kui %{count} sekund",
79
+ "other"=>"vähem kui %{count} sekundit"},
80
+ "over_x_years"=>
81
+ {"one"=>"üle %{count} aasta", "other"=>"üle %{count} aasta"},
82
+ "x_days"=>{"one"=>"%{count} päev", "other"=>"%{count} päeva"},
83
+ "x_minutes"=>{"one"=>"%{count} minut", "other"=>"%{count} minutit"},
84
+ "x_months"=>{"one"=>"%{count} kuu", "other"=>"%{count} kuud"},
85
+ "x_seconds"=>{"one"=>"%{count} sekund", "other"=>"%{count} sekundit"}},
86
+ "prompts"=>
87
+ {"day"=>"Päev",
88
+ "hour"=>"Tunde",
89
+ "minute"=>"Minutit",
90
+ "month"=>"Kuu",
91
+ "second"=>"Sekundit",
92
+ "year"=>"Aasta"}}}
93
+ end
94
+ end
@@ -0,0 +1,95 @@
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/eu.yml
12
+
13
+ Locale_eu =
14
+ {"date"=>
15
+ {"abbr_day_names"=>
16
+ ["Igan", "Astel", "Astear", "Asteaz", "Oste", "Osti", "Lar"],
17
+ "abbr_month_names"=>
18
+ [nil,
19
+ "Urt",
20
+ "Ots",
21
+ "Mar",
22
+ "Api",
23
+ "Mai",
24
+ "Eka",
25
+ "Uzt",
26
+ "Abu",
27
+ "Ira",
28
+ "Urr",
29
+ "Aza",
30
+ "Aben"],
31
+ "day_names"=>
32
+ ["Igandea",
33
+ "Astelehena",
34
+ "Asteartea",
35
+ "Asteazkena",
36
+ "Osteguna",
37
+ "Ostirala",
38
+ "Larunbata"],
39
+ "formats"=>
40
+ {"default"=>"%Y/%m/%e", "long"=>"%Y(e)ko %Bk %e", "short"=>"%b %e"},
41
+ "month_names"=>
42
+ [nil,
43
+ "Urtarrila",
44
+ "Otsaila",
45
+ "Martxoa",
46
+ "Apirila",
47
+ "Maiatza",
48
+ "Ekaina",
49
+ "Uztaila",
50
+ "Abuztua",
51
+ "Iraila",
52
+ "Urria",
53
+ "Azaroa",
54
+ "Abendua"],
55
+ "order"=>[:year, :month, :day]},
56
+ "time"=>
57
+ {"am"=>"am",
58
+ "formats"=>
59
+ {"default"=>"%A, %Y(e)ko %Bren %e %H:%M:%S %z",
60
+ "long"=>"%Y(e)ko %Bren %e, %H:%M",
61
+ "short"=>"%b %e, %H:%M",
62
+ "time"=>"%H:%M:%S %z"},
63
+ "pm"=>"pm"},
64
+ "datetime"=>
65
+ {"distance_in_words"=>
66
+ {"about_x_hours"=>
67
+ {"one"=>"ordu bat inguru", "other"=>"%{count} ordu inguru"},
68
+ "about_x_months"=>
69
+ {"one"=>"hilabete bat inguru", "other"=>"%{count} hilabete inguru"},
70
+ "about_x_years"=>
71
+ {"one"=>"urte bat inguru", "other"=>"%{count} urte inguru"},
72
+ "almost_x_years"=>{"one"=>"ia urte bat", "other"=>"ia %{count} urte"},
73
+ "half_a_minute"=>"minutu erdi",
74
+ "less_than_x_minutes"=>
75
+ {"one"=>"1 minutu bat baino gutxiago",
76
+ "other"=>"%{count} minutu baino gutxiago"},
77
+ "less_than_x_seconds"=>
78
+ {"one"=>"segundu bat baino gutxiago",
79
+ "other"=>"%{count} segundu baino gutxiago"},
80
+ "over_x_years"=>
81
+ {"one"=>"urte bat baino gehiago",
82
+ "other"=>"%{count} urte baino gehiago"},
83
+ "x_days"=>{"one"=>"egun bat", "other"=>"%{count} egun"},
84
+ "x_minutes"=>{"one"=>"minutu bat", "other"=>"%{count} minutu"},
85
+ "x_months"=>{"one"=>"hilabete bat", "other"=>"%{count} hilabete"},
86
+ "x_seconds"=>{"one"=>"segundu bat", "other"=>"%{count} segundu"}},
87
+ "prompts"=>
88
+ {"day"=>"Egun",
89
+ "hour"=>"Ordu",
90
+ "minute"=>"Minutu",
91
+ "month"=>"Hilabete",
92
+ "second"=>"Segundu",
93
+ "year"=>"Urte"}}}
94
+ end
95
+ end
@@ -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/fa.yml
12
+
13
+ Locale_fa =
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"=>"%Y/%m/%d", "long"=>"%e %B %Y", "short"=>"%m/%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، %e %B %Y، ساعت %H:%M:%S (%Z)",
52
+ "long"=>"%e %B %Y، ساعت %H:%M",
53
+ "short"=>"%e %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"=>"حدود یک ماه", "other"=>"حدود %{count} ماه"},
60
+ "about_x_years"=>{"one"=>"حدود یک سال", "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