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.
- data/LICENSE.ja.txt +25 -25
- data/LICENSE.txt +31 -31
- data/bin/irb.rc +5 -0
- data/bin/locales.rb +2 -2
- data/bin/when.rb +16 -0
- data/bin/when.rb.config +7 -0
- data/lib/when_exe.rb +616 -14
- data/lib/when_exe/basictypes.rb +615 -0
- data/lib/when_exe/calendartypes.rb +1700 -0
- data/lib/when_exe/coordinates.rb +1936 -0
- data/lib/when_exe/core/compatibility.rb +54 -0
- data/lib/when_exe/core/duration.rb +72 -72
- data/lib/when_exe/core/extension.rb +382 -0
- data/lib/when_exe/ephemeris.rb +1845 -0
- data/lib/when_exe/googlecalendar.rb +140 -0
- data/lib/when_exe/icalendar.rb +1587 -0
- data/lib/when_exe/inspect.rb +1237 -0
- data/lib/when_exe/locales/af.rb +90 -0
- data/lib/when_exe/locales/ar.rb +145 -0
- data/lib/when_exe/locales/az.rb +90 -0
- data/lib/when_exe/locales/bg.rb +90 -0
- data/lib/when_exe/locales/bn.rb +94 -0
- data/lib/when_exe/locales/bs.rb +121 -0
- data/lib/when_exe/locales/ca.rb +92 -0
- data/lib/when_exe/locales/cs.rb +107 -0
- data/lib/when_exe/locales/cy.rb +150 -0
- data/lib/when_exe/locales/da.rb +84 -0
- data/lib/when_exe/locales/de.rb +92 -0
- data/lib/when_exe/locales/de_AT.rb +92 -0
- data/lib/when_exe/locales/de_CH.rb +92 -0
- data/lib/when_exe/locales/el.rb +93 -0
- data/lib/when_exe/locales/en.rb +88 -0
- data/lib/when_exe/locales/en_AU.rb +88 -0
- data/lib/when_exe/locales/en_CA.rb +88 -0
- data/lib/when_exe/locales/en_GB.rb +88 -0
- data/lib/when_exe/locales/en_IN.rb +88 -0
- data/lib/when_exe/locales/en_NZ.rb +88 -0
- data/lib/when_exe/locales/eo.rb +89 -0
- data/lib/when_exe/locales/es.rb +84 -0
- data/lib/when_exe/locales/es_419.rb +84 -0
- data/lib/when_exe/locales/es_AR.rb +84 -0
- data/lib/when_exe/locales/es_CL.rb +84 -0
- data/lib/when_exe/locales/es_CO.rb +84 -0
- data/lib/when_exe/locales/es_MX.rb +84 -0
- data/lib/when_exe/locales/es_PE.rb +85 -0
- data/lib/when_exe/locales/es_VE.rb +84 -0
- data/lib/when_exe/locales/et.rb +94 -0
- data/lib/when_exe/locales/eu.rb +95 -0
- data/lib/when_exe/locales/fa.rb +80 -0
- data/lib/when_exe/locales/fi.rb +89 -0
- data/lib/when_exe/locales/fr.rb +88 -0
- data/lib/when_exe/locales/fr_CA.rb +88 -0
- data/lib/when_exe/locales/fr_CH.rb +88 -0
- data/lib/when_exe/locales/gl.rb +81 -0
- data/lib/when_exe/locales/he.rb +84 -0
- data/lib/when_exe/locales/hi.rb +80 -0
- data/lib/when_exe/locales/hi_IN.rb +84 -0
- data/lib/when_exe/locales/hr.rb +128 -0
- data/lib/when_exe/locales/hu.rb +84 -0
- data/lib/when_exe/locales/id.rb +89 -0
- data/lib/when_exe/locales/is.rb +89 -0
- data/lib/when_exe/locales/it.rb +87 -0
- data/lib/when_exe/locales/it_CH.rb +87 -0
- data/lib/when_exe/locales/ja.rb +78 -0
- data/lib/when_exe/locales/kn.rb +86 -0
- data/lib/when_exe/locales/ko.rb +78 -0
- data/lib/when_exe/locales/links.rb +2342 -0
- data/lib/when_exe/locales/lo.rb +123 -0
- data/lib/when_exe/locales/locales.rb +91 -0
- data/lib/when_exe/locales/lt.rb +111 -0
- data/lib/when_exe/locales/lv.rb +118 -0
- data/lib/when_exe/locales/mk.rb +93 -0
- data/lib/when_exe/locales/mn.rb +80 -0
- data/lib/when_exe/locales/nb.rb +81 -0
- data/lib/when_exe/locales/ne.rb +81 -0
- data/lib/when_exe/locales/nl.rb +92 -0
- data/lib/when_exe/locales/nn.rb +73 -0
- data/lib/when_exe/locales/or.rb +84 -0
- data/lib/when_exe/locales/pl.rb +128 -0
- data/lib/when_exe/locales/pt.rb +88 -0
- data/lib/when_exe/locales/pt_BR.rb +88 -0
- data/lib/when_exe/locales/rm.rb +143 -0
- data/lib/when_exe/locales/ro.rb +105 -0
- data/lib/when_exe/locales/ru.rb +128 -0
- data/lib/when_exe/locales/sk.rb +109 -0
- data/lib/when_exe/locales/sl.rb +122 -0
- data/lib/when_exe/locales/sr.rb +122 -0
- data/lib/when_exe/locales/sv.rb +83 -0
- data/lib/when_exe/locales/sw.rb +89 -0
- data/lib/when_exe/locales/th.rb +78 -0
- data/lib/when_exe/locales/tl.rb +99 -0
- data/lib/when_exe/locales/tr.rb +96 -0
- data/lib/when_exe/locales/uk.rb +128 -0
- data/lib/when_exe/locales/uz.rb +128 -0
- data/lib/when_exe/locales/vi.rb +94 -0
- data/lib/when_exe/locales/wo.rb +82 -0
- data/lib/when_exe/locales/zh_CN.rb +77 -0
- data/lib/when_exe/locales/zh_HK.rb +77 -0
- data/lib/when_exe/locales/zh_TW.rb +77 -0
- data/lib/when_exe/mini_application.rb +252 -0
- data/lib/when_exe/parts/enumerator.rb +472 -0
- data/lib/when_exe/parts/geometric_complex.rb +379 -0
- data/lib/when_exe/parts/locale.rb +513 -0
- data/lib/when_exe/parts/method_cash.rb +207 -0
- data/lib/when_exe/parts/resource.rb +806 -0
- data/lib/when_exe/parts/timezone.rb +182 -0
- data/lib/when_exe/region/bahai.rb +145 -0
- data/lib/when_exe/region/balinese.rb +627 -0
- data/lib/when_exe/region/chinese.rb +896 -0
- data/lib/when_exe/region/chinese_calendar.rb +919 -0
- data/lib/when_exe/region/chinese_epoch.rb +1245 -0
- data/lib/when_exe/region/christian.rb +644 -0
- data/lib/when_exe/region/far_east.rb +192 -0
- data/lib/when_exe/region/french.rb +66 -0
- data/lib/when_exe/region/geologicalage.rb +639 -0
- data/lib/when_exe/region/indian.rb +1066 -0
- data/lib/when_exe/region/iranian.rb +66 -0
- data/lib/when_exe/region/islamic.rb +105 -0
- data/lib/when_exe/region/japanese.rb +851 -0
- data/lib/when_exe/region/japanese_notes.rb +964 -0
- data/lib/when_exe/region/japanese_residues.rb +1149 -0
- data/lib/when_exe/region/javanese.rb +228 -0
- data/lib/when_exe/region/jewish.rb +127 -0
- data/lib/when_exe/region/korean.rb +267 -0
- data/lib/when_exe/region/m17n.rb +115 -0
- data/lib/when_exe/region/martian.rb +215 -0
- data/lib/when_exe/region/mayan.rb +122 -0
- data/lib/when_exe/region/moon.rb +333 -0
- data/lib/when_exe/region/nihon_shoki.rb +73 -0
- data/lib/when_exe/region/planets.rb +585 -0
- data/lib/when_exe/region/pope.rb +298 -0
- data/lib/when_exe/region/residue.rb +229 -0
- data/lib/when_exe/region/roman.rb +325 -0
- data/lib/when_exe/region/ryukyu.rb +98 -0
- data/lib/when_exe/region/shire.rb +254 -0
- data/lib/when_exe/region/sun.rb +210 -0
- data/lib/when_exe/region/thai.rb +227 -0
- data/lib/when_exe/region/tibetan.rb +233 -0
- data/lib/when_exe/region/v50.rb +111 -0
- data/lib/when_exe/region/vietnamese.rb +173 -0
- data/lib/when_exe/region/world.rb +197 -0
- data/lib/when_exe/timestandard.rb +547 -0
- data/lib/when_exe/tmduration.rb +330 -330
- data/lib/when_exe/tmobjects.rb +1295 -0
- data/lib/when_exe/tmposition.rb +1955 -0
- data/lib/when_exe/tmreference.rb +1547 -0
- data/lib/when_exe/version.rb +10 -3
- data/link_to_online_documents +4 -0
- data/test/examples/JapanHolidays.ics +456 -0
- data/test/examples/Millennium.ics +17 -0
- data/test/examples/NewYork.ics +61 -0
- data/test/examples/Residue.m17n +135 -0
- data/test/examples/Spatial.m17n +179 -0
- data/test/examples/Terms.m17n +39 -0
- data/test/examples/Test.ics +53 -0
- data/test/examples/USA-DST.ics +61 -0
- data/test/examples/geometric_complex.rb +41 -0
- data/test/examples/sample.xml +14 -0
- data/test/examples/today.rb +61 -0
- data/test/test.rb +54 -19
- data/test/test.rb.config +1 -0
- data/test/test/basictypes.rb +368 -0
- data/test/test/calendartypes.rb +57 -0
- data/test/test/coordinates.rb +380 -0
- data/test/test/ephemeris.rb +127 -0
- data/test/test/googlecalendar.rb +167 -0
- data/test/test/icalendar.rb +848 -0
- data/test/test/inspect.rb +115 -0
- data/test/test/parts.rb +480 -0
- data/test/test/region/chinese.rb +161 -0
- data/test/test/region/french.rb +33 -0
- data/test/test/region/geologicalage.rb +14 -0
- data/test/test/region/indian.rb +55 -0
- data/test/test/region/iran.rb +54 -0
- data/test/test/region/islamic.rb +18 -0
- data/test/test/region/japanese.rb +62 -0
- data/test/test/region/jewish.rb +61 -0
- data/test/test/region/m17n.rb +181 -0
- data/test/test/region/mayan.rb +78 -0
- data/test/test/region/moon.rb +14 -0
- data/test/test/region/planets.rb +14 -0
- data/test/test/region/residue.rb +123 -0
- data/test/test/region/sun.rb +14 -0
- data/test/test/region/thai.rb +94 -0
- data/test/test/region/tibetan.rb +30 -0
- data/test/test/tmobjects.rb +356 -57
- data/test/test/tmposition.rb +237 -0
- data/test/test/tmreference.rb +95 -0
- data/when_exe.gemspec +2 -2
- metadata +187 -7
- data/doc/COPYING +0 -31
- data/doc/COPYING.ja +0 -25
- data/doc/document_url +0 -1
@@ -0,0 +1,121 @@
|
|
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/bs.yml
|
12
|
+
|
13
|
+
Locale_bs =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["ned", "pon", "uto", "sri", "čet", "pet", "sub"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
["jan",
|
18
|
+
"feb",
|
19
|
+
"mar",
|
20
|
+
"apr",
|
21
|
+
"maj",
|
22
|
+
"jun",
|
23
|
+
"jul",
|
24
|
+
"aug",
|
25
|
+
"sep",
|
26
|
+
"okt",
|
27
|
+
"nov",
|
28
|
+
"dec"],
|
29
|
+
"day_names"=>
|
30
|
+
["nedjelja", "ponedjeljak", "utorak", "srijeda", "četvrtak", "petak"],
|
31
|
+
"formats"=>
|
32
|
+
{"default"=>"%d.%m.%Y.", "long"=>"%e. %B %Y.", "short"=>"%e. %b. %Y."},
|
33
|
+
"month_names"=>
|
34
|
+
["januar",
|
35
|
+
"februar",
|
36
|
+
"mart",
|
37
|
+
"april",
|
38
|
+
"maj",
|
39
|
+
"juni",
|
40
|
+
"juli",
|
41
|
+
"august",
|
42
|
+
"septembar",
|
43
|
+
"oktobar",
|
44
|
+
"novembar",
|
45
|
+
"decembar"],
|
46
|
+
"order"=>[:day, :month, :year]},
|
47
|
+
"time"=>
|
48
|
+
{"am"=>"",
|
49
|
+
"formats"=>
|
50
|
+
{"default"=>"%H:%M:%S",
|
51
|
+
"long"=>"%d. %B %Y. - %H:%M:%S",
|
52
|
+
"short"=>"%d. %b %Y. %H:%M",
|
53
|
+
"time"=>"%H:%M:%S"},
|
54
|
+
"pm"=>""},
|
55
|
+
"datetime"=>
|
56
|
+
{"distance_in_words"=>
|
57
|
+
{"about_x_hours"=>
|
58
|
+
{"few"=>"oko %{count} sata",
|
59
|
+
"many"=>"oko %{count} sati",
|
60
|
+
"one"=>"oko sat",
|
61
|
+
"other"=>"oko %{count} sati"},
|
62
|
+
"about_x_months"=>
|
63
|
+
{"few"=>"oko %{count} mjeseca",
|
64
|
+
"many"=>"oko %{count} mjeseci",
|
65
|
+
"one"=>"oko mjesec",
|
66
|
+
"other"=>"oko %{count} mjeseci"},
|
67
|
+
"about_x_years"=>
|
68
|
+
{"few"=>"oko %{count} godine",
|
69
|
+
"many"=>"oko %{count} godina",
|
70
|
+
"one"=>"oko godine",
|
71
|
+
"other"=>"oko %{count} godina"},
|
72
|
+
"almost_x_years"=>
|
73
|
+
{"few"=>"skoro %{count} godine",
|
74
|
+
"many"=>"skoro %{count} godina",
|
75
|
+
"one"=>"skoro 1 godina",
|
76
|
+
"other"=>"skoro %{count} godina"},
|
77
|
+
"half_a_minute"=>"pola minute",
|
78
|
+
"less_than_x_minutes"=>
|
79
|
+
{"few"=>"manje od %{count} minute",
|
80
|
+
"many"=>"manje od %{count} minuta",
|
81
|
+
"one"=>"manje od minute",
|
82
|
+
"other"=>"manje od %{count} minuta"},
|
83
|
+
"less_than_x_seconds"=>
|
84
|
+
{"few"=>"manje od %{count} sekunde",
|
85
|
+
"many"=>"manje od %{count} sekundi",
|
86
|
+
"one"=>"manje od sekunde",
|
87
|
+
"other"=>"manje od %{count} sekundi"},
|
88
|
+
"over_x_years"=>
|
89
|
+
{"few"=>"preko %{count} godine",
|
90
|
+
"many"=>"preko %{count} godina",
|
91
|
+
"one"=>"preko godine",
|
92
|
+
"other"=>"preko %{count} godina"},
|
93
|
+
"x_days"=>
|
94
|
+
{"few"=>"%{count} dana",
|
95
|
+
"many"=>"%{count} dana",
|
96
|
+
"one"=>"1 dan",
|
97
|
+
"other"=>"%{count} dana"},
|
98
|
+
"x_minutes"=>
|
99
|
+
{"few"=>"%{count} minute",
|
100
|
+
"many"=>"%{count} minuta",
|
101
|
+
"one"=>"1 minut",
|
102
|
+
"other"=>"%{count} minuta"},
|
103
|
+
"x_months"=>
|
104
|
+
{"few"=>"%{count} mjeseca",
|
105
|
+
"many"=>"%{count} mjeseci",
|
106
|
+
"one"=>"1 mjesec",
|
107
|
+
"other"=>"%{count} mjeseci"},
|
108
|
+
"x_seconds"=>
|
109
|
+
{"few"=>"%{count} sekunde",
|
110
|
+
"many"=>"%{count} sekundi",
|
111
|
+
"one"=>"1 sekund",
|
112
|
+
"other"=>"%{count} sekundi"}},
|
113
|
+
"prompts"=>
|
114
|
+
{"day"=>"dan",
|
115
|
+
"hour"=>"sat",
|
116
|
+
"minute"=>"minut",
|
117
|
+
"month"=>"mjesec",
|
118
|
+
"second"=>"sekundi",
|
119
|
+
"year"=>"godina"}}}
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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/ca.yml
|
12
|
+
|
13
|
+
Locale_ca =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Dg", "Dl", "Dm", "Dc", "Dj", "Dv", "Ds"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
["~,",
|
18
|
+
"Gen",
|
19
|
+
"Feb",
|
20
|
+
"Mar",
|
21
|
+
"Abr",
|
22
|
+
"Mai",
|
23
|
+
"Jun",
|
24
|
+
"Jul",
|
25
|
+
"Ago",
|
26
|
+
"Set",
|
27
|
+
"Oct",
|
28
|
+
"Nov",
|
29
|
+
"Des"],
|
30
|
+
"day_names"=>
|
31
|
+
["Diumenge",
|
32
|
+
"Dilluns",
|
33
|
+
"Dimarts",
|
34
|
+
"Dimecres",
|
35
|
+
"Dijous",
|
36
|
+
"Divendres",
|
37
|
+
"Dissabte"],
|
38
|
+
"formats"=>
|
39
|
+
{"default"=>"%d-%m-%Y", "long"=>"%d de %B de %Y", "short"=>"%d de %b"},
|
40
|
+
"month_names"=>
|
41
|
+
[nil,
|
42
|
+
"Gener",
|
43
|
+
"Febrer",
|
44
|
+
"Març",
|
45
|
+
"Abril",
|
46
|
+
"Maig",
|
47
|
+
"Juny",
|
48
|
+
"Juliol",
|
49
|
+
"Agost",
|
50
|
+
"Setembre",
|
51
|
+
"Octubre",
|
52
|
+
"Novembre",
|
53
|
+
"Desembre"],
|
54
|
+
"order"=>[:day, :month, :year]},
|
55
|
+
"time"=>
|
56
|
+
{"am"=>"am",
|
57
|
+
"formats"=>
|
58
|
+
{"default"=>"%A, %d de %B de %Y %H:%M:%S %z",
|
59
|
+
"long"=>"%d de %B de %Y %H:%M",
|
60
|
+
"short"=>"%d de %b %H:%M",
|
61
|
+
"time"=>"%H:%M:%S %z"},
|
62
|
+
"pm"=>"pm"},
|
63
|
+
"datetime"=>
|
64
|
+
{"distance_in_words"=>
|
65
|
+
{"about_x_hours"=>
|
66
|
+
{"one"=>"aproximadament 1 hora",
|
67
|
+
"other"=>"aproximadament %{count} hores"},
|
68
|
+
"about_x_months"=>
|
69
|
+
{"one"=>"aproximadament 1 mes",
|
70
|
+
"other"=>"aproximadament %{count} mesos"},
|
71
|
+
"about_x_years"=>
|
72
|
+
{"one"=>"aproximadament 1 any", "other"=>"aproximadament %{count} anys"},
|
73
|
+
"almost_x_years"=>{"one"=>"quasi 1 any", "other"=>"quasi %{count} anys"},
|
74
|
+
"half_a_minute"=>"mig minut",
|
75
|
+
"less_than_x_minutes"=>
|
76
|
+
{"one"=>"menys d'1 minut", "other"=>"menys de %{count} minuts"},
|
77
|
+
"less_than_x_seconds"=>
|
78
|
+
{"one"=>"menys d'1 segon", "other"=>"menys de %{count} segons"},
|
79
|
+
"over_x_years"=>{"one"=>"més d'1 any", "other"=>"més de %{count} anys"},
|
80
|
+
"x_days"=>{"one"=>"1 dia", "other"=>"%{count} dies"},
|
81
|
+
"x_minutes"=>{"one"=>"1 minut", "other"=>"%{count} minuts"},
|
82
|
+
"x_months"=>{"one"=>"1 mes", "other"=>"%{count} mesos"},
|
83
|
+
"x_seconds"=>{"one"=>"1 segon", "other"=>"%{count} segons"}},
|
84
|
+
"prompts"=>
|
85
|
+
{"day"=>"dia",
|
86
|
+
"hour"=>"hora",
|
87
|
+
"minute"=>"minut",
|
88
|
+
"month"=>"mes",
|
89
|
+
"second"=>"segon",
|
90
|
+
"year"=>"any"}}}
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,107 @@
|
|
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/cs.yml
|
12
|
+
|
13
|
+
Locale_cs =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"Led",
|
19
|
+
"Úno",
|
20
|
+
"Bře",
|
21
|
+
"Dub",
|
22
|
+
"Kvě",
|
23
|
+
"Čvn",
|
24
|
+
"Čvc",
|
25
|
+
"Srp",
|
26
|
+
"Zář",
|
27
|
+
"Říj",
|
28
|
+
"Lis",
|
29
|
+
"Pro"],
|
30
|
+
"day_names"=>
|
31
|
+
["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
|
32
|
+
"formats"=>{"default"=>"%d. %m. %Y", "long"=>"%d. %B %Y", "short"=>"%d %b"},
|
33
|
+
"month_names"=>
|
34
|
+
[nil,
|
35
|
+
"Leden",
|
36
|
+
"Únor",
|
37
|
+
"Březen",
|
38
|
+
"Duben",
|
39
|
+
"Květen",
|
40
|
+
"Červen",
|
41
|
+
"Červenec",
|
42
|
+
"Srpen",
|
43
|
+
"Září",
|
44
|
+
"Říjen",
|
45
|
+
"Listopad",
|
46
|
+
"Prosinec"],
|
47
|
+
"order"=>[:day, :month, :year]},
|
48
|
+
"time"=>
|
49
|
+
{"am"=>"am",
|
50
|
+
"formats"=>
|
51
|
+
{"default"=>"%a %d. %B %Y %H:%M %z",
|
52
|
+
"long"=>"%A %d. %B %Y %H:%M",
|
53
|
+
"short"=>"%d. %m. %H:%M",
|
54
|
+
"time"=>"%H:%M %z"},
|
55
|
+
"pm"=>"pm"},
|
56
|
+
"datetime"=>
|
57
|
+
{"distance_in_words"=>
|
58
|
+
{"about_x_hours"=>
|
59
|
+
{"one"=>"asi hodinou",
|
60
|
+
"few"=>"asi %{count} hodinami",
|
61
|
+
"other"=>"asi %{count} hodinami"},
|
62
|
+
"about_x_months"=>
|
63
|
+
{"one"=>"asi měsícem",
|
64
|
+
"few"=>"asi %{count} měsíci",
|
65
|
+
"other"=>"asi %{count} měsíci"},
|
66
|
+
"about_x_years"=>
|
67
|
+
{"one"=>"asi rokem",
|
68
|
+
"few"=>"asi %{count} roky",
|
69
|
+
"other"=>"asi %{count} roky"},
|
70
|
+
"almost_x_years"=>
|
71
|
+
{"one"=>"téměř rokem",
|
72
|
+
"few"=>"téměř %{count} roky",
|
73
|
+
"other"=>"téměř %{count} roky"},
|
74
|
+
"half_a_minute"=>"půl minutou",
|
75
|
+
"less_than_x_minutes"=>
|
76
|
+
{"one"=>"necelou minutou",
|
77
|
+
"few"=>"ani ne %{count} minutami",
|
78
|
+
"other"=>"ani ne %{count} minutami"},
|
79
|
+
"less_than_x_seconds"=>
|
80
|
+
{"one"=>"necelou sekundou",
|
81
|
+
"few"=>"ani ne %{count} sekundami",
|
82
|
+
"other"=>"ani ne %{count} sekundami"},
|
83
|
+
"over_x_years"=>
|
84
|
+
{"one"=>"více než rokem",
|
85
|
+
"few"=>"více než %{count} roky",
|
86
|
+
"other"=>"více než %{count} roky"},
|
87
|
+
"x_days"=>
|
88
|
+
{"one"=>"24 hodinami", "few"=>"%{count} dny", "other"=>"%{count} dny"},
|
89
|
+
"x_minutes"=>
|
90
|
+
{"one"=>"minutou",
|
91
|
+
"few"=>"%{count} minutami",
|
92
|
+
"other"=>"%{count} minutami"},
|
93
|
+
"x_months"=>
|
94
|
+
{"one"=>"měsícem", "few"=>"%{count} měsíci", "other"=>"%{count} měsíci"},
|
95
|
+
"x_seconds"=>
|
96
|
+
{"one"=>"sekundou",
|
97
|
+
"few"=>"%{count} sekundami",
|
98
|
+
"other"=>"%{count} sekundami"}},
|
99
|
+
"prompts"=>
|
100
|
+
{"day"=>"Den",
|
101
|
+
"hour"=>"Hodina",
|
102
|
+
"minute"=>"Minuta",
|
103
|
+
"month"=>"Měsíc",
|
104
|
+
"second"=>"Sekunda",
|
105
|
+
"year"=>"Rok"}}}
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,150 @@
|
|
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/cy.yml
|
12
|
+
|
13
|
+
Locale_cy =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"Ion",
|
19
|
+
"Chw",
|
20
|
+
"Maw",
|
21
|
+
"Ebr",
|
22
|
+
"Mai",
|
23
|
+
"Meh",
|
24
|
+
"Gor",
|
25
|
+
"Awst",
|
26
|
+
"Med",
|
27
|
+
"Hyd",
|
28
|
+
"Tach",
|
29
|
+
"Rha"],
|
30
|
+
"day_names"=>
|
31
|
+
["Dydd Sul",
|
32
|
+
"Dydd Llun",
|
33
|
+
"Dydd Mawrth",
|
34
|
+
"Dydd Mercher",
|
35
|
+
"Dydd Iau",
|
36
|
+
"Dydd Gwener",
|
37
|
+
"Dydd Sadwrn"],
|
38
|
+
"formats"=>{"default"=>"%d-%m-%Y", "long"=>"%B %d, %Y", "short"=>"%b %d"},
|
39
|
+
"month_names"=>
|
40
|
+
[nil,
|
41
|
+
"Ionawr",
|
42
|
+
"Chwefror",
|
43
|
+
"Mawrth",
|
44
|
+
"Ebrill",
|
45
|
+
"Mai",
|
46
|
+
"Mehefin",
|
47
|
+
"Gorffennaf",
|
48
|
+
"Awst",
|
49
|
+
"Medi",
|
50
|
+
"Hydref",
|
51
|
+
"Tachwedd",
|
52
|
+
"Rhagfyr"],
|
53
|
+
"order"=>[:year, :month, :day]},
|
54
|
+
"time"=>
|
55
|
+
{"am"=>"yb",
|
56
|
+
"formats"=>
|
57
|
+
{"default"=>"%a, %d %b %Y %H:%M:%S %z",
|
58
|
+
"long"=>"%B %d, %Y %H:%M",
|
59
|
+
"short"=>"%d %b %H:%M",
|
60
|
+
"time"=>"%H:%M:%S %z"},
|
61
|
+
"pm"=>"yh"},
|
62
|
+
"datetime"=>
|
63
|
+
{"distance_in_words"=>
|
64
|
+
{"about_x_hours"=>
|
65
|
+
{"zero"=>"tua %{count} awr",
|
66
|
+
"one"=>"tuag awr",
|
67
|
+
"two"=>"tua %{count} awr",
|
68
|
+
"few"=>"tua %{count} awr",
|
69
|
+
"many"=>"tua %{count} awr",
|
70
|
+
"other"=>"tua %{count} awr"},
|
71
|
+
"about_x_months"=>
|
72
|
+
{"zero"=>"tua %{count} mis",
|
73
|
+
"one"=>"tua mis",
|
74
|
+
"two"=>"tua %{count} mis",
|
75
|
+
"few"=>"tua %{count} mis",
|
76
|
+
"many"=>"tua %{count} mis",
|
77
|
+
"other"=>"tua %{count} mis"},
|
78
|
+
"about_x_years"=>
|
79
|
+
{"zero"=>"tua %{count} blynedd",
|
80
|
+
"one"=>"tua blwyddyn",
|
81
|
+
"two"=>"tua %{count} blynedd",
|
82
|
+
"few"=>"tua %{count} blynedd",
|
83
|
+
"many"=>"tua %{count} blynedd",
|
84
|
+
"other"=>"tua %{count} blynedd"},
|
85
|
+
"almost_x_years"=>
|
86
|
+
{"zero"=>"bron yn %{count} blynedd",
|
87
|
+
"one"=>"bron yn flwyddyn",
|
88
|
+
"two"=>"bron yn %{count} blynedd",
|
89
|
+
"few"=>"bron yn %{count} blynedd",
|
90
|
+
"many"=>"bron yn %{count} blynedd",
|
91
|
+
"other"=>"bron yn %{count} blynedd"},
|
92
|
+
"half_a_minute"=>"hanner munud",
|
93
|
+
"less_than_x_minutes"=>
|
94
|
+
{"zero"=>"llai na %{count} munud",
|
95
|
+
"one"=>"llai na munud",
|
96
|
+
"two"=>"llai na %{count} munud",
|
97
|
+
"few"=>"llai na %{count} munud",
|
98
|
+
"many"=>"llai na %{count} munud",
|
99
|
+
"other"=>"llai na %{count} munud"},
|
100
|
+
"less_than_x_seconds"=>
|
101
|
+
{"zero"=>"llai na %{count} eiliad",
|
102
|
+
"one"=>"llai nag eiliad",
|
103
|
+
"two"=>"llai na %{count} eiliad",
|
104
|
+
"few"=>"llai na %{count} eiliad",
|
105
|
+
"many"=>"llai na %{count} eiliad",
|
106
|
+
"other"=>"llai na %{count} eiliad"},
|
107
|
+
"over_x_years"=>
|
108
|
+
{"zero"=>"dros %{count} blynedd",
|
109
|
+
"one"=>"dros flwyddyn",
|
110
|
+
"two"=>"dros %{count} blynedd",
|
111
|
+
"few"=>"dros %{count} blynedd",
|
112
|
+
"many"=>"dros %{count} blynedd",
|
113
|
+
"other"=>"dros %{count} blynedd"},
|
114
|
+
"x_days"=>
|
115
|
+
{"zero"=>"%{count} diwrnod",
|
116
|
+
"one"=>"1 diwrnod",
|
117
|
+
"two"=>"%{count} diwrnod",
|
118
|
+
"few"=>"%{count} diwrnod",
|
119
|
+
"many"=>"%{count} diwrnod",
|
120
|
+
"other"=>"%{count} diwrnod"},
|
121
|
+
"x_minutes"=>
|
122
|
+
{"zero"=>"%{count} o funudau",
|
123
|
+
"one"=>"1 munud",
|
124
|
+
"two"=>"%{count} o funudau",
|
125
|
+
"few"=>"%{count} o funudau",
|
126
|
+
"many"=>"%{count} o funudau",
|
127
|
+
"other"=>"%{count} o funudau"},
|
128
|
+
"x_months"=>
|
129
|
+
{"zero"=>"%{count} mis",
|
130
|
+
"one"=>"1 mis",
|
131
|
+
"two"=>"%{count} mis",
|
132
|
+
"few"=>"%{count} mis",
|
133
|
+
"many"=>"%{count} mis",
|
134
|
+
"other"=>"%{count} mis"},
|
135
|
+
"x_seconds"=>
|
136
|
+
{"zero"=>"%{count} o eiliadau",
|
137
|
+
"one"=>"1 eiliad",
|
138
|
+
"two"=>"%{count} o eiliadau",
|
139
|
+
"few"=>"%{count} o eiliadau",
|
140
|
+
"many"=>"%{count} o eiliadau",
|
141
|
+
"other"=>"%{count} o eiliadau"}},
|
142
|
+
"prompts"=>
|
143
|
+
{"day"=>"Diwrnod",
|
144
|
+
"hour"=>"Awr",
|
145
|
+
"minute"=>"Munud",
|
146
|
+
"month"=>"Mis",
|
147
|
+
"second"=>"Eiliad",
|
148
|
+
"year"=>"Blwyddyn"}}}
|
149
|
+
end
|
150
|
+
end
|