when_exe 0.3.2 → 0.3.3
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/locales.rb +2 -1
- data/bin/when.rb.config +1 -1
- data/lib/when_exe.rb +70 -48
- data/lib/when_exe/basictypes.rb +99 -65
- data/lib/when_exe/calendartypes.rb +40 -178
- data/lib/when_exe/coordinates.rb +156 -62
- data/lib/when_exe/core/compatibility.rb +10 -0
- data/lib/when_exe/core/extension.rb +40 -0
- data/lib/when_exe/ephemeris.rb +112 -50
- data/lib/when_exe/icalendar.rb +125 -91
- data/lib/when_exe/inspect.rb +100 -48
- data/lib/when_exe/locales/ar.rb +48 -48
- data/lib/when_exe/locales/bg.rb +1 -1
- data/lib/when_exe/locales/bs.rb +4 -2
- data/lib/when_exe/locales/ca.rb +1 -1
- data/lib/when_exe/locales/en_CA.rb +3 -4
- data/lib/when_exe/locales/en_IE.rb +88 -0
- data/lib/when_exe/locales/en_US.rb +87 -0
- data/lib/when_exe/locales/es_CR.rb +84 -0
- data/lib/when_exe/locales/es_EC.rb +85 -0
- data/lib/when_exe/locales/es_PA.rb +85 -0
- data/lib/when_exe/locales/fr.rb +39 -39
- data/lib/when_exe/locales/hu.rb +15 -14
- data/lib/when_exe/locales/it.rb +1 -1
- data/lib/when_exe/locales/ja.rb +2 -2
- data/lib/when_exe/locales/locales.rb +7 -0
- data/lib/when_exe/locales/lt.rb +21 -19
- data/lib/when_exe/locales/ms.rb +84 -0
- data/lib/when_exe/locales/nl.rb +2 -2
- data/lib/when_exe/locales/ru.rb +1 -1
- data/lib/when_exe/locales/uk.rb +1 -1
- data/lib/when_exe/locales/ur.rb +84 -0
- data/lib/when_exe/mini_application.rb +44 -43
- data/lib/when_exe/parts/enumerator.rb +3 -3
- data/lib/when_exe/parts/geometric_complex.rb +6 -1
- data/lib/when_exe/parts/locale.rb +49 -18
- data/lib/when_exe/parts/method_cash.rb +61 -0
- data/lib/when_exe/parts/resource.rb +221 -106
- data/lib/when_exe/parts/timezone.rb +70 -33
- data/lib/when_exe/region/bahai.rb +2 -2
- data/lib/when_exe/region/balinese.rb +40 -43
- data/lib/when_exe/region/chinese.rb +93 -33
- data/lib/when_exe/region/chinese_calendar.rb +117 -1
- data/lib/when_exe/region/chinese_epoch.rb +65 -10
- data/lib/when_exe/region/christian.rb +97 -2
- data/lib/when_exe/region/ephemeric_notes.rb +353 -0
- data/lib/when_exe/region/french.rb +1 -1
- data/lib/when_exe/region/geologicalage.rb +171 -171
- data/lib/when_exe/region/indian.rb +18 -14
- data/lib/when_exe/region/iranian.rb +1 -1
- data/lib/when_exe/region/japanese.rb +49 -12
- data/lib/when_exe/region/japanese_notes.rb +838 -507
- data/lib/when_exe/region/japanese_residues.rb +724 -662
- data/lib/when_exe/region/javanese.rb +7 -7
- data/lib/when_exe/region/mayan.rb +19 -17
- data/lib/when_exe/region/nihon_shoki.rb +3 -3
- data/lib/when_exe/region/residue.rb +29 -28
- data/lib/when_exe/region/shire.rb +2 -2
- data/lib/when_exe/region/tibetan.rb +87 -5
- data/lib/when_exe/region/world.rb +1 -1
- data/lib/when_exe/timestandard.rb +85 -7
- data/lib/when_exe/tmobjects.rb +32 -4
- data/lib/when_exe/tmposition.rb +104 -55
- data/lib/when_exe/tmreference.rb +157 -60
- data/lib/when_exe/version.rb +2 -2
- data/test/examples/JapanHolidays.ics +3 -3
- data/test/examples/JapanHolidaysRFC6350.ics +499 -0
- data/test/examples/Residue.m17n +3 -2
- data/test/examples/Spatial.m17n +3 -3
- data/test/examples/USA-DST.ics +27 -27
- data/test/examples/today.rb +1 -1
- data/test/test.rb +4 -2
- data/test/test/basictypes.rb +40 -15
- data/test/test/coordinates.rb +9 -4
- data/test/test/icalendar.rb +24 -14
- data/test/test/inspect.rb +5 -3
- data/test/test/parts.rb +11 -2
- data/test/test/region/chinese.rb +4 -4
- data/test/test/region/civil.rb +124 -0
- data/test/test/region/geologicalage.rb +5 -2
- data/test/test/region/indian.rb +2 -0
- data/test/test/region/japanese.rb +156 -1
- data/test/test/region/jewish.rb +3 -3
- data/test/test/region/m17n.rb +9 -9
- data/test/test/region/mayan.rb +122 -5
- data/test/test/region/residue.rb +1 -1
- data/test/test/tmobjects.rb +27 -64
- data/test/test/tmposition.rb +48 -1
- data/test/test/tmreference.rb +66 -4
- data/when_exe.gemspec +1 -1
- metadata +15 -6
@@ -0,0 +1,85 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2012-2013 Takashi SUGA
|
4
|
+
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
+
=end
|
7
|
+
|
8
|
+
module When::BasicTypes
|
9
|
+
class M17n
|
10
|
+
|
11
|
+
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-EC.yml
|
12
|
+
|
13
|
+
Locale_es_EC =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"ene",
|
19
|
+
"feb",
|
20
|
+
"mar",
|
21
|
+
"abr",
|
22
|
+
"may",
|
23
|
+
"jun",
|
24
|
+
"jul",
|
25
|
+
"ago",
|
26
|
+
"sep",
|
27
|
+
"oct",
|
28
|
+
"nov",
|
29
|
+
"dic"],
|
30
|
+
"day_names"=>
|
31
|
+
["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
|
32
|
+
"formats"=>
|
33
|
+
{"default"=>"%-d/%m/%Y",
|
34
|
+
"long"=>"%A, %-d de %B de %Y",
|
35
|
+
"short"=>"%-d de %b"},
|
36
|
+
"month_names"=>
|
37
|
+
[nil,
|
38
|
+
"enero",
|
39
|
+
"febrero",
|
40
|
+
"marzo",
|
41
|
+
"abril",
|
42
|
+
"mayo",
|
43
|
+
"junio",
|
44
|
+
"julio",
|
45
|
+
"agosto",
|
46
|
+
"septiembre",
|
47
|
+
"octubre",
|
48
|
+
"noviembre",
|
49
|
+
"diciembre"],
|
50
|
+
"order"=>[:day, :month, :year]},
|
51
|
+
"time"=>
|
52
|
+
{"am"=>"am",
|
53
|
+
"formats"=>
|
54
|
+
{"default"=>"%A, %-d de %B de %Y a las %-I:%M:%S %p %Z",
|
55
|
+
"long"=>"%-d de %B de %Y a las %-I:%M %p",
|
56
|
+
"short"=>"%-d %b %-I:%M %p"},
|
57
|
+
"pm"=>"pm"},
|
58
|
+
"datetime"=>
|
59
|
+
{"distance_in_words"=>
|
60
|
+
{"about_x_hours"=>
|
61
|
+
{"one"=>"cerca de 1 hora", "other"=>"cerca de %{count} horas"},
|
62
|
+
"about_x_months"=>
|
63
|
+
{"one"=>"cerca de 1 mes", "other"=>"cerca de %{count} meses"},
|
64
|
+
"about_x_years"=>
|
65
|
+
{"one"=>"cerca de 1 año", "other"=>"cerca de %{count} años"},
|
66
|
+
"almost_x_years"=>{"one"=>"casi 1 año", "other"=>"casi %{count} años"},
|
67
|
+
"half_a_minute"=>"medio minuto",
|
68
|
+
"less_than_x_minutes"=>
|
69
|
+
{"one"=>"menos de 1 minuto", "other"=>"menos de %{count} minutos"},
|
70
|
+
"less_than_x_seconds"=>
|
71
|
+
{"one"=>"menos de 1 segundo", "other"=>"menos de %{count} segundos"},
|
72
|
+
"over_x_years"=>{"one"=>"más de 1 año", "other"=>"más de %{count} años"},
|
73
|
+
"x_days"=>{"one"=>"1 día", "other"=>"%{count} días"},
|
74
|
+
"x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minutos"},
|
75
|
+
"x_months"=>{"one"=>"1 mes", "other"=>"%{count} meses"},
|
76
|
+
"x_seconds"=>{"one"=>"1 segundo", "other"=>"%{count} segundos"}},
|
77
|
+
"prompts"=>
|
78
|
+
{"day"=>"Día",
|
79
|
+
"hour"=>"Hora",
|
80
|
+
"minute"=>"Minuto",
|
81
|
+
"month"=>"Mes",
|
82
|
+
"second"=>"Segundos",
|
83
|
+
"year"=>"Año"}}}
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2012-2013 Takashi SUGA
|
4
|
+
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
+
=end
|
7
|
+
|
8
|
+
module When::BasicTypes
|
9
|
+
class M17n
|
10
|
+
|
11
|
+
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-PA.yml
|
12
|
+
|
13
|
+
Locale_es_PA =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"ene",
|
19
|
+
"feb",
|
20
|
+
"mar",
|
21
|
+
"abr",
|
22
|
+
"may",
|
23
|
+
"jun",
|
24
|
+
"jul",
|
25
|
+
"ago",
|
26
|
+
"sep",
|
27
|
+
"oct",
|
28
|
+
"nov",
|
29
|
+
"dic"],
|
30
|
+
"day_names"=>
|
31
|
+
["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
|
32
|
+
"formats"=>
|
33
|
+
{"default"=>"%-d/%m/%Y",
|
34
|
+
"long"=>"%A, %-d de %B de %Y",
|
35
|
+
"short"=>"%-d de %b"},
|
36
|
+
"month_names"=>
|
37
|
+
[nil,
|
38
|
+
"enero",
|
39
|
+
"febrero",
|
40
|
+
"marzo",
|
41
|
+
"abril",
|
42
|
+
"mayo",
|
43
|
+
"junio",
|
44
|
+
"julio",
|
45
|
+
"agosto",
|
46
|
+
"septiembre",
|
47
|
+
"octubre",
|
48
|
+
"noviembre",
|
49
|
+
"diciembre"],
|
50
|
+
"order"=>[:day, :month, :year]},
|
51
|
+
"time"=>
|
52
|
+
{"am"=>"am",
|
53
|
+
"formats"=>
|
54
|
+
{"default"=>"%A, %-d de %B de %Y a las %-I:%M:%S %p %Z",
|
55
|
+
"long"=>"%-d de %B de %Y a las %-I:%M %p",
|
56
|
+
"short"=>"%-d %b %-I:%M %p"},
|
57
|
+
"pm"=>"pm"},
|
58
|
+
"datetime"=>
|
59
|
+
{"distance_in_words"=>
|
60
|
+
{"about_x_hours"=>
|
61
|
+
{"one"=>"cerca de 1 hora", "other"=>"cerca de %{count} horas"},
|
62
|
+
"about_x_months"=>
|
63
|
+
{"one"=>"cerca de 1 mes", "other"=>"cerca de %{count} meses"},
|
64
|
+
"about_x_years"=>
|
65
|
+
{"one"=>"cerca de 1 año", "other"=>"cerca de %{count} años"},
|
66
|
+
"almost_x_years"=>{"one"=>"casi 1 año", "other"=>"casi %{count} años"},
|
67
|
+
"half_a_minute"=>"medio minuto",
|
68
|
+
"less_than_x_minutes"=>
|
69
|
+
{"one"=>"menos de 1 minuto", "other"=>"menos de %{count} minutos"},
|
70
|
+
"less_than_x_seconds"=>
|
71
|
+
{"one"=>"menos de 1 segundo", "other"=>"menos de %{count} segundos"},
|
72
|
+
"over_x_years"=>{"one"=>"más de 1 año", "other"=>"más de %{count} años"},
|
73
|
+
"x_days"=>{"one"=>"1 día", "other"=>"%{count} días"},
|
74
|
+
"x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minutos"},
|
75
|
+
"x_months"=>{"one"=>"1 mes", "other"=>"%{count} meses"},
|
76
|
+
"x_seconds"=>{"one"=>"1 segundo", "other"=>"%{count} segundos"}},
|
77
|
+
"prompts"=>
|
78
|
+
{"day"=>"Día",
|
79
|
+
"hour"=>"Hora",
|
80
|
+
"minute"=>"Minuto",
|
81
|
+
"month"=>"Mes",
|
82
|
+
"second"=>"Segundos",
|
83
|
+
"year"=>"Año"}}}
|
84
|
+
end
|
85
|
+
end
|
data/lib/when_exe/locales/fr.rb
CHANGED
@@ -12,10 +12,24 @@ module When::BasicTypes
|
|
12
12
|
|
13
13
|
Locale_fr =
|
14
14
|
{"date"=>
|
15
|
-
{"
|
15
|
+
{"abbr_day_names"=>["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"jan.",
|
19
|
+
"fév.",
|
20
|
+
"mar.",
|
21
|
+
"avr.",
|
22
|
+
"mai",
|
23
|
+
"juin",
|
24
|
+
"juil.",
|
25
|
+
"août",
|
26
|
+
"sept.",
|
27
|
+
"oct.",
|
28
|
+
"nov.",
|
29
|
+
"déc."],
|
16
30
|
"day_names"=>
|
17
31
|
["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
|
18
|
-
"
|
32
|
+
"formats"=>{"default"=>"%d/%m/%Y", "short"=>"%e %b", "long"=>"%e %B %Y"},
|
19
33
|
"month_names"=>
|
20
34
|
[nil,
|
21
35
|
"janvier",
|
@@ -30,59 +44,45 @@ module When::BasicTypes
|
|
30
44
|
"octobre",
|
31
45
|
"novembre",
|
32
46
|
"décembre"],
|
33
|
-
"abbr_month_names"=>
|
34
|
-
[nil,
|
35
|
-
"jan.",
|
36
|
-
"fév.",
|
37
|
-
"mar.",
|
38
|
-
"avr.",
|
39
|
-
"mai",
|
40
|
-
"juin",
|
41
|
-
"juil.",
|
42
|
-
"août",
|
43
|
-
"sept.",
|
44
|
-
"oct.",
|
45
|
-
"nov.",
|
46
|
-
"déc."],
|
47
47
|
"order"=>[:day, :month, :year]},
|
48
48
|
"time"=>
|
49
|
-
{"
|
49
|
+
{"am"=>"am",
|
50
|
+
"formats"=>
|
50
51
|
{"default"=>"%d %B %Y %H:%M:%S",
|
51
|
-
"short"=>"%d %b %H:%M",
|
52
52
|
"long"=>"%A %d %B %Y %H:%M",
|
53
|
+
"short"=>"%d %b %H:%M",
|
53
54
|
"time"=>"%H:%M:%S"},
|
54
|
-
"am"=>"am",
|
55
55
|
"pm"=>"pm"},
|
56
56
|
"datetime"=>
|
57
57
|
{"distance_in_words"=>
|
58
|
-
{"
|
59
|
-
"less_than_x_seconds"=>
|
60
|
-
{"zero"=>"moins d'une seconde",
|
61
|
-
"one"=>"moins d'une seconde",
|
62
|
-
"other"=>"moins de %{count} secondes"},
|
63
|
-
"x_seconds"=>{"one"=>"1 seconde", "other"=>"%{count} secondes"},
|
64
|
-
"less_than_x_minutes"=>
|
65
|
-
{"zero"=>"moins d'une minute",
|
66
|
-
"one"=>"moins d'une minute",
|
67
|
-
"other"=>"moins de %{count} minutes"},
|
68
|
-
"x_minutes"=>{"one"=>"1 minute", "other"=>"%{count} minutes"},
|
69
|
-
"about_x_hours"=>
|
58
|
+
{"about_x_hours"=>
|
70
59
|
{"one"=>"environ une heure", "other"=>"environ %{count} heures"},
|
71
|
-
"x_days"=>{"one"=>"1 jour", "other"=>"%{count} jours"},
|
72
60
|
"about_x_months"=>
|
73
61
|
{"one"=>"environ un mois", "other"=>"environ %{count} mois"},
|
74
|
-
"x_months"=>{"one"=>"1 mois", "other"=>"%{count} mois"},
|
75
62
|
"about_x_years"=>
|
76
63
|
{"one"=>"environ un an", "other"=>"environ %{count} ans"},
|
77
|
-
"over_x_years"=>{"one"=>"plus d'un an", "other"=>"plus de %{count} ans"},
|
78
64
|
"almost_x_years"=>
|
79
|
-
{"one"=>"presqu'un an", "other"=>"presque %{count} ans"}
|
65
|
+
{"one"=>"presqu'un an", "other"=>"presque %{count} ans"},
|
66
|
+
"half_a_minute"=>"une demi-minute",
|
67
|
+
"less_than_x_minutes"=>
|
68
|
+
{"zero"=>"moins d'une minute",
|
69
|
+
"one"=>"moins d'une minute",
|
70
|
+
"other"=>"moins de %{count} minutes"},
|
71
|
+
"less_than_x_seconds"=>
|
72
|
+
{"zero"=>"moins d'une seconde",
|
73
|
+
"one"=>"moins d'une seconde",
|
74
|
+
"other"=>"moins de %{count} secondes"},
|
75
|
+
"over_x_years"=>{"one"=>"plus d'un an", "other"=>"plus de %{count} ans"},
|
76
|
+
"x_days"=>{"one"=>"1 jour", "other"=>"%{count} jours"},
|
77
|
+
"x_minutes"=>{"one"=>"1 minute", "other"=>"%{count} minutes"},
|
78
|
+
"x_months"=>{"one"=>"1 mois", "other"=>"%{count} mois"},
|
79
|
+
"x_seconds"=>{"one"=>"1 seconde", "other"=>"%{count} secondes"}},
|
80
80
|
"prompts"=>
|
81
|
-
{"
|
82
|
-
"month"=>"Mois",
|
83
|
-
"day"=>"Jour",
|
81
|
+
{"day"=>"Jour",
|
84
82
|
"hour"=>"Heure",
|
85
83
|
"minute"=>"Minute",
|
86
|
-
"
|
84
|
+
"month"=>"Mois",
|
85
|
+
"second"=>"Seconde",
|
86
|
+
"year"=>"Année"}}}
|
87
87
|
end
|
88
88
|
end
|
data/lib/when_exe/locales/hu.rb
CHANGED
@@ -56,23 +56,24 @@ module When::BasicTypes
|
|
56
56
|
"pm"=>"du."},
|
57
57
|
"datetime"=>
|
58
58
|
{"distance_in_words"=>
|
59
|
-
{"about_x_hours"=>{"one"=>"kb 1
|
60
|
-
"about_x_months"=>{"one"=>"kb 1
|
61
|
-
"about_x_years"=>{"one"=>"kb 1
|
62
|
-
"almost_x_years"=>
|
63
|
-
|
59
|
+
{"about_x_hours"=>{"one"=>"kb 1 órája", "other"=>"kb %{count} órája"},
|
60
|
+
"about_x_months"=>{"one"=>"kb 1 hónapja", "other"=>"kb %{count} hónapja"},
|
61
|
+
"about_x_years"=>{"one"=>"kb 1 éve", "other"=>"kb %{count} éve"},
|
62
|
+
"almost_x_years"=>
|
63
|
+
{"one"=>"majdnem 1 éve", "other"=>"majdnem %{count} éve"},
|
64
|
+
"half_a_minute"=>"fél perce",
|
64
65
|
"less_than_x_minutes"=>
|
65
|
-
{"one"=>"kevesebb, mint 1
|
66
|
-
"other"=>"kevesebb, mint %{count}
|
66
|
+
{"one"=>"kevesebb, mint 1 perce",
|
67
|
+
"other"=>"kevesebb, mint %{count} perce"},
|
67
68
|
"less_than_x_seconds"=>
|
68
|
-
{"one"=>"kevesebb, mint 1
|
69
|
-
"other"=>"kevesebb, mint %{count}
|
69
|
+
{"one"=>"kevesebb, mint 1 másodperce",
|
70
|
+
"other"=>"kevesebb, mint %{count} másodperce"},
|
70
71
|
"over_x_years"=>
|
71
|
-
{"one"=>"több, mint 1
|
72
|
-
"x_days"=>{"one"=>"1
|
73
|
-
"x_minutes"=>{"one"=>"1
|
74
|
-
"x_months"=>{"one"=>"1
|
75
|
-
"x_seconds"=>{"one"=>"1
|
72
|
+
{"one"=>"több, mint 1 éve", "other"=>"több, mint %{count} éve"},
|
73
|
+
"x_days"=>{"one"=>"1 napja", "other"=>"%{count} napja"},
|
74
|
+
"x_minutes"=>{"one"=>"1 perce", "other"=>"%{count} perce"},
|
75
|
+
"x_months"=>{"one"=>"1 hónapja", "other"=>"%{count} hónapja"},
|
76
|
+
"x_seconds"=>{"one"=>"1 másodperce", "other"=>"%{count} másodperce"}},
|
76
77
|
"prompts"=>
|
77
78
|
{"day"=>"Nap",
|
78
79
|
"hour"=>"Óra",
|
data/lib/when_exe/locales/it.rb
CHANGED
@@ -35,7 +35,7 @@ module When::BasicTypes
|
|
35
35
|
"giovedì",
|
36
36
|
"venerdì",
|
37
37
|
"sabato"],
|
38
|
-
"formats"=>{"default"=>"%d
|
38
|
+
"formats"=>{"default"=>"%d/%m/%Y", "long"=>"%d %B %Y", "short"=>"%d %b"},
|
39
39
|
"month_names"=>
|
40
40
|
[nil,
|
41
41
|
"gennaio",
|
data/lib/when_exe/locales/ja.rb
CHANGED
@@ -60,8 +60,8 @@ module When::BasicTypes
|
|
60
60
|
"about_x_years"=>{"one"=>"約1年", "other"=>"約%{count}年"},
|
61
61
|
"almost_x_years"=>{"one"=>"1年弱", "other"=>"%{count}年弱"},
|
62
62
|
"half_a_minute"=>"30秒前後",
|
63
|
-
"less_than_x_minutes"=>{"one"=>"1分以内", "other"=>"%{count}
|
64
|
-
"less_than_x_seconds"=>{"one"=>"1秒以内", "other"=>"%{count}
|
63
|
+
"less_than_x_minutes"=>{"one"=>"1分以内", "other"=>"%{count}分未満"},
|
64
|
+
"less_than_x_seconds"=>{"one"=>"1秒以内", "other"=>"%{count}秒未満"},
|
65
65
|
"over_x_years"=>{"one"=>"1年以上", "other"=>"%{count}年以上"},
|
66
66
|
"x_days"=>{"one"=>"1日", "other"=>"%{count}日"},
|
67
67
|
"x_minutes"=>{"one"=>"1分", "other"=>"%{count}分"},
|
@@ -24,15 +24,20 @@ module When::BasicTypes
|
|
24
24
|
autoload :Locale_en_AU, 'when_exe/locales/en_AU'
|
25
25
|
autoload :Locale_en_CA, 'when_exe/locales/en_CA'
|
26
26
|
autoload :Locale_en_GB, 'when_exe/locales/en_GB'
|
27
|
+
autoload :Locale_en_IE, 'when_exe/locales/en_IE'
|
27
28
|
autoload :Locale_en_IN, 'when_exe/locales/en_IN'
|
28
29
|
autoload :Locale_en_NZ, 'when_exe/locales/en_NZ'
|
30
|
+
autoload :Locale_en_US, 'when_exe/locales/en_US'
|
29
31
|
autoload :Locale_en, 'when_exe/locales/en'
|
30
32
|
autoload :Locale_eo, 'when_exe/locales/eo'
|
31
33
|
autoload :Locale_es_419, 'when_exe/locales/es_419'
|
32
34
|
autoload :Locale_es_AR, 'when_exe/locales/es_AR'
|
33
35
|
autoload :Locale_es_CL, 'when_exe/locales/es_CL'
|
34
36
|
autoload :Locale_es_CO, 'when_exe/locales/es_CO'
|
37
|
+
autoload :Locale_es_CR, 'when_exe/locales/es_CR'
|
38
|
+
autoload :Locale_es_EC, 'when_exe/locales/es_EC'
|
35
39
|
autoload :Locale_es_MX, 'when_exe/locales/es_MX'
|
40
|
+
autoload :Locale_es_PA, 'when_exe/locales/es_PA'
|
36
41
|
autoload :Locale_es_PE, 'when_exe/locales/es_PE'
|
37
42
|
autoload :Locale_es_VE, 'when_exe/locales/es_VE'
|
38
43
|
autoload :Locale_es, 'when_exe/locales/es'
|
@@ -61,6 +66,7 @@ module When::BasicTypes
|
|
61
66
|
autoload :Locale_lv, 'when_exe/locales/lv'
|
62
67
|
autoload :Locale_mk, 'when_exe/locales/mk'
|
63
68
|
autoload :Locale_mn, 'when_exe/locales/mn'
|
69
|
+
autoload :Locale_ms, 'when_exe/locales/ms'
|
64
70
|
autoload :Locale_nb, 'when_exe/locales/nb'
|
65
71
|
autoload :Locale_ne, 'when_exe/locales/ne'
|
66
72
|
autoload :Locale_nl, 'when_exe/locales/nl'
|
@@ -81,6 +87,7 @@ module When::BasicTypes
|
|
81
87
|
autoload :Locale_tl, 'when_exe/locales/tl'
|
82
88
|
autoload :Locale_tr, 'when_exe/locales/tr'
|
83
89
|
autoload :Locale_uk, 'when_exe/locales/uk'
|
90
|
+
autoload :Locale_ur, 'when_exe/locales/ur'
|
84
91
|
autoload :Locale_uz, 'when_exe/locales/uz'
|
85
92
|
autoload :Locale_vi, 'when_exe/locales/vi'
|
86
93
|
autoload :Locale_wo, 'when_exe/locales/wo'
|
data/lib/when_exe/locales/lt.rb
CHANGED
@@ -62,44 +62,46 @@ module When::BasicTypes
|
|
62
62
|
"datetime"=>
|
63
63
|
{"distance_in_words"=>
|
64
64
|
{"about_x_hours"=>
|
65
|
-
{"one"=>"apie
|
66
|
-
"few"=>"apie %{count}
|
65
|
+
{"one"=>"apie %{count} valanda",
|
66
|
+
"few"=>"apie %{count} valandas",
|
67
67
|
"other"=>"apie %{count} valandų"},
|
68
68
|
"about_x_months"=>
|
69
|
-
{"one"=>"apie
|
70
|
-
"few"=>"apie %{count}
|
71
|
-
"other"=>"apie %{count}
|
69
|
+
{"one"=>"apie %{count} mėnesį",
|
70
|
+
"few"=>"apie %{count} mėnesius",
|
71
|
+
"other"=>"apie %{count} mėnesių"},
|
72
72
|
"about_x_years"=>
|
73
|
-
{"one"=>"apie
|
74
|
-
"few"=>"apie %{count}
|
73
|
+
{"one"=>"apie %{count} metus",
|
74
|
+
"few"=>"apie %{count} metus",
|
75
75
|
"other"=>"apie %{count} metų"},
|
76
76
|
"half_a_minute"=>"pusė minutės",
|
77
77
|
"less_than_x_minutes"=>
|
78
|
-
{"one"=>"mažiau nei minutė",
|
78
|
+
{"one"=>"mažiau nei %{count} minutė",
|
79
79
|
"few"=>"mažiau nei %{count} minutės",
|
80
|
-
"other"=>"mažiau nei %{count}
|
80
|
+
"other"=>"mažiau nei %{count} minučių"},
|
81
81
|
"less_than_x_seconds"=>
|
82
|
-
{"one"=>"mažiau nei
|
82
|
+
{"one"=>"mažiau nei %{count} sekundė",
|
83
83
|
"few"=>"mažiau nei %{count} sekundės",
|
84
|
-
"other"=>"mažiau nei %{count}
|
84
|
+
"other"=>"mažiau nei %{count} sekundžių"},
|
85
85
|
"over_x_years"=>
|
86
|
-
{"one"=>"virš
|
86
|
+
{"one"=>"virš %{count} metų",
|
87
87
|
"few"=>"virš %{count} metų",
|
88
88
|
"other"=>"virš %{count} metų"},
|
89
89
|
"x_days"=>
|
90
|
-
{"one"=>"
|
90
|
+
{"one"=>"%{count} diena",
|
91
|
+
"few"=>"%{count} dienos",
|
92
|
+
"other"=>"%{count} dienų"},
|
91
93
|
"x_minutes"=>
|
92
|
-
{"one"=>"
|
94
|
+
{"one"=>"%{count} minutė",
|
93
95
|
"few"=>"%{count} minutės",
|
94
|
-
"other"=>"%{count}
|
96
|
+
"other"=>"%{count} minučių"},
|
95
97
|
"x_months"=>
|
96
|
-
{"one"=>"
|
98
|
+
{"one"=>"%{count} mėnesis",
|
97
99
|
"few"=>"%{count} mėnesiai",
|
98
|
-
"other"=>"%{count}
|
100
|
+
"other"=>"%{count} mėnesių"},
|
99
101
|
"x_seconds"=>
|
100
|
-
{"one"=>"
|
102
|
+
{"one"=>"%{count} sekundė",
|
101
103
|
"few"=>"%{count} sekundės",
|
102
|
-
"other"=>"%{count}
|
104
|
+
"other"=>"%{count} sekundžių"}},
|
103
105
|
"prompts"=>
|
104
106
|
{"day"=>"Diena",
|
105
107
|
"hour"=>"Valanda",
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2012-2013 Takashi SUGA
|
4
|
+
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
+
=end
|
7
|
+
|
8
|
+
module When::BasicTypes
|
9
|
+
class M17n
|
10
|
+
|
11
|
+
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/ms.yml
|
12
|
+
|
13
|
+
Locale_ms =
|
14
|
+
{"date"=>
|
15
|
+
{"abbr_day_names"=>["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
|
16
|
+
"abbr_month_names"=>
|
17
|
+
[nil,
|
18
|
+
"Jan",
|
19
|
+
"Feb",
|
20
|
+
"Mac",
|
21
|
+
"Apr",
|
22
|
+
"Mei",
|
23
|
+
"Jun",
|
24
|
+
"Jul",
|
25
|
+
"Ogo",
|
26
|
+
"Sep",
|
27
|
+
"Okt",
|
28
|
+
"Nov",
|
29
|
+
"Dis"],
|
30
|
+
"day_names"=>
|
31
|
+
["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
|
32
|
+
"formats"=>{"default"=>"%d-%m-%Y", "long"=>"%d %B, %Y", "short"=>"%d %b"},
|
33
|
+
"month_names"=>
|
34
|
+
[nil,
|
35
|
+
"Januari",
|
36
|
+
"Febuari",
|
37
|
+
"Mac",
|
38
|
+
"April",
|
39
|
+
"Mei",
|
40
|
+
"Jun",
|
41
|
+
"Julai",
|
42
|
+
"Ogos",
|
43
|
+
"September",
|
44
|
+
"Oktober",
|
45
|
+
"November",
|
46
|
+
"Disember"],
|
47
|
+
"order"=>[:day, :month, :year]},
|
48
|
+
"time"=>
|
49
|
+
{"am"=>"am",
|
50
|
+
"formats"=>
|
51
|
+
{"default"=>"%a, %d %b %Y %H:%M:%S %z",
|
52
|
+
"long"=>"%d %B, %Y %H:%M",
|
53
|
+
"short"=>"%d %b %H:%M",
|
54
|
+
"time"=>"%H:%M:%S %z"},
|
55
|
+
"pm"=>"pm"},
|
56
|
+
"datetime"=>
|
57
|
+
{"distance_in_words"=>
|
58
|
+
{"about_x_hours"=>
|
59
|
+
{"one"=>"lebih kurang 1 jam", "other"=>"lebih kurang %{count} jam"},
|
60
|
+
"about_x_months"=>
|
61
|
+
{"one"=>"lebih kurang 1 bulan", "other"=>"lebih kurang %{count} bulan"},
|
62
|
+
"about_x_years"=>
|
63
|
+
{"one"=>"lebih kurang 1 tahun", "other"=>"lebih kurang %{count} tahun"},
|
64
|
+
"almost_x_years"=>
|
65
|
+
{"one"=>"hampir 1 tahun", "other"=>"hampir %{count} tahun"},
|
66
|
+
"half_a_minute"=>"setengah minit",
|
67
|
+
"less_than_x_minutes"=>
|
68
|
+
{"one"=>"kurang dari satu minit", "other"=>"kurang dari %{count} minit"},
|
69
|
+
"less_than_x_seconds"=>
|
70
|
+
{"one"=>"kurang dari satu saat", "other"=>"kurang dari %{count} saat"},
|
71
|
+
"over_x_years"=>{"one"=>"lebih 1 tahun", "other"=>"lebih %{count} tahun"},
|
72
|
+
"x_days"=>{"one"=>"1 hari", "other"=>"%{count} hari"},
|
73
|
+
"x_minutes"=>{"one"=>"1 minit", "other"=>"%{count} minit"},
|
74
|
+
"x_months"=>{"one"=>"1 bulan", "other"=>"%{count} bulan"},
|
75
|
+
"x_seconds"=>{"one"=>"1 saat", "other"=>"%{count} saat"}},
|
76
|
+
"prompts"=>
|
77
|
+
{"day"=>"Hari",
|
78
|
+
"hour"=>"Jam",
|
79
|
+
"minute"=>"Minit",
|
80
|
+
"month"=>"Bulan",
|
81
|
+
"second"=>"Saat",
|
82
|
+
"year"=>"Tahun"}}}
|
83
|
+
end
|
84
|
+
end
|