when_exe 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/irb.rc +1 -0
- data/bin/locales.rb +8 -6
- data/bin/when.rb +1 -1
- data/lib/when_exe.rb +231 -146
- data/lib/when_exe/basictypes.rb +108 -18
- data/lib/when_exe/calendarnote.rb +263 -116
- data/lib/when_exe/calendartypes.rb +413 -22
- data/lib/when_exe/coordinates.rb +58 -36
- data/lib/when_exe/core/compatibility.rb +8 -6
- data/lib/when_exe/core/extension.rb +40 -15
- data/lib/when_exe/ephemeris.rb +20 -19
- data/lib/when_exe/{region → ephemeris}/moon.rb +4 -4
- data/lib/when_exe/{region/ephemeric_notes.rb → ephemeris/notes.rb} +25 -6
- data/lib/when_exe/{region → ephemeris}/planets.rb +0 -0
- data/lib/when_exe/{region → ephemeris}/sun.rb +7 -3
- data/lib/when_exe/{region → ephemeris}/v50.rb +0 -0
- data/lib/when_exe/googlecalendar.rb +2 -2
- data/lib/when_exe/icalendar.rb +3 -3
- data/lib/when_exe/inspect.rb +130 -70
- data/lib/when_exe/locales/af.rb +2 -2
- data/lib/when_exe/locales/akt.rb +176 -0
- data/lib/when_exe/locales/ar.rb +2 -2
- data/lib/when_exe/locales/{locales.rb → autoload.rb} +6 -2
- data/lib/when_exe/locales/az.rb +2 -2
- data/lib/when_exe/locales/bg.rb +2 -2
- data/lib/when_exe/locales/bn.rb +2 -2
- data/lib/when_exe/locales/bs.rb +2 -2
- data/lib/when_exe/locales/ca.rb +2 -2
- data/lib/when_exe/locales/cs.rb +2 -2
- data/lib/when_exe/locales/cy.rb +2 -2
- data/lib/when_exe/locales/da.rb +2 -2
- data/lib/when_exe/locales/de.rb +2 -2
- data/lib/when_exe/locales/de_AT.rb +2 -2
- data/lib/when_exe/locales/de_CH.rb +2 -2
- data/lib/when_exe/locales/el.rb +2 -2
- data/lib/when_exe/locales/en.rb +2 -2
- data/lib/when_exe/locales/en_AU.rb +2 -2
- data/lib/when_exe/locales/en_CA.rb +2 -2
- data/lib/when_exe/locales/en_GB.rb +2 -2
- data/lib/when_exe/locales/en_IE.rb +2 -2
- data/lib/when_exe/locales/en_IN.rb +3 -3
- data/lib/when_exe/locales/en_NZ.rb +2 -2
- data/lib/when_exe/locales/en_US.rb +2 -2
- data/lib/when_exe/locales/en_ZA.rb +88 -0
- data/lib/when_exe/locales/encoding_conversion.rb +126 -0
- data/lib/when_exe/locales/eo.rb +2 -2
- data/lib/when_exe/locales/es.rb +2 -2
- data/lib/when_exe/locales/es_419.rb +2 -2
- data/lib/when_exe/locales/es_AR.rb +2 -2
- data/lib/when_exe/locales/es_CL.rb +2 -2
- data/lib/when_exe/locales/es_CO.rb +2 -2
- data/lib/when_exe/locales/es_CR.rb +2 -2
- data/lib/when_exe/locales/es_EC.rb +2 -2
- data/lib/when_exe/locales/es_MX.rb +2 -2
- data/lib/when_exe/locales/es_PA.rb +2 -2
- data/lib/when_exe/locales/es_PE.rb +2 -2
- data/lib/when_exe/locales/es_US.rb +84 -0
- data/lib/when_exe/locales/es_VE.rb +2 -2
- data/lib/when_exe/locales/et.rb +2 -2
- data/lib/when_exe/locales/eu.rb +2 -2
- data/lib/when_exe/locales/fa.rb +2 -2
- data/lib/when_exe/locales/fi.rb +3 -3
- data/lib/when_exe/locales/fr.rb +2 -2
- data/lib/when_exe/locales/fr_CA.rb +2 -2
- data/lib/when_exe/locales/fr_CH.rb +2 -2
- data/lib/when_exe/locales/gl.rb +2 -2
- data/lib/when_exe/locales/he.rb +3 -3
- data/lib/when_exe/locales/hi.rb +2 -2
- data/lib/when_exe/locales/hi_IN.rb +2 -2
- data/lib/when_exe/locales/hr.rb +2 -2
- data/lib/when_exe/locales/hu.rb +6 -5
- data/lib/when_exe/locales/iast.rb +90 -0
- data/lib/when_exe/locales/id.rb +2 -2
- data/lib/when_exe/locales/is.rb +2 -2
- data/lib/when_exe/locales/it.rb +2 -2
- data/lib/when_exe/locales/it_CH.rb +2 -2
- data/lib/when_exe/locales/ja.rb +2 -2
- data/lib/when_exe/locales/kn.rb +2 -2
- data/lib/when_exe/locales/ko.rb +2 -2
- data/lib/when_exe/locales/links.rb +3 -3
- data/lib/when_exe/locales/lo.rb +2 -2
- data/lib/when_exe/{parts → locales}/locale.rb +77 -49
- data/lib/when_exe/locales/lt.rb +6 -2
- data/lib/when_exe/locales/lv.rb +2 -2
- data/lib/when_exe/locales/mk.rb +2 -2
- data/lib/when_exe/locales/mn.rb +2 -2
- data/lib/when_exe/locales/ms.rb +2 -2
- data/lib/when_exe/locales/nb.rb +2 -2
- data/lib/when_exe/locales/ne.rb +2 -2
- data/lib/when_exe/locales/nl.rb +2 -2
- data/lib/when_exe/locales/nn.rb +2 -2
- data/lib/when_exe/locales/or.rb +2 -2
- data/lib/when_exe/locales/pl.rb +2 -2
- data/lib/when_exe/locales/pt.rb +2 -2
- data/lib/when_exe/locales/pt_BR.rb +2 -2
- data/lib/when_exe/locales/rm.rb +2 -2
- data/lib/when_exe/locales/ro.rb +2 -2
- data/lib/when_exe/locales/ru.rb +2 -2
- data/lib/when_exe/locales/sk.rb +2 -2
- data/lib/when_exe/locales/sl.rb +2 -2
- data/lib/when_exe/locales/sr.rb +2 -2
- data/lib/when_exe/locales/sv.rb +2 -2
- data/lib/when_exe/locales/sw.rb +2 -2
- data/lib/when_exe/locales/ta.rb +95 -0
- data/lib/when_exe/locales/th.rb +2 -2
- data/lib/when_exe/locales/tl.rb +3 -3
- data/lib/when_exe/locales/tr.rb +2 -2
- data/lib/when_exe/locales/transliteration_table.rb +62 -0
- data/lib/when_exe/locales/uk.rb +15 -15
- data/lib/when_exe/locales/ur.rb +2 -2
- data/lib/when_exe/locales/uz.rb +2 -2
- data/lib/when_exe/locales/vi.rb +2 -2
- data/lib/when_exe/locales/wo.rb +2 -2
- data/lib/when_exe/locales/zh_CN.rb +2 -2
- data/lib/when_exe/locales/zh_HK.rb +15 -15
- data/lib/when_exe/locales/zh_TW.rb +2 -2
- data/lib/when_exe/locales/zh_YUE.rb +77 -0
- data/lib/when_exe/mini_application.rb +22 -12
- data/lib/when_exe/parts/geometric_complex.rb +16 -1
- data/lib/when_exe/parts/method_cash.rb +184 -238
- data/lib/when_exe/parts/resource.rb +65 -16
- data/lib/when_exe/region/armenian.rb +56 -0
- data/lib/when_exe/region/bahai.rb +13 -13
- data/lib/when_exe/region/balinese.rb +33 -35
- data/lib/when_exe/region/chinese.rb +82 -78
- data/lib/when_exe/region/{chinese_calendar.rb → chinese/calendars.rb} +59 -40
- data/lib/when_exe/region/{chinese_epoch.rb → chinese/epochs.rb} +3 -4
- data/lib/when_exe/region/{chinese_twin.rb → chinese/twins.rb} +48 -51
- data/lib/when_exe/region/christian.rb +236 -127
- data/lib/when_exe/region/coptic.rb +9 -10
- data/lib/when_exe/region/dee.rb +48 -0
- data/lib/when_exe/region/discordian.rb +225 -0
- data/lib/when_exe/region/far_east.rb +2 -6
- data/lib/when_exe/region/french.rb +7 -17
- data/lib/when_exe/region/geologicalage.rb +0 -1
- data/lib/when_exe/region/goddess.rb +58 -0
- data/lib/when_exe/region/indian.rb +323 -231
- data/lib/when_exe/region/iranian.rb +159 -22
- data/lib/when_exe/region/islamic.rb +7 -9
- data/lib/when_exe/region/japanese.rb +14 -803
- data/lib/when_exe/region/japanese/calendars.rb +397 -0
- data/lib/when_exe/region/japanese/epochs.rb +426 -0
- data/lib/when_exe/region/{nihon_shoki.rb → japanese/nihon_shoki.rb} +0 -2
- data/lib/when_exe/region/{japanese_notes.rb → japanese/notes.rb} +179 -150
- data/lib/when_exe/region/japanese/residues.rb +1306 -0
- data/lib/when_exe/region/{japanese_twin.rb → japanese/twins.rb} +12 -15
- data/lib/when_exe/region/javanese.rb +16 -14
- data/lib/when_exe/region/jewish.rb +8 -9
- data/lib/when_exe/region/korean.rb +146 -35
- data/lib/when_exe/region/m17n.rb +8 -10
- data/lib/when_exe/region/martian.rb +44 -16
- data/lib/when_exe/region/mayan.rb +12 -10
- data/lib/when_exe/region/pope.rb +0 -1
- data/lib/when_exe/region/residue.rb +4 -5
- data/lib/when_exe/region/roman.rb +20 -24
- data/lib/when_exe/region/ryukyu.rb +3 -4
- data/lib/when_exe/region/shire.rb +97 -94
- data/lib/when_exe/region/symmetry.rb +50 -0
- data/lib/when_exe/region/thai.rb +164 -56
- data/lib/when_exe/region/tibetan.rb +86 -86
- data/lib/when_exe/region/vietnamese.rb +9 -12
- data/lib/when_exe/region/weekdate.rb +80 -0
- data/lib/when_exe/region/world.rb +65 -70
- data/lib/when_exe/region/yerm.rb +98 -0
- data/lib/when_exe/region/zoroastrian.rb +203 -0
- data/lib/when_exe/timestandard.rb +4 -4
- data/lib/when_exe/tmobjects.rb +1 -3
- data/lib/when_exe/tmposition.rb +13 -12
- data/lib/when_exe/tmreference.rb +11 -10
- data/lib/when_exe/version.rb +1 -1
- data/link_to_online_documents +3 -3
- data/test/examples/Residue.m17n +1 -1
- data/test/examples/Terms.m17n +1 -1
- data/test/test.rb +2 -1
- data/test/test/basictypes.rb +18 -2
- data/test/test/calendarnote.rb +1 -1
- data/test/test/calendartypes.rb +1 -1
- data/test/test/coordinates.rb +7 -7
- data/test/test/{region → ephemeris}/moon.rb +0 -0
- data/test/test/{region → ephemeris}/planets.rb +0 -0
- data/test/test/{region → ephemeris}/sun.rb +0 -0
- data/test/test/parts.rb +8 -13
- data/test/test/region/christian.rb +245 -0
- data/test/test/region/french.rb +16 -16
- data/test/test/region/iran.rb +34 -34
- data/test/test/region/japanese.rb +6 -4
- data/test/test/region/m17n.rb +8 -7
- data/test/test/region/mayan.rb +12 -12
- data/test/test/region/residue.rb +20 -4
- data/test/test/region/thai.rb +25 -3
- data/test/test/region/yerm.rb +146 -0
- metadata +39 -20
- data/lib/when_exe/region/japanese_residues.rb +0 -1212
- data/test/test/region/civil.rb +0 -124
data/lib/when_exe/locales/eo.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/eo.yml
|
12
12
|
|
data/lib/when_exe/locales/es.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-419.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-AR.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-CL.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-CO.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-CR.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-EC.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-MX.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-PA.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-PE.yml
|
12
12
|
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2012-2014 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
|
9
|
+
module Locale
|
10
|
+
|
11
|
+
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-US.yml
|
12
|
+
|
13
|
+
Locale_es_US =
|
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", "long"=>"%A, %d de %B de %Y", "short"=>"%d de %b"},
|
34
|
+
"month_names"=>
|
35
|
+
[nil,
|
36
|
+
"enero",
|
37
|
+
"febrero",
|
38
|
+
"marzo",
|
39
|
+
"abril",
|
40
|
+
"mayo",
|
41
|
+
"junio",
|
42
|
+
"julio",
|
43
|
+
"agosto",
|
44
|
+
"septiembre",
|
45
|
+
"octubre",
|
46
|
+
"noviembre",
|
47
|
+
"diciembre"],
|
48
|
+
"order"=>[:day, :month, :year]},
|
49
|
+
"time"=>
|
50
|
+
{"am"=>"am",
|
51
|
+
"formats"=>
|
52
|
+
{"default"=>"%a, %d de %b de %Y a las %H:%M:%S %Z",
|
53
|
+
"long"=>"%A, %d de %B de %Y a las %I:%M %p",
|
54
|
+
"short"=>"%d de %b a las %H:%M hrs",
|
55
|
+
"time"=>"%H:%M:%S %Z"},
|
56
|
+
"pm"=>"pm"},
|
57
|
+
"datetime"=>
|
58
|
+
{"distance_in_words"=>
|
59
|
+
{"about_x_hours"=>
|
60
|
+
{"one"=>"cerca de 1 hora", "other"=>"cerca de %{count} horas"},
|
61
|
+
"about_x_months"=>
|
62
|
+
{"one"=>"cerca de 1 mes", "other"=>"cerca de %{count} meses"},
|
63
|
+
"about_x_years"=>
|
64
|
+
{"one"=>"cerca de 1 año", "other"=>"cerca de %{count} años"},
|
65
|
+
"almost_x_years"=>{"one"=>"casi 1 año", "other"=>"casi %{count} años"},
|
66
|
+
"half_a_minute"=>"medio minuto",
|
67
|
+
"less_than_x_minutes"=>
|
68
|
+
{"one"=>"menos de 1 minuto", "other"=>"menos de %{count} minutos"},
|
69
|
+
"less_than_x_seconds"=>
|
70
|
+
{"one"=>"menos de 1 segundo", "other"=>"menos de %{count} segundos"},
|
71
|
+
"over_x_years"=>{"one"=>"más de 1 año", "other"=>"más de %{count} años"},
|
72
|
+
"x_days"=>{"one"=>"1 día", "other"=>"%{count} días"},
|
73
|
+
"x_minutes"=>{"one"=>"1 minuto", "other"=>"%{count} minutos"},
|
74
|
+
"x_months"=>{"one"=>"1 mes", "other"=>"%{count} meses"},
|
75
|
+
"x_seconds"=>{"one"=>"1 segundo", "other"=>"%{count} segundos"}},
|
76
|
+
"prompts"=>
|
77
|
+
{"day"=>"Día",
|
78
|
+
"hour"=>"Hora",
|
79
|
+
"minute"=>"Minuto",
|
80
|
+
"month"=>"Mes",
|
81
|
+
"second"=>"Segundos",
|
82
|
+
"year"=>"Año"}}}
|
83
|
+
end
|
84
|
+
end
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/es-VE.yml
|
12
12
|
|
data/lib/when_exe/locales/et.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/et.yml
|
12
12
|
|
data/lib/when_exe/locales/eu.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/eu.yml
|
12
12
|
|
data/lib/when_exe/locales/fa.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/fa.yml
|
12
12
|
|
data/lib/when_exe/locales/fi.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/fi.yml
|
12
12
|
|
@@ -36,7 +36,7 @@ module When::BasicTypes
|
|
36
36
|
"perjantai",
|
37
37
|
"lauantai"],
|
38
38
|
"formats"=>
|
39
|
-
{"default"=>"
|
39
|
+
{"default"=>"%-d.%-m.%Y", "long"=>"%A %e. %Bta %Y", "short"=>"%d. %b"},
|
40
40
|
"month_names"=>
|
41
41
|
[nil,
|
42
42
|
"tammikuu",
|
data/lib/when_exe/locales/fr.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/fr.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/fr-CA.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/fr-CH.yml
|
12
12
|
|
data/lib/when_exe/locales/gl.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/gl.yml
|
12
12
|
|
data/lib/when_exe/locales/he.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/he.yml
|
12
12
|
|
@@ -15,7 +15,7 @@ module When::BasicTypes
|
|
15
15
|
{"abbr_day_names"=>["א", "ב", "ג", "ד", "ה", "ו", "ש"],
|
16
16
|
"abbr_month_names"=>
|
17
17
|
[nil,
|
18
|
-
"
|
18
|
+
"ינו",
|
19
19
|
"פבר",
|
20
20
|
"מרץ",
|
21
21
|
"אפר",
|
data/lib/when_exe/locales/hi.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hi.yml
|
12
12
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hi-IN.yml
|
12
12
|
|
data/lib/when_exe/locales/hr.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hr.yml
|
12
12
|
|
data/lib/when_exe/locales/hu.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
6
|
=end
|
7
7
|
|
8
|
-
module When
|
9
|
-
|
8
|
+
module When
|
9
|
+
module Locale
|
10
10
|
|
11
11
|
# from https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/hu.yml
|
12
12
|
|
@@ -56,9 +56,10 @@ module When::BasicTypes
|
|
56
56
|
"pm"=>"du."},
|
57
57
|
"datetime"=>
|
58
58
|
{"distance_in_words"=>
|
59
|
-
{"about_x_hours"=>{"one"=>"kb 1 órája", "other"=>"kb %{count} órája"},
|
60
|
-
"about_x_months"=>
|
61
|
-
|
59
|
+
{"about_x_hours"=>{"one"=>"kb. 1 órája", "other"=>"kb. %{count} órája"},
|
60
|
+
"about_x_months"=>
|
61
|
+
{"one"=>"kb. 1 hónapja", "other"=>"kb. %{count} hónapja"},
|
62
|
+
"about_x_years"=>{"one"=>"kb. 1 éve", "other"=>"kb. %{count} éve"},
|
62
63
|
"almost_x_years"=>
|
63
64
|
{"one"=>"majdnem 1 éve", "other"=>"majdnem %{count} éve"},
|
64
65
|
"half_a_minute"=>"fél perce",
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2014 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
|
+
require 'when_exe/locales/transliteration_table'
|
9
|
+
|
10
|
+
module When
|
11
|
+
module Locale
|
12
|
+
|
13
|
+
_IAST_Part_I = {
|
14
|
+
"A" => "अ", "a" => "अ",
|
15
|
+
"Ā" => "आ", "ā" => "आ",
|
16
|
+
"I" => "इ", "i" => "इ",
|
17
|
+
"Ī" => "ई", "ī" => "ई",
|
18
|
+
"U" => "उ", "u" => "उ",
|
19
|
+
"Ū" => "ऊ", "ū" => "ऊ",
|
20
|
+
"Ṛ" => "ऋ", "ṛ" => "ऋ",
|
21
|
+
"Ṝ" => "ॠ", "ṝ" => "ॠ",
|
22
|
+
"Ḷ" => "ऌ", "ḷ" => "ऌ",
|
23
|
+
"Ḹ" => "ॡ", "ḹ" => "ॡ",
|
24
|
+
"E" => "ए", "e" => "ए",
|
25
|
+
"Ai" => "ऐ", "ai" => "ऐ",
|
26
|
+
"O" => "ओ", "o" => "ओ",
|
27
|
+
"Au" => "औ", "au" => "औ",
|
28
|
+
"Ṃ" => "अं", "ṃ" => "अं",
|
29
|
+
"Ḥ" => "अः", "ḥ" => "अः",
|
30
|
+
"'" => "अऽ",
|
31
|
+
|
32
|
+
"K" => "क", "k" => "क",
|
33
|
+
"C" => "च", "c" => "च",
|
34
|
+
"Ṭ" => "ट", "ṭ" => "ट",
|
35
|
+
"T" => "त", "t" => "त",
|
36
|
+
"P" => "प", "p" => "प",
|
37
|
+
"Kh" => "ख", "kh" => "ख",
|
38
|
+
"Ch" => "छ", "ch" => "छ",
|
39
|
+
"Ṭh" => "ठ", "ṭh" => "ठ",
|
40
|
+
"Th" => "थ", "th" => "थ",
|
41
|
+
"Ph" => "फ", "ph" => "फ",
|
42
|
+
"G" => "ग", "g" => "ग",
|
43
|
+
"J" => "ज", "j" => "ज",
|
44
|
+
"Ḍ" => "ड", "ḍ" => "ड",
|
45
|
+
"D" => "द", "d" => "द",
|
46
|
+
"B" => "ब", "b" => "ब",
|
47
|
+
"Gh" => "घ", "gh" => "घ",
|
48
|
+
"Jh" => "झ", "jh" => "झ",
|
49
|
+
"Ḍh" => "ढ", "ḍh" => "ढ",
|
50
|
+
"Dh" => "ध", "dh" => "ध",
|
51
|
+
"Bh" => "भ", "bh" => "भ",
|
52
|
+
"Ṅ" => "ङ", "ṅ" => "ङ",
|
53
|
+
"Ñ" => "ञ", "ñ" => "ञ",
|
54
|
+
"Ṇ" => "ण", "ṇ" => "ण",
|
55
|
+
"N" => "न", "n" => "न",
|
56
|
+
"M" => "म", "m" => "म",
|
57
|
+
"H" => "ह", "h" => "ह",
|
58
|
+
"Y" => "य", "y" => "य",
|
59
|
+
"R" => "र", "r" => "र",
|
60
|
+
"L" => "ल", "l" => "ल",
|
61
|
+
"V" => "व", "v" => "व",
|
62
|
+
"Ś" => "श", "ś" => "श",
|
63
|
+
"Ṣ" => "ष", "ṣ" => "ष",
|
64
|
+
"S" => "स", "s" => "स"
|
65
|
+
}
|
66
|
+
|
67
|
+
_IAST_Part_II = {
|
68
|
+
"R̥" => "ऋ", "r̥" => "ऋ",
|
69
|
+
"R̥̄" => "ॠ", "r̥̄" => "ॠ",
|
70
|
+
"Ē" => "ए", "ē" => "ए",
|
71
|
+
"Ō" => "ओ", "ō" => "ओ",
|
72
|
+
"Ṁ" => "अं", "ṁ" => "अं"
|
73
|
+
}
|
74
|
+
|
75
|
+
#
|
76
|
+
# IAST: International Alphabet of Sanskrit Transliteration
|
77
|
+
#
|
78
|
+
IAST = {
|
79
|
+
'hi' => _IAST_Part_I.merge(_IAST_Part_II)
|
80
|
+
}
|
81
|
+
|
82
|
+
#
|
83
|
+
# IASTR: International Alphabet of Sanskrit Transliteration - Reverse
|
84
|
+
#
|
85
|
+
IASTR = {
|
86
|
+
'hi' => _IAST_Part_I.invert
|
87
|
+
}
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|