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,123 @@
|
|
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/lo.yml
|
12
|
+
|
13
|
+
Locale_lo =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["", "", "", "", "", "", ""],
|
16
|
+
"abbr_month_names"=>[nil, "", "", "", "", "", "", "", "", "", "", "", ""],
|
17
|
+
"day_names"=>["ອາທິດ", "ຈັນ", "ອັງຄານ", "ພຸດ", "ພະຫັດ", "ສຸກ", "ເສົາ"],
|
18
|
+
"formats"=>{"default"=>"%d-%m-%Y", "long"=>"%e %B %Y", "short"=>"%e %b"},
|
19
|
+
"month_names"=>
|
20
|
+
[nil,
|
21
|
+
"ມັງກອນ",
|
22
|
+
"ກຸມພາ",
|
23
|
+
"ມີນາ",
|
24
|
+
"ເມສາ",
|
25
|
+
"ພຶດສະພາ",
|
26
|
+
"ມິຖຸນາ",
|
27
|
+
"ກໍລະກົດ",
|
28
|
+
"ສິງຫາ",
|
29
|
+
"ກັນຍາ",
|
30
|
+
"ຕຸລາ",
|
31
|
+
"ພະຈິກ",
|
32
|
+
"ທັນວາ"],
|
33
|
+
"order"=>[:day, :month, :year]},
|
34
|
+
"time"=>
|
35
|
+
{"am"=>"",
|
36
|
+
"formats"=>
|
37
|
+
{"default"=>"%a %d %b %Y %H:%M:%S %z",
|
38
|
+
"long"=>"%d %B %Y %H:%M น.",
|
39
|
+
"short"=>"%d %b %H:%M น.",
|
40
|
+
"time"=>"%H:%M:%S %z"},
|
41
|
+
"pm"=>""},
|
42
|
+
"datetime"=>
|
43
|
+
{"distance_in_words"=>
|
44
|
+
{"about_x_hours"=>
|
45
|
+
{"zero"=>"ປະມານ %{count} ຊົ່ວໂມງ",
|
46
|
+
"one"=>"ປະມານ 1 ຊົ່ວໂມງ",
|
47
|
+
"two"=>"ປະມານ %{count} ຊົ່ວໂມງ",
|
48
|
+
"few"=>"ປະມານ %{count} ຊົ່ວໂມງ",
|
49
|
+
"many"=>"ປະມານ %{count} ຊົ່ວໂມງ",
|
50
|
+
"other"=>"ປະມານ %{count} ຊົ່ວໂມງ"},
|
51
|
+
"about_x_months"=>
|
52
|
+
{"zero"=>"ປະມານ %{count} ເດືອນ",
|
53
|
+
"one"=>"ປະມານ 1 ເດືອນ",
|
54
|
+
"two"=>"ປະມານ %{count} ເດືອນ",
|
55
|
+
"few"=>"ປະມານ %{count} ເດືອນ",
|
56
|
+
"many"=>"ປະມານ %{count} ເດືອນ",
|
57
|
+
"other"=>"ປະມານ %{count} ເດືອນ"},
|
58
|
+
"about_x_years"=>
|
59
|
+
{"zero"=>"ປະມານ %{count} ປີ ",
|
60
|
+
"one"=>"ປະມານ 1 ປີ ",
|
61
|
+
"two"=>"ປະມານ %{count} ປີ ",
|
62
|
+
"few"=>"ປະມານ %{count} ປີ ",
|
63
|
+
"many"=>"ປະມານ %{count} ປີ ",
|
64
|
+
"other"=>"ປະມານ %{count} ປີ "},
|
65
|
+
"half_a_minute"=>"ເຄິ່ງນາທີ ",
|
66
|
+
"less_than_x_minutes"=>
|
67
|
+
{"zero"=>"ນ້ອຍກວ່າ %{count} ນາທີ ",
|
68
|
+
"one"=>"ນ້ອຍກວ່າ 1 ນາທີ ",
|
69
|
+
"two"=>"ນ້ອຍກວ່າ %{count} ນາທີ ",
|
70
|
+
"few"=>"ນ້ອຍກວ່າ %{count} ນາທີ ",
|
71
|
+
"many"=>"ນ້ອຍກວ່າ %{count} ນາທີ ",
|
72
|
+
"other"=>"ນ້ອຍກວ່າ %{count} ນາທີ "},
|
73
|
+
"less_than_x_seconds"=>
|
74
|
+
{"zero"=>"ນ້ອຍກວ່າ %{count} ວິນາທີ ",
|
75
|
+
"one"=>"ນ້ອຍກວ່າ 1 ວິນາທີ ",
|
76
|
+
"two"=>"ນ້ອຍກວ່າ %{count} ວິນາທີ ",
|
77
|
+
"few"=>"ນ້ອຍກວ່າ %{count} ວິນາທີ ",
|
78
|
+
"many"=>"ນ້ອຍກວ່າ %{count} ວິນາທີ ",
|
79
|
+
"other"=>"ນ້ອຍກວ່າ %{count} ວິນາທີ "},
|
80
|
+
"over_x_years"=>
|
81
|
+
{"zero"=>"ຫຼາຍກວ່າ %{count} ປີ ",
|
82
|
+
"one"=>"ຫຼາຍກວ່າ 1 ປີ ",
|
83
|
+
"two"=>"ຫຼາຍກວ່າ %{count} ປີ ",
|
84
|
+
"few"=>"ຫຼາຍກວ່າ %{count} ປີ ",
|
85
|
+
"many"=>"ຫຼາຍກວ່າ %{count} ປີ ",
|
86
|
+
"other"=>"ຫຼາຍກວ່າ %{count} ປີ "},
|
87
|
+
"x_days"=>
|
88
|
+
{"zero"=>"%{count} ມື້ ",
|
89
|
+
"one"=>"1 ມື້ ",
|
90
|
+
"two"=>"%{count} ມື້ ",
|
91
|
+
"few"=>"%{count} ມື້ ",
|
92
|
+
"many"=>"%{count} ມື້ ",
|
93
|
+
"other"=>"%{count} ມື້ "},
|
94
|
+
"x_minutes"=>
|
95
|
+
{"zero"=>"%{count} ນາທີ ",
|
96
|
+
"one"=>"1 ນາທີ ",
|
97
|
+
"two"=>"%{count} ນາທີ ",
|
98
|
+
"few"=>"%{count} ນາທີ ",
|
99
|
+
"many"=>"%{count} ນາທີ ",
|
100
|
+
"other"=>"%{count} ນາທີ "},
|
101
|
+
"x_months"=>
|
102
|
+
{"zero"=>"%{count} ເດືອນ",
|
103
|
+
"one"=>"1 ເດືອນ",
|
104
|
+
"two"=>"%{count} ເດືອນ",
|
105
|
+
"few"=>"%{count} ເດືອນ",
|
106
|
+
"many"=>"%{count} ເດືອນ",
|
107
|
+
"other"=>"%{count} ເດືອນ"},
|
108
|
+
"x_seconds"=>
|
109
|
+
{"zero"=>"%{count} ວິນາທີ ",
|
110
|
+
"one"=>"1 ວິນາທີ ",
|
111
|
+
"two"=>"%{count} ວິນາທີ ",
|
112
|
+
"few"=>"%{count} ວິນາທີ ",
|
113
|
+
"many"=>"%{count} ວິນາທີ ",
|
114
|
+
"other"=>"%{count} ວິນາທີ "}},
|
115
|
+
"prompts"=>
|
116
|
+
{"day"=>"ວັນ",
|
117
|
+
"hour"=>"ຊົ່ວໂມງ",
|
118
|
+
"minute"=>"ນາທີ",
|
119
|
+
"month"=>"ເດືອນ",
|
120
|
+
"second"=>"ວິນາທີ",
|
121
|
+
"year"=>"ປີ"}}}
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,91 @@
|
|
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
|
+
autoload :Locale_af, 'when_exe/locales/af'
|
11
|
+
autoload :Locale_ar, 'when_exe/locales/ar'
|
12
|
+
autoload :Locale_az, 'when_exe/locales/az'
|
13
|
+
autoload :Locale_bg, 'when_exe/locales/bg'
|
14
|
+
autoload :Locale_bn, 'when_exe/locales/bn'
|
15
|
+
autoload :Locale_bs, 'when_exe/locales/bs'
|
16
|
+
autoload :Locale_ca, 'when_exe/locales/ca'
|
17
|
+
autoload :Locale_cs, 'when_exe/locales/cs'
|
18
|
+
autoload :Locale_cy, 'when_exe/locales/cy'
|
19
|
+
autoload :Locale_da, 'when_exe/locales/da'
|
20
|
+
autoload :Locale_de_AT, 'when_exe/locales/de_AT'
|
21
|
+
autoload :Locale_de_CH, 'when_exe/locales/de_CH'
|
22
|
+
autoload :Locale_de, 'when_exe/locales/de'
|
23
|
+
autoload :Locale_el, 'when_exe/locales/el'
|
24
|
+
autoload :Locale_en_AU, 'when_exe/locales/en_AU'
|
25
|
+
autoload :Locale_en_CA, 'when_exe/locales/en_CA'
|
26
|
+
autoload :Locale_en_GB, 'when_exe/locales/en_GB'
|
27
|
+
autoload :Locale_en_IN, 'when_exe/locales/en_IN'
|
28
|
+
autoload :Locale_en_NZ, 'when_exe/locales/en_NZ'
|
29
|
+
autoload :Locale_en, 'when_exe/locales/en'
|
30
|
+
autoload :Locale_eo, 'when_exe/locales/eo'
|
31
|
+
autoload :Locale_es_419, 'when_exe/locales/es_419'
|
32
|
+
autoload :Locale_es_AR, 'when_exe/locales/es_AR'
|
33
|
+
autoload :Locale_es_CL, 'when_exe/locales/es_CL'
|
34
|
+
autoload :Locale_es_CO, 'when_exe/locales/es_CO'
|
35
|
+
autoload :Locale_es_MX, 'when_exe/locales/es_MX'
|
36
|
+
autoload :Locale_es_PE, 'when_exe/locales/es_PE'
|
37
|
+
autoload :Locale_es_VE, 'when_exe/locales/es_VE'
|
38
|
+
autoload :Locale_es, 'when_exe/locales/es'
|
39
|
+
autoload :Locale_et, 'when_exe/locales/et'
|
40
|
+
autoload :Locale_eu, 'when_exe/locales/eu'
|
41
|
+
autoload :Locale_fa, 'when_exe/locales/fa'
|
42
|
+
autoload :Locale_fi, 'when_exe/locales/fi'
|
43
|
+
autoload :Locale_fr_CA, 'when_exe/locales/fr_CA'
|
44
|
+
autoload :Locale_fr_CH, 'when_exe/locales/fr_CH'
|
45
|
+
autoload :Locale_fr, 'when_exe/locales/fr'
|
46
|
+
autoload :Locale_gl, 'when_exe/locales/gl'
|
47
|
+
autoload :Locale_he, 'when_exe/locales/he'
|
48
|
+
autoload :Locale_hi_IN, 'when_exe/locales/hi_IN'
|
49
|
+
autoload :Locale_hi, 'when_exe/locales/hi'
|
50
|
+
autoload :Locale_hr, 'when_exe/locales/hr'
|
51
|
+
autoload :Locale_hu, 'when_exe/locales/hu'
|
52
|
+
autoload :Locale_id, 'when_exe/locales/id'
|
53
|
+
autoload :Locale_is, 'when_exe/locales/is'
|
54
|
+
autoload :Locale_it_CH, 'when_exe/locales/it_CH'
|
55
|
+
autoload :Locale_it, 'when_exe/locales/it'
|
56
|
+
autoload :Locale_ja, 'when_exe/locales/ja'
|
57
|
+
autoload :Locale_kn, 'when_exe/locales/kn'
|
58
|
+
autoload :Locale_ko, 'when_exe/locales/ko'
|
59
|
+
autoload :Locale_lo, 'when_exe/locales/lo'
|
60
|
+
autoload :Locale_lt, 'when_exe/locales/lt'
|
61
|
+
autoload :Locale_lv, 'when_exe/locales/lv'
|
62
|
+
autoload :Locale_mk, 'when_exe/locales/mk'
|
63
|
+
autoload :Locale_mn, 'when_exe/locales/mn'
|
64
|
+
autoload :Locale_nb, 'when_exe/locales/nb'
|
65
|
+
autoload :Locale_ne, 'when_exe/locales/ne'
|
66
|
+
autoload :Locale_nl, 'when_exe/locales/nl'
|
67
|
+
autoload :Locale_nn, 'when_exe/locales/nn'
|
68
|
+
autoload :Locale_or, 'when_exe/locales/or'
|
69
|
+
autoload :Locale_pl, 'when_exe/locales/pl'
|
70
|
+
autoload :Locale_pt_BR, 'when_exe/locales/pt_BR'
|
71
|
+
autoload :Locale_pt, 'when_exe/locales/pt'
|
72
|
+
autoload :Locale_rm, 'when_exe/locales/rm'
|
73
|
+
autoload :Locale_ro, 'when_exe/locales/ro'
|
74
|
+
autoload :Locale_ru, 'when_exe/locales/ru'
|
75
|
+
autoload :Locale_sk, 'when_exe/locales/sk'
|
76
|
+
autoload :Locale_sl, 'when_exe/locales/sl'
|
77
|
+
autoload :Locale_sr, 'when_exe/locales/sr'
|
78
|
+
autoload :Locale_sv, 'when_exe/locales/sv'
|
79
|
+
autoload :Locale_sw, 'when_exe/locales/sw'
|
80
|
+
autoload :Locale_th, 'when_exe/locales/th'
|
81
|
+
autoload :Locale_tl, 'when_exe/locales/tl'
|
82
|
+
autoload :Locale_tr, 'when_exe/locales/tr'
|
83
|
+
autoload :Locale_uk, 'when_exe/locales/uk'
|
84
|
+
autoload :Locale_uz, 'when_exe/locales/uz'
|
85
|
+
autoload :Locale_vi, 'when_exe/locales/vi'
|
86
|
+
autoload :Locale_wo, 'when_exe/locales/wo'
|
87
|
+
autoload :Locale_zh_CN, 'when_exe/locales/zh_CN'
|
88
|
+
autoload :Locale_zh_HK, 'when_exe/locales/zh_HK'
|
89
|
+
autoload :Locale_zh_TW, 'when_exe/locales/zh_TW'
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,111 @@
|
|
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/lt.yml
|
12
|
+
|
13
|
+
Locale_lt =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Sek", "Pir", "Ant", "Tre", "Ket", "Pen", "Šeš"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"Sau",
|
19
|
+
"Vas",
|
20
|
+
"Kov",
|
21
|
+
"Bal",
|
22
|
+
"Geg",
|
23
|
+
"Bir",
|
24
|
+
"Lie",
|
25
|
+
"Rgp",
|
26
|
+
"Rgs",
|
27
|
+
"Spa",
|
28
|
+
"Lap",
|
29
|
+
"Grd"],
|
30
|
+
"day_names"=>
|
31
|
+
["sekmadienis",
|
32
|
+
"pirmadienis",
|
33
|
+
"antradienis",
|
34
|
+
"trečiadienis",
|
35
|
+
"ketvirtadienis",
|
36
|
+
"penktadienis",
|
37
|
+
"šeštadienis"],
|
38
|
+
"formats"=>{"default"=>"%Y-%m-%d", "long"=>"%B %d, %Y", "short"=>"%b %d"},
|
39
|
+
"month_names"=>
|
40
|
+
[nil,
|
41
|
+
"sausio",
|
42
|
+
"vasario",
|
43
|
+
"kovo",
|
44
|
+
"balandžio",
|
45
|
+
"gegužės",
|
46
|
+
"birželio",
|
47
|
+
"liepos",
|
48
|
+
"rugpjūčio",
|
49
|
+
"rugsėjo",
|
50
|
+
"spalio",
|
51
|
+
"lapkričio",
|
52
|
+
"gruodžio"],
|
53
|
+
"order"=>[:year, :month, :day]},
|
54
|
+
"time"=>
|
55
|
+
{"am"=>"am",
|
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"=>"pm"},
|
62
|
+
"datetime"=>
|
63
|
+
{"distance_in_words"=>
|
64
|
+
{"about_x_hours"=>
|
65
|
+
{"one"=>"apie 1 valanda",
|
66
|
+
"few"=>"apie %{count} valandų",
|
67
|
+
"other"=>"apie %{count} valandų"},
|
68
|
+
"about_x_months"=>
|
69
|
+
{"one"=>"apie 1 mėnuo",
|
70
|
+
"few"=>"apie %{count} mėnesiai",
|
71
|
+
"other"=>"apie %{count} mėnesiai"},
|
72
|
+
"about_x_years"=>
|
73
|
+
{"one"=>"apie 1 metai",
|
74
|
+
"few"=>"apie %{count} metų",
|
75
|
+
"other"=>"apie %{count} metų"},
|
76
|
+
"half_a_minute"=>"pusė minutės",
|
77
|
+
"less_than_x_minutes"=>
|
78
|
+
{"one"=>"mažiau nei minutė",
|
79
|
+
"few"=>"mažiau nei %{count} minutės",
|
80
|
+
"other"=>"mažiau nei %{count} minutės"},
|
81
|
+
"less_than_x_seconds"=>
|
82
|
+
{"one"=>"mažiau nei 1 sekundė",
|
83
|
+
"few"=>"mažiau nei %{count} sekundės",
|
84
|
+
"other"=>"mažiau nei %{count} sekundės"},
|
85
|
+
"over_x_years"=>
|
86
|
+
{"one"=>"virš 1 metų",
|
87
|
+
"few"=>"virš %{count} metų",
|
88
|
+
"other"=>"virš %{count} metų"},
|
89
|
+
"x_days"=>
|
90
|
+
{"one"=>"1 diena", "few"=>"%{count} dienų", "other"=>"%{count} dienų"},
|
91
|
+
"x_minutes"=>
|
92
|
+
{"one"=>"1 minutė",
|
93
|
+
"few"=>"%{count} minutės",
|
94
|
+
"other"=>"%{count} minutės"},
|
95
|
+
"x_months"=>
|
96
|
+
{"one"=>"1 mėnuo",
|
97
|
+
"few"=>"%{count} mėnesiai",
|
98
|
+
"other"=>"%{count} mėnesiai"},
|
99
|
+
"x_seconds"=>
|
100
|
+
{"one"=>"1 sekundė",
|
101
|
+
"few"=>"%{count} sekundės",
|
102
|
+
"other"=>"%{count} sekundės"}},
|
103
|
+
"prompts"=>
|
104
|
+
{"day"=>"Diena",
|
105
|
+
"hour"=>"Valanda",
|
106
|
+
"minute"=>"Minutė",
|
107
|
+
"month"=>"Mėnuo",
|
108
|
+
"second"=>"Sekundės",
|
109
|
+
"year"=>"Metai"}}}
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,118 @@
|
|
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/lv.yml
|
12
|
+
|
13
|
+
Locale_lv =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Sv.", "P.", "O.", "T.", "C.", "Pk.", "S."],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"Janv",
|
19
|
+
"Febr",
|
20
|
+
"Marts",
|
21
|
+
"Apr",
|
22
|
+
"Maijs",
|
23
|
+
"Jūn",
|
24
|
+
"Jūl",
|
25
|
+
"Aug",
|
26
|
+
"Sept",
|
27
|
+
"Okt",
|
28
|
+
"Nov",
|
29
|
+
"Dec"],
|
30
|
+
"day_names"=>
|
31
|
+
["svētdiena",
|
32
|
+
"pirmdiena",
|
33
|
+
"otrdiena",
|
34
|
+
"trešdiena",
|
35
|
+
"ceturtdiena",
|
36
|
+
"piektdiena",
|
37
|
+
"sestdiena"],
|
38
|
+
"formats"=>
|
39
|
+
{"default"=>"%d.%m.%Y.", "long"=>"%Y. gada %e. %B", "short"=>"%e. %B"},
|
40
|
+
"month_names"=>
|
41
|
+
[nil,
|
42
|
+
"janvārī",
|
43
|
+
"februārī",
|
44
|
+
"martā",
|
45
|
+
"aprīlī",
|
46
|
+
"maijā",
|
47
|
+
"jūnijā",
|
48
|
+
"jūlijā",
|
49
|
+
"augustā",
|
50
|
+
"septembrī",
|
51
|
+
"oktobrī",
|
52
|
+
"novembrī",
|
53
|
+
"decembrī"],
|
54
|
+
"order"=>[:year, :month, :day]},
|
55
|
+
"time"=>
|
56
|
+
{"am"=>"priekšpusdiena",
|
57
|
+
"formats"=>
|
58
|
+
{"default"=>"%Y. gada %e. %B, %H:%M",
|
59
|
+
"long"=>"%Y. gada %e. %B, %H:%M:%S",
|
60
|
+
"short"=>"%d.%m.%Y., %H:%M",
|
61
|
+
"time"=>"%H:%M"},
|
62
|
+
"pm"=>"pēcpusdiena"},
|
63
|
+
"datetime"=>
|
64
|
+
{"distance_in_words"=>
|
65
|
+
{"about_x_hours"=>
|
66
|
+
{"zero"=>"apmēram %{count} stundas",
|
67
|
+
"one"=>"apmēram %{count} stunda",
|
68
|
+
"other"=>"apmēram %{count} stundas"},
|
69
|
+
"about_x_months"=>
|
70
|
+
{"zero"=>"apmēram %{count} mēneši",
|
71
|
+
"one"=>"apmēram %{count} mēnesis",
|
72
|
+
"other"=>"apmēram %{count} mēneši"},
|
73
|
+
"about_x_years"=>
|
74
|
+
{"zero"=>"apmēram %{count} gadi",
|
75
|
+
"one"=>"apmēram %{count} gads",
|
76
|
+
"other"=>"apmēram %{count} gadi"},
|
77
|
+
"almost_x_years"=>
|
78
|
+
{"zero"=>"gandrīz %{count} gadi",
|
79
|
+
"one"=>"gandrīz %{count} gads",
|
80
|
+
"other"=>"gandrīz %{count} gadi"},
|
81
|
+
"half_a_minute"=>"pusminūte",
|
82
|
+
"less_than_x_minutes"=>
|
83
|
+
{"zero"=>"mazāk par %{count} minūtēm",
|
84
|
+
"one"=>"mazāk par %{count} minūti",
|
85
|
+
"other"=>"mazāk par %{count} minūtēm"},
|
86
|
+
"less_than_x_seconds"=>
|
87
|
+
{"zero"=>"mazāk par %{count} sekundēm",
|
88
|
+
"one"=>"mazāk par %{count} sekundi",
|
89
|
+
"other"=>"mazāk par %{count} sekundēm"},
|
90
|
+
"over_x_years"=>
|
91
|
+
{"zero"=>"vairāk kā %{count} gadi",
|
92
|
+
"one"=>"vairāk kā %{count} gads",
|
93
|
+
"other"=>"vairāk kā %{count} gadi"},
|
94
|
+
"x_days"=>
|
95
|
+
{"zero"=>"%{count} dienas",
|
96
|
+
"one"=>"%{count} diena",
|
97
|
+
"other"=>"%{count} dienas"},
|
98
|
+
"x_minutes"=>
|
99
|
+
{"zero"=>"%{count} minūtes",
|
100
|
+
"one"=>"%{count} minūte",
|
101
|
+
"other"=>"%{count} minūtes"},
|
102
|
+
"x_months"=>
|
103
|
+
{"zero"=>"%{count} mēneši",
|
104
|
+
"one"=>"%{count} mēnesis",
|
105
|
+
"other"=>"%{count} mēneši"},
|
106
|
+
"x_seconds"=>
|
107
|
+
{"zero"=>"%{count} sekundes",
|
108
|
+
"one"=>"%{count} sekunde",
|
109
|
+
"other"=>"%{count} sekundes"}},
|
110
|
+
"prompts"=>
|
111
|
+
{"day"=>"diena",
|
112
|
+
"hour"=>"stunda",
|
113
|
+
"minute"=>"minūte",
|
114
|
+
"month"=>"mēnesis",
|
115
|
+
"second"=>"sekunde",
|
116
|
+
"year"=>"gads"}}}
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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/mk.yml
|
12
|
+
|
13
|
+
Locale_mk =
|
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
|
+
"Понеделник",
|
33
|
+
"Вторник",
|
34
|
+
"Среда",
|
35
|
+
"Четврток",
|
36
|
+
"Петок",
|
37
|
+
"Сабота"],
|
38
|
+
"formats"=>{"default"=>"%d/%m/%Y", "long"=>"%B %e, %Y", "short"=>"%e %b"},
|
39
|
+
"month_names"=>
|
40
|
+
[nil,
|
41
|
+
"Јануари",
|
42
|
+
"Февруари",
|
43
|
+
"Март",
|
44
|
+
"Април",
|
45
|
+
"Мај",
|
46
|
+
"Јуни",
|
47
|
+
"Јули",
|
48
|
+
"Август",
|
49
|
+
"Септември",
|
50
|
+
"Октомври",
|
51
|
+
"Ноември",
|
52
|
+
"Декември"],
|
53
|
+
"order"=>[:day, :month, :year]},
|
54
|
+
"time"=>
|
55
|
+
{"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"=>"ПМ"},
|
62
|
+
"datetime"=>
|
63
|
+
{"distance_in_words"=>
|
64
|
+
{"about_x_hours"=>
|
65
|
+
{"one"=>"околу %{count} час", "other"=>"околу %{count} часа"},
|
66
|
+
"about_x_months"=>
|
67
|
+
{"one"=>"околу %{count} месец", "other"=>"околу %{count} месеци"},
|
68
|
+
"about_x_years"=>
|
69
|
+
{"one"=>"околу %{count} година", "other"=>"околу %{count} години"},
|
70
|
+
"almost_x_years"=>
|
71
|
+
{"one"=>"скоро %{count} година", "other"=>"скоро %{count} години"},
|
72
|
+
"half_a_minute"=>"пола минута",
|
73
|
+
"less_than_x_minutes"=>
|
74
|
+
{"one"=>"помалку од %{count} минута",
|
75
|
+
"other"=>"помалку од %{count} минути"},
|
76
|
+
"less_than_x_seconds"=>
|
77
|
+
{"one"=>"помалку од %{count} секунда",
|
78
|
+
"other"=>"помалку од %{count} секунди"},
|
79
|
+
"over_x_years"=>
|
80
|
+
{"one"=>"над %{count} година", "other"=>"над %{count} години"},
|
81
|
+
"x_days"=>{"one"=>"%{count} ден", "other"=>"%{count} денови"},
|
82
|
+
"x_minutes"=>{"one"=>"%{count} минута", "other"=>"%{count} минути"},
|
83
|
+
"x_months"=>{"one"=>"%{count} месец", "other"=>"%{count} месеци"},
|
84
|
+
"x_seconds"=>{"one"=>"%{count} секунда", "other"=>"%{count} секунди"}},
|
85
|
+
"prompts"=>
|
86
|
+
{"day"=>"Ден",
|
87
|
+
"hour"=>"Час",
|
88
|
+
"minute"=>"Минута",
|
89
|
+
"month"=>"Месец",
|
90
|
+
"second"=>"Секунди",
|
91
|
+
"year"=>"Година"}}}
|
92
|
+
end
|
93
|
+
end
|