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.
- 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,96 @@
|
|
|
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/tr.yml
|
|
12
|
+
|
|
13
|
+
Locale_tr =
|
|
14
|
+
{"date"=>
|
|
15
|
+
{"abbr_day_names"=>["Pzr", "Pzt", "Sal", "Çrş", "Prş", "Cum", "Cts"],
|
|
16
|
+
"abbr_month_names"=>
|
|
17
|
+
[nil,
|
|
18
|
+
"Oca",
|
|
19
|
+
"Şub",
|
|
20
|
+
"Mar",
|
|
21
|
+
"Nis",
|
|
22
|
+
"May",
|
|
23
|
+
"Haz",
|
|
24
|
+
"Tem",
|
|
25
|
+
"Ağu",
|
|
26
|
+
"Eyl",
|
|
27
|
+
"Eki",
|
|
28
|
+
"Kas",
|
|
29
|
+
"Ara"],
|
|
30
|
+
"day_names"=>
|
|
31
|
+
["Pazar",
|
|
32
|
+
"Pazartesi",
|
|
33
|
+
"Salı",
|
|
34
|
+
"Çarşamba",
|
|
35
|
+
"Perşembe",
|
|
36
|
+
"Cuma",
|
|
37
|
+
"Cumartesi"],
|
|
38
|
+
"formats"=>
|
|
39
|
+
{"default"=>"%d.%m.%Y", "long"=>"%e %B %Y, %A", "short"=>"%e %b"},
|
|
40
|
+
"month_names"=>
|
|
41
|
+
[nil,
|
|
42
|
+
"Ocak",
|
|
43
|
+
"Şubat",
|
|
44
|
+
"Mart",
|
|
45
|
+
"Nisan",
|
|
46
|
+
"Mayıs",
|
|
47
|
+
"Haziran",
|
|
48
|
+
"Temmuz",
|
|
49
|
+
"Ağustos",
|
|
50
|
+
"Eylül",
|
|
51
|
+
"Ekim",
|
|
52
|
+
"Kasım",
|
|
53
|
+
"Aralık"],
|
|
54
|
+
"order"=>[:day, :month, :year]},
|
|
55
|
+
"time"=>
|
|
56
|
+
{"am"=>"öğleden önce",
|
|
57
|
+
"formats"=>
|
|
58
|
+
{"default"=>"%a %d.%b.%y %H:%M",
|
|
59
|
+
"long"=>"%e %B %Y, %A, %H:%M",
|
|
60
|
+
"short"=>"%e %B, %H:%M",
|
|
61
|
+
"time"=>"%H:%M"},
|
|
62
|
+
"pm"=>"öğleden sonra"},
|
|
63
|
+
"datetime"=>
|
|
64
|
+
{"distance_in_words"=>
|
|
65
|
+
{"about_x_hours"=>
|
|
66
|
+
{"one"=>"yaklaşık 1 saat", "other"=>"yaklaşık %{count} saat"},
|
|
67
|
+
"about_x_months"=>
|
|
68
|
+
{"one"=>"yaklaşık 1 ay", "other"=>"yaklaşık %{count} ay"},
|
|
69
|
+
"about_x_years"=>
|
|
70
|
+
{"one"=>"yaklaşık 1 yıl", "other"=>"yaklaşık %{count} yıl"},
|
|
71
|
+
"almost_x_years"=>
|
|
72
|
+
{"one"=>"neredeyse 1 yıl", "other"=>"neredeyse %{count} yıl"},
|
|
73
|
+
"half_a_minute"=>"yarım dakika",
|
|
74
|
+
"less_than_x_minutes"=>
|
|
75
|
+
{"one"=>"1 dakikadan az",
|
|
76
|
+
"other"=>"%{count} dakikadan az",
|
|
77
|
+
"zero"=>"1 dakikadan az"},
|
|
78
|
+
"less_than_x_seconds"=>
|
|
79
|
+
{"one"=>"1 saniyeden az",
|
|
80
|
+
"other"=>"%{count} saniyeden az",
|
|
81
|
+
"zero"=>"1 saniyeden az"},
|
|
82
|
+
"over_x_years"=>
|
|
83
|
+
{"one"=>"1 yıldan fazla", "other"=>"%{count} yıldan fazla"},
|
|
84
|
+
"x_days"=>{"one"=>"1 gün", "other"=>"%{count} gün"},
|
|
85
|
+
"x_minutes"=>{"one"=>"1 dakika", "other"=>"%{count} dakika"},
|
|
86
|
+
"x_months"=>{"one"=>"1 ay", "other"=>"%{count} ay"},
|
|
87
|
+
"x_seconds"=>{"one"=>"1 saniye", "other"=>"%{count} saniye"}},
|
|
88
|
+
"prompts"=>
|
|
89
|
+
{"day"=>"Gün",
|
|
90
|
+
"hour"=>"Saat",
|
|
91
|
+
"minute"=>"Dakika",
|
|
92
|
+
"month"=>"Ay",
|
|
93
|
+
"second"=>"Saniye",
|
|
94
|
+
"year"=>"Yıl"}}}
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
=begin
|
|
3
|
+
Copyright (C) 2012-2013 Takashi SUGA
|
|
4
|
+
|
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
|
6
|
+
=end
|
|
7
|
+
|
|
8
|
+
module When::BasicTypes
|
|
9
|
+
class M17n
|
|
10
|
+
|
|
11
|
+
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/uk.yml
|
|
12
|
+
|
|
13
|
+
Locale_uk =
|
|
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"=>"%d %B %Y", "short"=>"%d %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, %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"=>"по полудні"},
|
|
62
|
+
"datetime"=>
|
|
63
|
+
{"distance_in_words"=>
|
|
64
|
+
{"about_x_hours"=>
|
|
65
|
+
{"few"=>"близько %{count} години",
|
|
66
|
+
"many"=>"близько %{count} годин",
|
|
67
|
+
"one"=>"близько %{count} година",
|
|
68
|
+
"other"=>"близько %{count} години"},
|
|
69
|
+
"about_x_months"=>
|
|
70
|
+
{"few"=>"близько %{count} місяців",
|
|
71
|
+
"many"=>"близько %{count} місяців",
|
|
72
|
+
"one"=>"близько %{count} місяця",
|
|
73
|
+
"other"=>"близько %{count} місяця"},
|
|
74
|
+
"about_x_years"=>
|
|
75
|
+
{"few"=>"близько %{count} років",
|
|
76
|
+
"many"=>"близько %{count} років",
|
|
77
|
+
"one"=>"близько %{count} року",
|
|
78
|
+
"other"=>"близько %{count} року"},
|
|
79
|
+
"almost_x_years"=>
|
|
80
|
+
{"few"=>"майже %{count} років",
|
|
81
|
+
"many"=>"майже %{count} років",
|
|
82
|
+
"one"=>"майже %{count} роки",
|
|
83
|
+
"other"=>"майже %{count} років"},
|
|
84
|
+
"half_a_minute"=>"півхвилини",
|
|
85
|
+
"less_than_x_minutes"=>
|
|
86
|
+
{"few"=>"менше %{count} хвилин",
|
|
87
|
+
"many"=>"менше %{count} хвилин",
|
|
88
|
+
"one"=>"менше %{count} хвилини",
|
|
89
|
+
"other"=>"менше %{count} хвилини"},
|
|
90
|
+
"less_than_x_seconds"=>
|
|
91
|
+
{"few"=>"менше %{count} секунд",
|
|
92
|
+
"many"=>"менше %{count} секунд",
|
|
93
|
+
"one"=>"менше %{count} секунди",
|
|
94
|
+
"other"=>"менше %{count} секунди"},
|
|
95
|
+
"over_x_years"=>
|
|
96
|
+
{"few"=>"більше %{count} років",
|
|
97
|
+
"many"=>"більше %{count} років",
|
|
98
|
+
"one"=>"більше %{count} року",
|
|
99
|
+
"other"=>"більше %{count} року"},
|
|
100
|
+
"x_days"=>
|
|
101
|
+
{"few"=>"%{count} дні",
|
|
102
|
+
"many"=>"%{count} днів",
|
|
103
|
+
"one"=>"%{count} день",
|
|
104
|
+
"other"=>"%{count} дня"},
|
|
105
|
+
"x_minutes"=>
|
|
106
|
+
{"few"=>"%{count} хвилини",
|
|
107
|
+
"many"=>"%{count} хвилин",
|
|
108
|
+
"one"=>"%{count} хвилина",
|
|
109
|
+
"other"=>"%{count} хвилини"},
|
|
110
|
+
"x_months"=>
|
|
111
|
+
{"few"=>"%{count} місяці",
|
|
112
|
+
"many"=>"%{count} місяців",
|
|
113
|
+
"one"=>"%{count} місяць",
|
|
114
|
+
"other"=>"%{count} місяця"},
|
|
115
|
+
"x_seconds"=>
|
|
116
|
+
{"few"=>"%{count} секунди",
|
|
117
|
+
"many"=>"%{count} секунд",
|
|
118
|
+
"one"=>"%{count} секунда",
|
|
119
|
+
"other"=>"%{count} секунди"}},
|
|
120
|
+
"prompts"=>
|
|
121
|
+
{"day"=>"День",
|
|
122
|
+
"hour"=>"Година",
|
|
123
|
+
"minute"=>"Хвилина",
|
|
124
|
+
"month"=>"Місяць",
|
|
125
|
+
"second"=>"Секунда",
|
|
126
|
+
"year"=>"Рік"}}}
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
=begin
|
|
3
|
+
Copyright (C) 2012-2013 Takashi SUGA
|
|
4
|
+
|
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
|
6
|
+
=end
|
|
7
|
+
|
|
8
|
+
module When::BasicTypes
|
|
9
|
+
class M17n
|
|
10
|
+
|
|
11
|
+
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/uz.yml
|
|
12
|
+
|
|
13
|
+
Locale_uz =
|
|
14
|
+
{"date"=>
|
|
15
|
+
{"abbr_day_names"=>["Ya", "Du", "Sh", "Ch", "Pa", "Ju", "Sh"],
|
|
16
|
+
"abbr_month_names"=>
|
|
17
|
+
[nil,
|
|
18
|
+
"yan.",
|
|
19
|
+
"fev.",
|
|
20
|
+
"mart",
|
|
21
|
+
"apr.",
|
|
22
|
+
"may",
|
|
23
|
+
"iyun",
|
|
24
|
+
"iyul",
|
|
25
|
+
"avg.",
|
|
26
|
+
"sen.",
|
|
27
|
+
"okt.",
|
|
28
|
+
"noy.",
|
|
29
|
+
"dek."],
|
|
30
|
+
"day_names"=>
|
|
31
|
+
["yakshanba",
|
|
32
|
+
"dushanba",
|
|
33
|
+
"seshanbe",
|
|
34
|
+
"chorshanba",
|
|
35
|
+
"payshanba",
|
|
36
|
+
"juma",
|
|
37
|
+
"shanba"],
|
|
38
|
+
"formats"=>{"default"=>"%d.%m.%Y", "long"=>"%d %B %Y", "short"=>"%d %b"},
|
|
39
|
+
"month_names"=>
|
|
40
|
+
[nil,
|
|
41
|
+
"yanvar",
|
|
42
|
+
"fevral",
|
|
43
|
+
"mart",
|
|
44
|
+
"aprel",
|
|
45
|
+
"may",
|
|
46
|
+
"iyun",
|
|
47
|
+
"iyul",
|
|
48
|
+
"avgust",
|
|
49
|
+
"sentyabr",
|
|
50
|
+
"oktyabr",
|
|
51
|
+
"noyabr",
|
|
52
|
+
"dekabr"],
|
|
53
|
+
"order"=>[:day, :month, :year]},
|
|
54
|
+
"time"=>
|
|
55
|
+
{"am"=>"ertalab",
|
|
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"=>"kechasi"},
|
|
62
|
+
"datetime"=>
|
|
63
|
+
{"distance_in_words"=>
|
|
64
|
+
{"about_x_hours"=>
|
|
65
|
+
{"few"=>"chamasi %{count} soat",
|
|
66
|
+
"many"=>"chamasi %{count} soat",
|
|
67
|
+
"one"=>"chamasi %{count} soat",
|
|
68
|
+
"other"=>"chamasi %{count} soat"},
|
|
69
|
+
"about_x_months"=>
|
|
70
|
+
{"few"=>"chamasi %{count} oy",
|
|
71
|
+
"many"=>"chamasi %{count} oy",
|
|
72
|
+
"one"=>"chamasi %{count} oy",
|
|
73
|
+
"other"=>"chamasi %{count} oy"},
|
|
74
|
+
"about_x_years"=>
|
|
75
|
+
{"few"=>"chamasi %{count} yil",
|
|
76
|
+
"many"=>"chamasi %{count} yil",
|
|
77
|
+
"one"=>"chamasi %{count} yil",
|
|
78
|
+
"other"=>"chamasi %{count} yil"},
|
|
79
|
+
"almost_x_years"=>
|
|
80
|
+
{"one"=>"deyarli 1 yil",
|
|
81
|
+
"few"=>"deyarli %{count} yil",
|
|
82
|
+
"many"=>"deyarli %{count} yil",
|
|
83
|
+
"other"=>"deyarli %{count} yil"},
|
|
84
|
+
"half_a_minute"=>"bir daqiqadan kam",
|
|
85
|
+
"less_than_x_minutes"=>
|
|
86
|
+
{"few"=>"%{count} daqiqadan kam",
|
|
87
|
+
"many"=>"%{count} daqiqadan kam",
|
|
88
|
+
"one"=>"%{count} daqiqadan kam",
|
|
89
|
+
"other"=>"%{count} daqiqadan kam"},
|
|
90
|
+
"less_than_x_seconds"=>
|
|
91
|
+
{"few"=>"%{count} soniyadan kam",
|
|
92
|
+
"many"=>"%{count} soniyadan kam",
|
|
93
|
+
"one"=>"%{count} soniyadan kam",
|
|
94
|
+
"other"=>"%{count} soniyadan kam"},
|
|
95
|
+
"over_x_years"=>
|
|
96
|
+
{"few"=>"%{count} yildan ziyod",
|
|
97
|
+
"many"=>"%{count} yildan ziyod",
|
|
98
|
+
"one"=>"%{count} yildan ziyod",
|
|
99
|
+
"other"=>"%{count} yildan ziyod"},
|
|
100
|
+
"x_days"=>
|
|
101
|
+
{"few"=>"%{count} kun",
|
|
102
|
+
"many"=>"%{count} kun",
|
|
103
|
+
"one"=>"%{count} kun",
|
|
104
|
+
"other"=>"%{count} kun"},
|
|
105
|
+
"x_minutes"=>
|
|
106
|
+
{"few"=>"%{count} daqiqa",
|
|
107
|
+
"many"=>"%{count} daqiqa",
|
|
108
|
+
"one"=>"%{count} daqiqa",
|
|
109
|
+
"other"=>"%{count} daqiqa"},
|
|
110
|
+
"x_months"=>
|
|
111
|
+
{"few"=>"%{count} oy",
|
|
112
|
+
"many"=>"%{count} oy",
|
|
113
|
+
"one"=>"%{count} oy",
|
|
114
|
+
"other"=>"%{count} oy"},
|
|
115
|
+
"x_seconds"=>
|
|
116
|
+
{"few"=>"%{count} soniya",
|
|
117
|
+
"many"=>"%{count} soniya",
|
|
118
|
+
"one"=>"%{count} soniyaа",
|
|
119
|
+
"other"=>"%{count} soniya"}},
|
|
120
|
+
"prompts"=>
|
|
121
|
+
{"day"=>"kun",
|
|
122
|
+
"hour"=>"soat",
|
|
123
|
+
"minute"=>"daqiqa",
|
|
124
|
+
"month"=>"oy",
|
|
125
|
+
"second"=>"soniya",
|
|
126
|
+
"year"=>"yil"}}}
|
|
127
|
+
end
|
|
128
|
+
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/vi.yml
|
|
12
|
+
|
|
13
|
+
Locale_vi =
|
|
14
|
+
{"date"=>
|
|
15
|
+
{"abbr_day_names"=>
|
|
16
|
+
["Chủ nhật",
|
|
17
|
+
"Thứ hai",
|
|
18
|
+
"Thứ ba",
|
|
19
|
+
"Thứ tư",
|
|
20
|
+
"Thứ năm",
|
|
21
|
+
"Thứ sáu",
|
|
22
|
+
"Thứ bảy"],
|
|
23
|
+
"abbr_month_names"=>
|
|
24
|
+
[nil,
|
|
25
|
+
"Tháng một",
|
|
26
|
+
"Tháng hai",
|
|
27
|
+
"Tháng ba",
|
|
28
|
+
"Tháng tư",
|
|
29
|
+
"Tháng năm",
|
|
30
|
+
"Tháng sáu",
|
|
31
|
+
"Tháng bảy",
|
|
32
|
+
"Tháng tám",
|
|
33
|
+
"Tháng chín",
|
|
34
|
+
"Tháng mười",
|
|
35
|
+
"Tháng mười một",
|
|
36
|
+
"Tháng mười hai"],
|
|
37
|
+
"day_names"=>
|
|
38
|
+
["Chủ nhật",
|
|
39
|
+
"Thứ hai",
|
|
40
|
+
"Thứ ba",
|
|
41
|
+
"Thứ tư",
|
|
42
|
+
"Thứ năm",
|
|
43
|
+
"Thứ sáu",
|
|
44
|
+
"Thứ bảy"],
|
|
45
|
+
"formats"=>{"default"=>"%d-%m-%Y", "long"=>"%d %B, %Y", "short"=>"%d %b"},
|
|
46
|
+
"month_names"=>
|
|
47
|
+
[nil,
|
|
48
|
+
"Tháng một",
|
|
49
|
+
"Tháng hai",
|
|
50
|
+
"Tháng ba",
|
|
51
|
+
"Tháng tư",
|
|
52
|
+
"Tháng năm",
|
|
53
|
+
"Tháng sáu",
|
|
54
|
+
"Tháng bảy",
|
|
55
|
+
"Tháng tám",
|
|
56
|
+
"Tháng chín",
|
|
57
|
+
"Tháng mười",
|
|
58
|
+
"Tháng mười một",
|
|
59
|
+
"Tháng mười hai"],
|
|
60
|
+
"order"=>[:day, :month, :year]},
|
|
61
|
+
"time"=>
|
|
62
|
+
{"am"=>"sáng",
|
|
63
|
+
"formats"=>
|
|
64
|
+
{"default"=>"%a, %d %b %Y %H:%M:%S %z",
|
|
65
|
+
"long"=>"%d %B, %Y %H:%M",
|
|
66
|
+
"short"=>"%d %b %H:%M",
|
|
67
|
+
"time"=>"%H:%M:%S %z"},
|
|
68
|
+
"pm"=>"chiều"},
|
|
69
|
+
"datetime"=>
|
|
70
|
+
{"distance_in_words"=>
|
|
71
|
+
{"about_x_hours"=>{"one"=>"khoảng 1 giờ", "other"=>"khoảng %{count} giờ"},
|
|
72
|
+
"about_x_months"=>
|
|
73
|
+
{"one"=>"khoảng 1 tháng", "other"=>"khoảng %{count} tháng"},
|
|
74
|
+
"about_x_years"=>{"one"=>"khoảng 1 năm", "other"=>"khoảng %{count} năm"},
|
|
75
|
+
"almost_x_years"=>{"one"=>"gần 1 năm", "other"=>"gần %{count} năm"},
|
|
76
|
+
"half_a_minute"=>"30 giây",
|
|
77
|
+
"less_than_x_minutes"=>
|
|
78
|
+
{"one"=>"chưa tới 1 phút", "other"=>"chưa tới %{count} phút"},
|
|
79
|
+
"less_than_x_seconds"=>
|
|
80
|
+
{"one"=>"chưa tới 1 giây", "other"=>"chưa tới %{count} giây"},
|
|
81
|
+
"over_x_years"=>{"one"=>"hơn 1 năm", "other"=>"hơn %{count} năm"},
|
|
82
|
+
"x_days"=>{"one"=>"1 ngày", "other"=>"%{count} ngày"},
|
|
83
|
+
"x_minutes"=>{"one"=>"1 phút", "other"=>"%{count} phút"},
|
|
84
|
+
"x_months"=>{"one"=>"1 tháng", "other"=>"%{count} tháng"},
|
|
85
|
+
"x_seconds"=>{"one"=>"1 giây", "other"=>"%{count} giây"}},
|
|
86
|
+
"prompts"=>
|
|
87
|
+
{"day"=>"Ngày",
|
|
88
|
+
"hour"=>"Giờ",
|
|
89
|
+
"minute"=>"Phút",
|
|
90
|
+
"month"=>"Tháng",
|
|
91
|
+
"second"=>"Giây",
|
|
92
|
+
"year"=>"Năm"}}}
|
|
93
|
+
end
|
|
94
|
+
end
|