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,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/is.yml
|
12
|
+
|
13
|
+
Locale_is =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["sun", "mán", "þri", "mið", "fim", "fös", "lau"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"jan",
|
19
|
+
"feb",
|
20
|
+
"mar",
|
21
|
+
"apr",
|
22
|
+
"maí",
|
23
|
+
"jún",
|
24
|
+
"júl",
|
25
|
+
"ágú",
|
26
|
+
"sep",
|
27
|
+
"okt",
|
28
|
+
"nóv",
|
29
|
+
"des"],
|
30
|
+
"day_names"=>
|
31
|
+
["sunnudaginn",
|
32
|
+
"mánudaginn",
|
33
|
+
"þriðjudaginn",
|
34
|
+
"miðvikudaginn",
|
35
|
+
"fimmtudaginn",
|
36
|
+
"föstudaginn",
|
37
|
+
"laugardaginn"],
|
38
|
+
"formats"=>{"default"=>"%d.%m.%Y", "long"=>"%e. %B %Y", "short"=>"%e. %b"},
|
39
|
+
"month_names"=>
|
40
|
+
[nil,
|
41
|
+
"janúar",
|
42
|
+
"febrúar",
|
43
|
+
"mars",
|
44
|
+
"apríl",
|
45
|
+
"maí",
|
46
|
+
"júní",
|
47
|
+
"júlí",
|
48
|
+
"ágúst",
|
49
|
+
"september",
|
50
|
+
"október",
|
51
|
+
"nóvember",
|
52
|
+
"desember"],
|
53
|
+
"order"=>[:day, :month, :year]},
|
54
|
+
"time"=>
|
55
|
+
{"am"=>"",
|
56
|
+
"formats"=>
|
57
|
+
{"default"=>"%A %e. %B %Y kl. %H:%M",
|
58
|
+
"long"=>"%A %e. %B %Y kl. %H:%M",
|
59
|
+
"short"=>"%e. %B kl. %H:%M",
|
60
|
+
"time"=>"%H:%M"},
|
61
|
+
"pm"=>""},
|
62
|
+
"datetime"=>
|
63
|
+
{"distance_in_words"=>
|
64
|
+
{"about_x_hours"=>
|
65
|
+
{"one"=>"u.þ.b. 1 klukkustund",
|
66
|
+
"other"=>"u.þ.b. %{count} klukkustundir"},
|
67
|
+
"about_x_months"=>
|
68
|
+
{"one"=>"u.þ.b. 1 mánuður", "other"=>"u.þ.b. %{count} mánuðir"},
|
69
|
+
"about_x_years"=>{"one"=>"u.þ.b. 1 ár", "other"=>"u.þ.b. %{count} ár"},
|
70
|
+
"almost_x_years"=>{"one"=>"næstum 1 ár", "other"=>"næstum %{count} ár"},
|
71
|
+
"half_a_minute"=>"hálf mínúta",
|
72
|
+
"less_than_x_minutes"=>
|
73
|
+
{"one"=>"minna en 1 mínúta", "other"=>"minna en %{count} mínútur"},
|
74
|
+
"less_than_x_seconds"=>
|
75
|
+
{"one"=>"minna en 1 sekúnda", "other"=>"minna en %{count} sekúndur"},
|
76
|
+
"over_x_years"=>{"one"=>"meira en 1 ár", "other"=>"meira en %{count} ár"},
|
77
|
+
"x_days"=>{"one"=>"1 dagur", "other"=>"%{count} dagar"},
|
78
|
+
"x_minutes"=>{"one"=>"1 mínúta", "other"=>"%{count} mínútur"},
|
79
|
+
"x_months"=>{"one"=>"1 mánuður", "other"=>"%{count} mánuðir"},
|
80
|
+
"x_seconds"=>{"one"=>"1 sekúnda", "other"=>"%{count} sekúndur"}},
|
81
|
+
"prompts"=>
|
82
|
+
{"day"=>"Dagur",
|
83
|
+
"hour"=>"Klukkustund",
|
84
|
+
"minute"=>"Mínúta",
|
85
|
+
"month"=>"Mánuður",
|
86
|
+
"second"=>"Sekúnda",
|
87
|
+
"year"=>"Ár"}}}
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,87 @@
|
|
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/it.yml
|
12
|
+
|
13
|
+
Locale_it =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["dom", "lun", "mar", "mer", "gio", "ven", "sab"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"gen",
|
19
|
+
"feb",
|
20
|
+
"mar",
|
21
|
+
"apr",
|
22
|
+
"mag",
|
23
|
+
"giu",
|
24
|
+
"lug",
|
25
|
+
"ago",
|
26
|
+
"set",
|
27
|
+
"ott",
|
28
|
+
"nov",
|
29
|
+
"dic"],
|
30
|
+
"day_names"=>
|
31
|
+
["domenica",
|
32
|
+
"lunedì",
|
33
|
+
"martedì",
|
34
|
+
"mercoledì",
|
35
|
+
"giovedì",
|
36
|
+
"venerdì",
|
37
|
+
"sabato"],
|
38
|
+
"formats"=>{"default"=>"%d-%m-%Y", "long"=>"%d %B %Y", "short"=>"%d %b"},
|
39
|
+
"month_names"=>
|
40
|
+
[nil,
|
41
|
+
"gennaio",
|
42
|
+
"febbraio",
|
43
|
+
"marzo",
|
44
|
+
"aprile",
|
45
|
+
"maggio",
|
46
|
+
"giugno",
|
47
|
+
"luglio",
|
48
|
+
"agosto",
|
49
|
+
"settembre",
|
50
|
+
"ottobre",
|
51
|
+
"novembre",
|
52
|
+
"dicembre"],
|
53
|
+
"order"=>[:day, :month, :year]},
|
54
|
+
"time"=>
|
55
|
+
{"am"=>"am",
|
56
|
+
"formats"=>
|
57
|
+
{"default"=>"%a %d %b %Y, %H:%M:%S %z",
|
58
|
+
"long"=>"%d %B %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"=>{"one"=>"circa un'ora", "other"=>"circa %{count} ore"},
|
65
|
+
"about_x_months"=>
|
66
|
+
{"one"=>"circa un mese", "other"=>"circa %{count} mesi"},
|
67
|
+
"about_x_years"=>{"one"=>"circa un anno", "other"=>"circa %{count} anni"},
|
68
|
+
"almost_x_years"=>{"one"=>"circa 1 anno", "other"=>"circa %{count} anni"},
|
69
|
+
"half_a_minute"=>"mezzo minuto",
|
70
|
+
"less_than_x_minutes"=>
|
71
|
+
{"one"=>"meno di un minuto", "other"=>"meno di %{count} minuti"},
|
72
|
+
"less_than_x_seconds"=>
|
73
|
+
{"one"=>"meno di un secondo", "other"=>"meno di %{count} secondi"},
|
74
|
+
"over_x_years"=>{"one"=>"oltre un anno", "other"=>"oltre %{count} anni"},
|
75
|
+
"x_days"=>{"one"=>"1 giorno", "other"=>"%{count} giorni"},
|
76
|
+
"x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minuti"},
|
77
|
+
"x_months"=>{"one"=>"1 mese", "other"=>"%{count} mesi"},
|
78
|
+
"x_seconds"=>{"one"=>"1 secondo", "other"=>"%{count} secondi"}},
|
79
|
+
"prompts"=>
|
80
|
+
{"day"=>"Giorno",
|
81
|
+
"hour"=>"Ora",
|
82
|
+
"minute"=>"Minuto",
|
83
|
+
"month"=>"Mese",
|
84
|
+
"second"=>"Secondi",
|
85
|
+
"year"=>"Anno"}}}
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,87 @@
|
|
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/it-CH.yml
|
12
|
+
|
13
|
+
Locale_it_CH =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"Gen",
|
19
|
+
"Feb",
|
20
|
+
"Mar",
|
21
|
+
"Apr",
|
22
|
+
"Mag",
|
23
|
+
"Giu",
|
24
|
+
"Lug",
|
25
|
+
"Ago",
|
26
|
+
"Set",
|
27
|
+
"Ott",
|
28
|
+
"Nov",
|
29
|
+
"Dic"],
|
30
|
+
"day_names"=>
|
31
|
+
["Domenica",
|
32
|
+
"Lunedì",
|
33
|
+
"Martedì",
|
34
|
+
"Mercoledì",
|
35
|
+
"Giovedì",
|
36
|
+
"Venerdì",
|
37
|
+
"Sabato"],
|
38
|
+
"formats"=>{"default"=>"%d-%m-%Y", "long"=>"%d %B %Y", "short"=>"%d %b"},
|
39
|
+
"month_names"=>
|
40
|
+
[nil,
|
41
|
+
"Gennaio",
|
42
|
+
"Febbraio",
|
43
|
+
"Marzo",
|
44
|
+
"Aprile",
|
45
|
+
"Maggio",
|
46
|
+
"Giugno",
|
47
|
+
"Luglio",
|
48
|
+
"Agosto",
|
49
|
+
"Settembre",
|
50
|
+
"Ottobre",
|
51
|
+
"Novembre",
|
52
|
+
"Dicembre"],
|
53
|
+
"order"=>[:day, :month, :year]},
|
54
|
+
"time"=>
|
55
|
+
{"am"=>"am",
|
56
|
+
"formats"=>
|
57
|
+
{"default"=>"%a %d %b %Y, %H:%M:%S %z",
|
58
|
+
"long"=>"%d %B %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"=>{"one"=>"circa un'ora", "other"=>"circa %{count} ore"},
|
65
|
+
"about_x_months"=>
|
66
|
+
{"one"=>"circa un mese", "other"=>"circa %{count} mesi"},
|
67
|
+
"about_x_years"=>{"one"=>"circa un anno", "other"=>"circa %{count} anni"},
|
68
|
+
"almost_x_years"=>{"one"=>"circa 1 anno", "other"=>"circa %{count} anni"},
|
69
|
+
"half_a_minute"=>"mezzo minuto",
|
70
|
+
"less_than_x_minutes"=>
|
71
|
+
{"one"=>"meno di un minuto", "other"=>"meno di %{count} minuti"},
|
72
|
+
"less_than_x_seconds"=>
|
73
|
+
{"one"=>"meno di un secondo", "other"=>"meno di %{count} secondi"},
|
74
|
+
"over_x_years"=>{"one"=>"oltre un anno", "other"=>"oltre %{count} anni"},
|
75
|
+
"x_days"=>{"one"=>"1 giorno", "other"=>"%{count} giorni"},
|
76
|
+
"x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minuti"},
|
77
|
+
"x_months"=>{"one"=>"1 mese", "other"=>"%{count} mesi"},
|
78
|
+
"x_seconds"=>{"one"=>"1 secondo", "other"=>"%{count} secondi"}},
|
79
|
+
"prompts"=>
|
80
|
+
{"day"=>"Giorno",
|
81
|
+
"hour"=>"Ora",
|
82
|
+
"minute"=>"Minuto",
|
83
|
+
"month"=>"Mese",
|
84
|
+
"second"=>"Secondi",
|
85
|
+
"year"=>"Anno"}}}
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,78 @@
|
|
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/ja.yml
|
12
|
+
|
13
|
+
Locale_ja =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["日", "月", "火", "水", "木", "金", "土"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"1月",
|
19
|
+
"2月",
|
20
|
+
"3月",
|
21
|
+
"4月",
|
22
|
+
"5月",
|
23
|
+
"6月",
|
24
|
+
"7月",
|
25
|
+
"8月",
|
26
|
+
"9月",
|
27
|
+
"10月",
|
28
|
+
"11月",
|
29
|
+
"12月"],
|
30
|
+
"day_names"=>["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
|
31
|
+
"formats"=>
|
32
|
+
{"default"=>"%Y/%m/%d", "long"=>"%Y年%m月%d日(%a)", "short"=>"%m/%d"},
|
33
|
+
"month_names"=>
|
34
|
+
[nil,
|
35
|
+
"1月",
|
36
|
+
"2月",
|
37
|
+
"3月",
|
38
|
+
"4月",
|
39
|
+
"5月",
|
40
|
+
"6月",
|
41
|
+
"7月",
|
42
|
+
"8月",
|
43
|
+
"9月",
|
44
|
+
"10月",
|
45
|
+
"11月",
|
46
|
+
"12月"],
|
47
|
+
"order"=>[:year, :month, :day]},
|
48
|
+
"time"=>
|
49
|
+
{"am"=>"午前",
|
50
|
+
"formats"=>
|
51
|
+
{"default"=>"%Y/%m/%d %H:%M:%S",
|
52
|
+
"long"=>"%Y年%m月%d日(%a) %H時%M分%S秒 %z",
|
53
|
+
"short"=>"%y/%m/%d %H:%M",
|
54
|
+
"time"=>"%H:%M:%S"},
|
55
|
+
"pm"=>"午後"},
|
56
|
+
"datetime"=>
|
57
|
+
{"distance_in_words"=>
|
58
|
+
{"about_x_hours"=>{"one"=>"約1時間", "other"=>"約%{count}時間"},
|
59
|
+
"about_x_months"=>{"one"=>"約1ヶ月", "other"=>"約%{count}ヶ月"},
|
60
|
+
"about_x_years"=>{"one"=>"約1年", "other"=>"約%{count}年"},
|
61
|
+
"almost_x_years"=>{"one"=>"1年弱", "other"=>"%{count}年弱"},
|
62
|
+
"half_a_minute"=>"30秒前後",
|
63
|
+
"less_than_x_minutes"=>{"one"=>"1分以内", "other"=>"%{count}分以内"},
|
64
|
+
"less_than_x_seconds"=>{"one"=>"1秒以内", "other"=>"%{count}秒以内"},
|
65
|
+
"over_x_years"=>{"one"=>"1年以上", "other"=>"%{count}年以上"},
|
66
|
+
"x_days"=>{"one"=>"1日", "other"=>"%{count}日"},
|
67
|
+
"x_minutes"=>{"one"=>"1分", "other"=>"%{count}分"},
|
68
|
+
"x_months"=>{"one"=>"1ヶ月", "other"=>"%{count}ヶ月"},
|
69
|
+
"x_seconds"=>{"one"=>"1秒", "other"=>"%{count}秒"}},
|
70
|
+
"prompts"=>
|
71
|
+
{"day"=>"日",
|
72
|
+
"hour"=>"時",
|
73
|
+
"minute"=>"分",
|
74
|
+
"month"=>"月",
|
75
|
+
"second"=>"秒",
|
76
|
+
"year"=>"年"}}}
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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/kn.yml
|
12
|
+
|
13
|
+
Locale_kn =
|
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"=>"%Y-%m-%d", "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"=>[:year, :month, :day]},
|
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"=>
|
59
|
+
{"one"=>"ಸುಮಾರು ಒಂದು ಗಂಟೆ", "other"=>"ಸುಮಾರು %{count} ಗಂಟೆಗಳು"},
|
60
|
+
"about_x_months"=>
|
61
|
+
{"one"=>"ಸುಮಾರು ಒಂದು ತಿಂಗಳು", "other"=>"ಸುಮಾರು %{count} ತಿಂಗಳುಗಳು"},
|
62
|
+
"about_x_years"=>
|
63
|
+
{"one"=>"ಸುಮಾರು ಒಂದು ವರುಷ", "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"=>
|
72
|
+
{"one"=>"ಒಂದು ವರುಷಕ್ಕಿಂತ ಹೆಚ್ಚು",
|
73
|
+
"other"=>"%{count} ವರುಷಗಳಿಗಿಂತ ಹೆಚ್ಚು"},
|
74
|
+
"x_days"=>{"one"=>"1 ದಿನ", "other"=>"%{count} ದಿನಗಳು"},
|
75
|
+
"x_minutes"=>{"one"=>"1 ನಿಮಿಷ", "other"=>"%{count} ನಿಮಿಷಗಳು"},
|
76
|
+
"x_months"=>{"one"=>"1 ತಿಂಗಳು", "other"=>"%{count} ತಿಂಗಳುಗಳು"},
|
77
|
+
"x_seconds"=>{"one"=>"1 ಸೆಕೆಂಡ್", "other"=>"%{count} ಸೆಕೆಂಡುಗಳು"}},
|
78
|
+
"prompts"=>
|
79
|
+
{"day"=>"ದಿನ",
|
80
|
+
"hour"=>"ಗಂಟೆ",
|
81
|
+
"minute"=>"ನಿಮಿಷ",
|
82
|
+
"month"=>"ತಿಂಗಳು",
|
83
|
+
"second"=>"ಸೆಕೆಂಡು",
|
84
|
+
"year"=>"ವರುಷ"}}}
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,78 @@
|
|
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/ko.yml
|
12
|
+
|
13
|
+
Locale_ko =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["일", "월", "화", "수", "목", "금", "토"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"1월",
|
19
|
+
"2월",
|
20
|
+
"3월",
|
21
|
+
"4월",
|
22
|
+
"5월",
|
23
|
+
"6월",
|
24
|
+
"7월",
|
25
|
+
"8월",
|
26
|
+
"9월",
|
27
|
+
"10월",
|
28
|
+
"11월",
|
29
|
+
"12월"],
|
30
|
+
"day_names"=>["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],
|
31
|
+
"formats"=>
|
32
|
+
{"default"=>"%Y/%m/%d", "long"=>"%Y년 %m월 %d일 (%a)", "short"=>"%m/%d"},
|
33
|
+
"month_names"=>
|
34
|
+
[nil,
|
35
|
+
"1월",
|
36
|
+
"2월",
|
37
|
+
"3월",
|
38
|
+
"4월",
|
39
|
+
"5월",
|
40
|
+
"6월",
|
41
|
+
"7월",
|
42
|
+
"8월",
|
43
|
+
"9월",
|
44
|
+
"10월",
|
45
|
+
"11월",
|
46
|
+
"12월"],
|
47
|
+
"order"=>[:year, :month, :day]},
|
48
|
+
"time"=>
|
49
|
+
{"am"=>"오전",
|
50
|
+
"formats"=>
|
51
|
+
{"default"=>"%Y/%m/%d %H:%M:%S",
|
52
|
+
"long"=>"%Y년 %B월 %d일, %H시 %M분 %S초 %Z",
|
53
|
+
"short"=>"%y/%m/%d %H:%M",
|
54
|
+
"time"=>"%H:%M:%S"},
|
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"=>"30초",
|
63
|
+
"less_than_x_minutes"=>{"one"=>"일 분 이하", "other"=>"%{count}분 이하"},
|
64
|
+
"less_than_x_seconds"=>{"one"=>"일 초 이하", "other"=>"%{count}초 이하"},
|
65
|
+
"over_x_years"=>{"one"=>"일 년 이상", "other"=>"%{count}년 이상"},
|
66
|
+
"x_days"=>{"one"=>"하루", "other"=>"%{count}일"},
|
67
|
+
"x_minutes"=>{"one"=>"일 분", "other"=>"%{count}분"},
|
68
|
+
"x_months"=>{"one"=>"한 달", "other"=>"%{count}달"},
|
69
|
+
"x_seconds"=>{"one"=>"일 초", "other"=>"%{count}초"}},
|
70
|
+
"prompts"=>
|
71
|
+
{"day"=>"일",
|
72
|
+
"hour"=>"시",
|
73
|
+
"minute"=>"분",
|
74
|
+
"month"=>"월",
|
75
|
+
"second"=>"초",
|
76
|
+
"year"=>"년"}}}
|
77
|
+
end
|
78
|
+
end
|