date_tools 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/data/locales/ar.yml +47 -0
  2. data/data/locales/bg.yml +47 -0
  3. data/data/locales/ca.yml +47 -0
  4. data/data/locales/cs.yml +47 -0
  5. data/data/locales/da.yml +47 -0
  6. data/data/locales/de.yml +47 -0
  7. data/data/locales/de_at.yml +47 -0
  8. data/data/locales/de_ch.yml +47 -0
  9. data/data/locales/en.yml +47 -0
  10. data/data/locales/en_au.yml +47 -0
  11. data/data/locales/en_ca.yml +47 -0
  12. data/data/locales/en_gb.yml +47 -0
  13. data/data/locales/en_in.yml +47 -0
  14. data/data/locales/en_us.yml +47 -0
  15. data/data/locales/es.yml +47 -0
  16. data/data/locales/es_ar.yml +47 -0
  17. data/data/locales/es_cl.yml +47 -0
  18. data/data/locales/es_co.yml +47 -0
  19. data/data/locales/es_mx.yml +47 -0
  20. data/data/locales/es_pe.yml +47 -0
  21. data/data/locales/es_ve.yml +47 -0
  22. data/data/locales/fi.yml +47 -0
  23. data/data/locales/fr.yml +47 -0
  24. data/data/locales/fr_ca.yml +47 -0
  25. data/data/locales/fr_ch.yml +47 -0
  26. data/data/locales/it.yml +47 -0
  27. data/data/locales/it_ch.yml +47 -0
  28. data/data/locales/ko.yml +47 -0
  29. data/data/locales/lt.yml +47 -0
  30. data/data/locales/nl.yml +47 -0
  31. data/data/locales/nl_be.yml +47 -0
  32. data/data/locales/no.yml +47 -0
  33. data/data/locales/pt.yml +47 -0
  34. data/data/locales/pt_br.yml +47 -0
  35. data/data/locales/ru.yml +47 -0
  36. data/data/locales/se.yml +47 -0
  37. data/data/locales/sr.yml +47 -0
  38. data/data/locales/zh_TW.yml +47 -0
  39. data/examples/example_date_creator.rb +9 -1
  40. data/examples/example_date_i18n.rb +52 -0
  41. data/examples/example_date_locale.rb +18 -5
  42. data/examples/example_date_time_compare.rb +11 -2
  43. data/lib/date_tools.rb +93 -26
  44. data/lib/date_tools/date_locale.rb +126 -234
  45. data/lib/date_tools/date_time_compare.rb +3 -0
  46. data/unittest/test_date_creator.rb +1 -0
  47. data/unittest/test_date_locale.rb +103 -196
  48. data/unittest/test_date_locale_loaded.rb +113 -0
  49. data/unittest/test_date_time_compare.rb +1 -0
  50. data/unittest/test_date_tools.rb +13 -0
  51. metadata +90 -37
  52. data/readme.html +0 -68
  53. data/readme.txt +0 -50
