r18n-core 0.3.2 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +11 -0
- data/README.rdoc +225 -53
- data/lib/r18n-core/filters.rb +34 -34
- data/lib/r18n-core/i18n.rb +110 -46
- data/lib/r18n-core/locale.rb +109 -103
- data/lib/r18n-core/translated.rb +9 -4
- data/lib/r18n-core/translated_string.rb +10 -0
- data/lib/r18n-core/translation.rb +55 -99
- data/lib/r18n-core/unsupported_locale.rb +1 -13
- data/lib/r18n-core/untranslated.rb +18 -16
- data/lib/r18n-core/utils.rb +0 -12
- data/lib/r18n-core/version.rb +1 -1
- data/lib/r18n-core/yaml_loader.rb +67 -0
- data/lib/r18n-core.rb +25 -3
- data/locales/cs.rb +30 -16
- data/locales/de.rb +21 -0
- data/locales/en-us.rb +9 -4
- data/locales/en.rb +35 -20
- data/locales/eo.rb +20 -0
- data/locales/es.rb +20 -0
- data/locales/fr.rb +24 -9
- data/locales/it.rb +21 -9
- data/locales/kk.rb +26 -0
- data/locales/pl.rb +30 -18
- data/locales/pt-br.rb +24 -0
- data/locales/ru.rb +30 -12
- data/locales/zh.rb +19 -0
- data/spec/filters_spec.rb +24 -7
- data/spec/i18n_spec.rb +137 -50
- data/spec/locale_spec.rb +91 -53
- data/spec/locales/cs_spec.rb +9 -7
- data/spec/locales/pl_spec.rb +8 -9
- data/spec/locales/ru_spec.rb +9 -9
- data/spec/r18n_spec.rb +32 -13
- data/spec/spec_helper.rb +28 -4
- data/spec/translated_spec.rb +1 -1
- data/spec/translation_spec.rb +33 -67
- data/spec/translations/two/en.yml +0 -1
- data/spec/yaml_loader_spec.rb +33 -0
- metadata +11 -16
- data/locales/cs.yml +0 -26
- data/locales/de.yml +0 -26
- data/locales/en-us.yml +0 -10
- data/locales/en.yml +0 -26
- data/locales/eo.yml +0 -26
- data/locales/es.yml +0 -26
- data/locales/fr.yml +0 -26
- data/locales/it.yml +0 -26
- data/locales/kk.yml +0 -26
- data/locales/pl.yml +0 -26
- data/locales/pt-br.yml +0 -26
- data/locales/ru.yml +0 -26
- data/locales/zh.yml +0 -26
data/locales/de.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Deutsch
|
2
|
-
code: de
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
|
9
|
-
abbrs: [So, Mo, Di, Mi, Do, Fr, Sa]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
|
13
|
-
abbrs: [Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
|
14
|
-
standalone: [Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: vormittags
|
18
|
-
pm: nachmittags
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d.%m.%Y"
|
21
|
-
full: "%e %B %Y"
|
22
|
-
year: "_ %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: "."
|
data/locales/en-us.yml
DELETED
data/locales/en.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: English
|
2
|
-
code: en
|
3
|
-
sublocales: []
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: sunday
|
8
|
-
days: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
|
9
|
-
abbrs: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [January, February, March, April, May, June, July, August, September, October, November, December]
|
13
|
-
abbrs: [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
|
14
|
-
standalone: [January, February, March, April, May, June, July, August, September, October, November, December]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d/%m/%Y"
|
21
|
-
full: "%e of %B"
|
22
|
-
year: "_, %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: "."
|
26
|
-
group_delimiter: ","
|
data/locales/eo.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Esperanto
|
2
|
-
code: eo
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [dimanĉo, lundo, mardo, merkredo, ĵaŭdo, vendredo, sabato]
|
9
|
-
abbrs: [dim, lun, mar, mer, ĵaŭ, ven, seb]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [januaro, februaro, marto, aprilo, majo, junio, julio, aŭgusto, septembro, oktobro, novembro, decembro]
|
13
|
-
abbrs: [jan, feb, mar, apr, maj, jun, jul, aŭg, sep, okt, nov, dec]
|
14
|
-
standalone: [januaro, februaro, marto, aprilo, majo, junio, julio, aŭgusto, septembro, oktobro, novembro, decembro]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%Y-%m-%d"
|
21
|
-
full: "la %e-a de %B"
|
22
|
-
year: "_ de %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: "."
|
26
|
-
group_delimiter: " "
|
data/locales/es.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Español
|
2
|
-
code: es
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [domingo, lunes, martes, miércoles, jueves, viernes, sábado]
|
9
|
-
abbrs: [dom, lun, mar, mie, jue, mie, sab]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre ]
|
13
|
-
abbrs: [ene, feb, mar, abr, may, jun, jul, ago, sep, oct, nov, dic]
|
14
|
-
standalone: [Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d/%m/%Y"
|
21
|
-
full: "%d de %B"
|
22
|
-
year: "_ de %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: "."
|
data/locales/fr.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Français
|
2
|
-
code: fr
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
|
9
|
-
abbrs: [dim, lun, mar, mer, jeu, ven, sam]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre]
|
13
|
-
abbrs: [jan, fév, mar, avr, mai, jun, jui, aoû, sep, oct, nov, déc]
|
14
|
-
standalone: [Janvier, Février, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Décembre]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d/%m/%Y"
|
21
|
-
full: "%e %B"
|
22
|
-
year: "_ %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: " "
|
data/locales/it.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Italiano
|
2
|
-
code: it
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [domenica, lunedì, martedì, mercoledì, giovedì, venerdì, sabato]
|
9
|
-
abbrs: [dom, lun, mar, mer, gio, ven, sab]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [gennaio, febbraio, marzo, aprile, maggio, giugno, luglio, agosto, settembre, ottobre, novembre, dicembre]
|
13
|
-
abbrs: [gen, feb, mar, apr, mag, giu, lug, ago, set, ott, nov, dic]
|
14
|
-
standalone: [gennaio, febbraio, marzo, aprile, maggio, giugno, luglio, agosto, settembre, ottobre, novembre, dicembre]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d/%m/%Y"
|
21
|
-
full: "%e %B"
|
22
|
-
year: "_ %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: "."
|
data/locales/kk.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Қазақша
|
2
|
-
code: kk
|
3
|
-
sublocales: [ru, en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [Жексенбі, Дүйсенбі, Сейсенбі, Сәрсенбі, Бейсенбі, Жұма, Сенбі]
|
9
|
-
abbrs: [Жк, Дс, Сс, Ср, Бс, Жм, Сн]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [қаңтар, ақпан, наурыз, сәуір, мамыр, маусым, шілде, тамыз, қырқүйек, қазан, қараша, желтоқсан]
|
13
|
-
abbrs: [қаң, ақп, нау, сәу, мам, мау, шіл, там, қыр, қаз, қар, жел]
|
14
|
-
standalone: [Қаңтар, Ақпан, Наурыз, Сәуір, Мамыр, Маусым, Шілде, Тамыз, Қыркүйек, Қазан, Қараша, Желтоқсан]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: " ертеңің"
|
18
|
-
pm: " кештің"
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%Y-%m-%d"
|
21
|
-
full: "%Y %B %e-і"
|
22
|
-
year: "%Y жылы _"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: " "
|
data/locales/pl.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Polski
|
2
|
-
code: pl
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [niedziela, poniedziałek, wtorek, środa, czwartek, piątek, sobota]
|
9
|
-
abbrs: [nd, pn, wt, śr, czw, pt, sob]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [stycznia, lutego, marca, kwietnia, maja, czerwca, lipca, sierpnia, września, pażdziernika, listopada, grudnia]
|
13
|
-
abbrs: [I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII]
|
14
|
-
standalone: [styczeń, luty, marzec, kwiecień, maj, czerwiec, lipiec, sierpień, wrzesień, październik, listopad, grudzień]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d/%m/%Y"
|
21
|
-
full: "%e %B"
|
22
|
-
year: "_ %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: " "
|
data/locales/pt-br.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Português brasileiro
|
2
|
-
code: pt-BR
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [domingo, segunda-feira, terça-feira, quarta-feira, quinta-feira, sexta-feira, sábado]
|
9
|
-
abbrs: [dom, seg, ter, qua, qui, sex, sab]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [janeiro, fevereiro, março, abril, maio, junho, julho, agosto, setembro, outubro, novembro, dezembro ]
|
13
|
-
abbrs: [jan, fev, mar, abr, mai, jun, jul, ago, set, out, nov, dez]
|
14
|
-
standalone: [Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro ]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: Hs
|
18
|
-
pm: Hs
|
19
|
-
time: " %H:%M:%S"
|
20
|
-
date: "%d/%m/%Y"
|
21
|
-
full: "%d de %B"
|
22
|
-
year: "_ de %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: "."
|
data/locales/ru.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: Русский
|
2
|
-
code: ru
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [Воскресенье, Понедельник, Вторник, Среда, Четверг, Пятница, Суббота]
|
9
|
-
abbrs: [Вск, Пнд, Втр, Срд, Чтв, Птн, Сбт]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [января, февраля, марта, апреля, мая, июня, июля, августа, сентября, октября, ноября, декабря]
|
13
|
-
abbrs: [янв, фев, мар, апр, май, июн, июл, авг, сен, окт, ноя, дек]
|
14
|
-
standalone: [Январь, Февраль, Март, Апрель, Май, Июнь, Июль, Август, Сентябрь, Октябрь, Ноябрь, Декабрь]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: " утра"
|
18
|
-
pm: " вечера"
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%d.%m.%Y"
|
21
|
-
full: "%e %B"
|
22
|
-
year: "_ %Y"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: ","
|
26
|
-
group_delimiter: " "
|
data/locales/zh.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
title: 中文
|
2
|
-
code: zh
|
3
|
-
sublocales: [en]
|
4
|
-
direction: ltr
|
5
|
-
|
6
|
-
week:
|
7
|
-
start: monday
|
8
|
-
days: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
|
9
|
-
abbrs: [ 周日, 周一, 周二, 周三, 周四, 周五, 周六 ]
|
10
|
-
|
11
|
-
months:
|
12
|
-
names: [ 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
|
13
|
-
abbrs: [ 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
|
14
|
-
standalone: [ 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
|
15
|
-
|
16
|
-
time:
|
17
|
-
am: AM
|
18
|
-
pm: PM
|
19
|
-
time: " %H:%M"
|
20
|
-
date: "%Y年%m月%d日"
|
21
|
-
full: "%m月%d日"
|
22
|
-
year: "%Y年_"
|
23
|
-
|
24
|
-
numbers:
|
25
|
-
decimal_separator: "."
|
26
|
-
group_delimiter: " "
|