@@ -0,0 +1,47 @@
1
+ ---
2
+ ar:
3
+ date:
4
+ abbr_day_names:
5
+ - الأحد
6
+ - الإثنين
7
+ - الثلاثاء
8
+ - الأربعاء
9
+ - الخميس
10
+ - الجمعة
11
+ - السبت
12
+ day_names:
13
+ - الأحد
14
+ - الإثنين
15
+ - الثلاثاء
16
+ - الأربعاء
17
+ - الخميس
18
+ - الجمعة
19
+ - السبت
20
+ abbr_month_names:
21
+ -
22
+ - يناير
23
+ - فبراير
24
+ - مارس
25
+ - ابريل
26
+ - مايو
27
+ - يونيو
28
+ - يوليو
29
+ - اغسطس
30
+ - سبتمبر
31
+ - اكتوبر
32
+ - نوفمبر
33
+ - ديسمبر
34
+ month_names:
35
+ -
36
+ - يناير
37
+ - فبراير
38
+ - مارس
39
+ - ابريل
40
+ - مايو
41
+ - يونيو
42
+ - يوليو
43
+ - اغسطس
44
+ - سبتمبر
45
+ - اكتوبر
46
+ - نوفمبر
47
+ - ديسمبر
@@ -0,0 +1,47 @@
1
+ ---
2
+ bg:
3
+ date:
4
+ abbr_day_names:
5
+ - нед
6
+ - пон
7
+ - вт
8
+ - ср
9
+ - чет
10
+ - пет
11
+ - съб
12
+ day_names:
13
+ - неделя
14
+ - понеделник
15
+ - вторник
16
+ - сряда
17
+ - четвъртък
18
+ - петък
19
+ - събота
20
+ abbr_month_names:
21
+ -
22
+ - яну.
23
+ - фев.
24
+ - март
25
+ - апр.
26
+ - май
27
+ - юни
28
+ - юли
29
+ - авг.
30
+ - сеп.
31
+ - окт.
32
+ - ноем.
33
+ - дек.
34
+ month_names:
35
+ -
36
+ - януари
37
+ - февруари
38
+ - март
39
+ - април
40
+ - май
41
+ - юни
42
+ - юли
43
+ - август
44
+ - септември
45
+ - октомври
46
+ - ноември
47
+ - декември
@@ -0,0 +1,47 @@
1
+ ---
2
+ ca:
3
+ date:
4
+ abbr_day_names:
5
+ - Dg
6
+ - Dl
7
+ - Dm
8
+ - Dc
9
+ - Dj
10
+ - Dv
11
+ - Ds
12
+ day_names:
13
+ - Diumenge
14
+ - Dilluns
15
+ - Dimarts
16
+ - Dimecres
17
+ - Dijous
18
+ - Divendres
19
+ - Dissabte
20
+ abbr_month_names:
21
+ -
22
+ - Gen
23
+ - Feb
24
+ - Mar
25
+ - Abr
26
+ - Mai
27
+ - Jun
28
+ - Jul
29
+ - Ago
30
+ - Set
31
+ - Oct
32
+ - Nov
33
+ - Des
34
+ month_names:
35
+ -
36
+ - Gener
37
+ - Febrer
38
+ - Març
39
+ - Abril
40
+ - Maig
41
+ - Juny
42
+ - Juliol
43
+ - Agost
44
+ - Setembre
45
+ - Octubre
46
+ - Novembre
47
+ - Desembre
@@ -0,0 +1,47 @@
1
+ ---
2
+ cs:
3
+ date:
4
+ abbr_day_names:
5
+ - Ne
6
+ - Po
7
+ - Út
8
+ - St
9
+ - Čt
10
+ - Pá
11
+ - So
12
+ day_names:
13
+ - Neděle
14
+ - Pondělí
15
+ - Úterý
16
+ - Středa
17
+ - Čtvrtek
18
+ - Pátek
19
+ - Sobota
20
+ abbr_month_names:
21
+ -
22
+ - Led
23
+ - Úno
24
+ - Bře
25
+ - Dub
26
+ - Kvě
27
+ - Čvn
28
+ - Čvc
29
+ - Srp
30
+ - Zář
31
+ - Říj
32
+ - Lis
33
+ - Pro
34
+ month_names:
35
+ -
36
+ - Leden
37
+ - Únor
38
+ - Březen
39
+ - Duben
40
+ - Květen
41
+ - Červen
42
+ - Červenec
43
+ - Srpen
44
+ - Září
45
+ - Říjen
46
+ - Listopad
47
+ - Prosinec
@@ -0,0 +1,47 @@
1
+ ---
2
+ da:
3
+ date:
4
+ abbr_day_names:
5
+ - søn
6
+ - man
7
+ - tir
8
+ - ons
9
+ - tors
10
+ - fre
11
+ - lør
12
+ day_names:
13
+ - søndag
14
+ - mandag
15
+ - tirsdag
16
+ - onsdag
17
+ - torsdag
18
+ - fredag
19
+ - lørdag
20
+ abbr_month_names:
21
+ -
22
+ - jan
23
+ - feb
24
+ - mar
25
+ - apr
26
+ - maj
27
+ - jun
28
+ - jul
29
+ - aug
30
+ - sep
31
+ - okt
32
+ - nov
33
+ - dec
34
+ month_names:
35
+ -
36
+ - januar
37
+ - februar
38
+ - marts
39
+ - april
40
+ - maj
41
+ - juni
42
+ - juli
43
+ - august
44
+ - september
45
+ - oktober
46
+ - november
47
+ - december
@@ -0,0 +1,47 @@
1
+ ---
2
+ de:
3
+ date:
4
+ abbr_day_names:
5
+ - So
6
+ - Mo
7
+ - Di
8
+ - Mi
9
+ - Do
10
+ - Fr
11
+ - Sa
12
+ day_names:
13
+ - Sonntag
14
+ - Montag
15
+ - Dienstag
16
+ - Mittwoch
17
+ - Donnerstag
18
+ - Freitag
19
+ - Samstag
20
+ abbr_month_names:
21
+ -
22
+ - Jan
23
+ - Feb
24
+ - Mrz
25
+ - Apr
26
+ - Mai
27
+ - Jun
28
+ - Jul
29
+ - Aug
30
+ - Sep
31
+ - Okt
32
+ - Nov
33
+ - Dez
34
+ month_names:
35
+ -
36
+ - Januar
37
+ - Februar
38
+ - März
39
+ - April
40
+ - Mai
41
+ - Juni
42
+ - Juli
43
+ - August
44
+ - September
45
+ - Oktober
46
+ - November
47
+ - Dezember
@@ -0,0 +1,47 @@
1
+ ---
2
+ de_at:
3
+ date:
4
+ abbr_day_names:
5
+ - So
6
+ - Mo
7
+ - Di
8
+ - Mi
9
+ - Do
10
+ - Fr
11
+ - Sa
12
+ day_names:
13
+ - Sonntag
14
+ - Montag
15
+ - Dienstag
16
+ - Mittwoch
17
+ - Donnerstag
18
+ - Freitag
19
+ - Samstag
20
+ abbr_month_names:
21
+ -
22
+ - Jän
23
+ - Feb
24
+ - Mrz
25
+ - Apr
26
+ - Mai
27
+ - Jun
28
+ - Jul
29
+ - Aug
30
+ - Sep
31
+ - Okt
32
+ - Nov
33
+ - Dez
34
+ month_names:
35
+ -
36
+ - Jänner
37
+ - Februar
38
+ - März
39
+ - April
40
+ - Mai
41
+ - Juni
42
+ - Juli
43
+ - August
44
+ - September
45
+ - Oktober
46
+ - November
47
+ - Dezember
@@ -0,0 +1,47 @@
1
+ ---
2
+ de_ch:
3
+ date:
4
+ abbr_day_names:
5
+ - So
6
+ - Mo
7
+ - Di
8
+ - Mi
9
+ - Do
10
+ - Fr
11
+ - Sa
12
+ day_names:
13
+ - Sonntag
14
+ - Montag
15
+ - Dienstag
16
+ - Mittwoch
17
+ - Donnerstag
18
+ - Freitag
19
+ - Samstag
20
+ abbr_month_names:
21
+ -
22
+ - Jan
23
+ - Feb
24
+ - Mrz
25
+ - Apr
26
+ - Mai
27
+ - Jun
28
+ - Jul
29
+ - Aug
30
+ - Sep
31
+ - Okt
32
+ - Nov
33
+ - Dez
34
+ month_names:
35
+ -
36
+ - Januar
37
+ - Februar
38
+ - März
39
+ - April
40
+ - Mai
41
+ - Juni
42
+ - Juli
43
+ - August
44
+ - September
45
+ - Oktober
46
+ - November
47
+ - Dezember
@@ -0,0 +1,47 @@
1
+ ---
2
+ en:
3
+ date:
4
+ abbr_day_names:
5
+ - Sun
6
+ - Mon
7
+ - Tue
8
+ - Wed
9
+ - Thu
10
+ - Fri
11
+ - Sat
12
+ day_names:
13
+ - Sunday
14
+ - Monday
15
+ - Tuesday
16
+ - Wednesday
17
+ - Thursday
18
+ - Friday
19
+ - Saturday
20
+ abbr_month_names:
21
+ -
22
+ - Jan
23
+ - Feb
24
+ - Mar
25
+ - Apr
26
+ - May
27
+ - Jun
28
+ - Jul
29
+ - Aug
30
+ - Sep
31
+ - Oct
32
+ - Nov
33
+ - Dec
34
+ month_names:
35
+ -
36
+ - January
37
+ - February
38
+ - March
39
+ - April
40
+ - May
41
+ - June
42
+ - July
43
+ - August
44
+ - September
45
+ - October
46
+ - November
47
+ - December
@@ -0,0 +1,47 @@
1
+ ---
2
+ en_au:
3
+ date:
4
+ abbr_day_names:
5
+ - Sun
6
+ - Mon
7
+ - Tue
8
+ - Wed
9
+ - Thu
10
+ - Fri
11
+ - Sat
12
+ day_names:
13
+ - Sunday
14
+ - Monday
15
+ - Tuesday
16
+ - Wednesday
17
+ - Thursday
18
+ - Friday
19
+ - Saturday
20
+ abbr_month_names:
21
+ -
22
+ - Jan
23
+ - Feb
24
+ - Mar
25
+ - Apr
26
+ - May
27
+ - Jun
28
+ - Jul
29
+ - Aug
30
+ - Sep
31
+ - Oct
32
+ - Nov
33
+ - Dec
34
+ month_names:
35
+ -
36
+ - January
37
+ - February
38
+ - March
39
+ - April
40
+ - May
41
+ - June
42
+ - July
43
+ - August
44
+ - September
45
+ - October
46
+ - November
47
+ - December