r18n-core 1.1.11 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/README.md +2 -2
- data/lib/r18n-core/filter_list.rb +2 -3
- data/lib/r18n-core/filters.rb +9 -10
- data/lib/r18n-core/helpers.rb +0 -1
- data/lib/r18n-core/i18n.rb +1 -2
- data/lib/r18n-core/locale.rb +10 -12
- data/lib/r18n-core/translated.rb +3 -4
- data/lib/r18n-core/translated_string.rb +0 -1
- data/lib/r18n-core/translation.rb +2 -3
- data/lib/r18n-core/unsupported_locale.rb +0 -1
- data/lib/r18n-core/untranslated.rb +0 -1
- data/lib/r18n-core/utils.rb +0 -11
- data/lib/r18n-core/version.rb +1 -2
- data/lib/r18n-core/yaml_loader.rb +0 -1
- data/lib/r18n-core/yaml_methods.rb +2 -8
- data/lib/r18n-core.rb +0 -3
- data/locales/bg.rb +11 -13
- data/locales/ca.rb +13 -14
- data/locales/cs.rb +15 -16
- data/locales/da.rb +13 -15
- data/locales/de.rb +14 -15
- data/locales/en-au.rb +2 -2
- data/locales/en-gb.rb +2 -2
- data/locales/en-us.rb +5 -7
- data/locales/en.rb +14 -14
- data/locales/eo.rb +11 -12
- data/locales/es-us.rb +6 -8
- data/locales/es.rb +11 -12
- data/locales/fi.rb +16 -17
- data/locales/fr.rb +10 -11
- data/locales/gl.rb +12 -13
- data/locales/hr.rb +12 -13
- data/locales/hu.rb +12 -13
- data/locales/id.rb +9 -9
- data/locales/it.rb +9 -10
- data/locales/ja.rb +11 -12
- data/locales/kk.rb +16 -18
- data/locales/lv.rb +16 -17
- data/locales/mn.rb +12 -14
- data/locales/nb.rb +12 -13
- data/locales/nl.rb +13 -14
- data/locales/no.rb +12 -13
- data/locales/pl.rb +13 -14
- data/locales/pt-br.rb +2 -3
- data/locales/pt.rb +13 -14
- data/locales/ru.rb +14 -15
- data/locales/sk.rb +15 -16
- data/locales/sr-latn.rb +12 -14
- data/locales/sv-se.rb +11 -13
- data/locales/th.rb +13 -14
- data/locales/tr.rb +12 -15
- data/locales/uk.rb +11 -15
- data/locales/zh-cn.rb +2 -3
- data/locales/zh-tw.rb +5 -6
- data/locales/zh.rb +10 -11
- data/r18n-core.gemspec +5 -4
- data/spec/filters_spec.rb +94 -91
- data/spec/i18n_spec.rb +66 -68
- data/spec/locale_spec.rb +74 -74
- data/spec/locales/cs_spec.rb +14 -14
- data/spec/locales/en-us_spec.rb +6 -6
- data/spec/locales/en_spec.rb +6 -6
- data/spec/locales/fr_spec.rb +2 -2
- data/spec/locales/hu_spec.rb +6 -7
- data/spec/locales/it_spec.rb +3 -4
- data/spec/locales/pl_spec.rb +14 -14
- data/spec/locales/ru_spec.rb +13 -13
- data/spec/locales/sk_spec.rb +14 -14
- data/spec/locales/th_spec.rb +2 -2
- data/spec/r18n_spec.rb +47 -49
- data/spec/spec_helper.rb +0 -7
- data/spec/translated_spec.rb +26 -28
- data/spec/translation_spec.rb +38 -40
- data/spec/yaml_loader_spec.rb +14 -16
- metadata +2 -2
data/locales/eo.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Eo < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Esperanto',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
5
|
+
wday_names: %w{dimanĉo lundo mardo merkredo ĵaŭdo vendredo sabato},
|
6
|
+
wday_abbrs: %w{dim lun mar mer ĵaŭ ven sab},
|
8
7
|
|
9
|
-
:
|
10
|
-
|
11
|
-
:
|
8
|
+
month_names: %w{januaro februaro marto aprilo majo junio julio
|
9
|
+
aŭgusto septembro oktobro novembro decembro},
|
10
|
+
month_abbrs: %w{jan feb mar apr maj jun jul aŭg sep okt nov dec},
|
12
11
|
|
13
|
-
:
|
14
|
-
:
|
15
|
-
:
|
12
|
+
date_format: '%Y-%m-%d',
|
13
|
+
full_format: 'la %e-a de %B',
|
14
|
+
year_format: '_ de %Y',
|
16
15
|
|
17
|
-
:
|
18
|
-
:
|
16
|
+
number_decimal: ".",
|
17
|
+
number_group: " "
|
19
18
|
end
|
20
19
|
end
|
data/locales/es-us.rb
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require File.join(File.dirname(__FILE__), 'es')
|
4
2
|
|
5
3
|
module R18n::Locales
|
6
4
|
class EsUs < Es
|
7
|
-
set :
|
8
|
-
:
|
5
|
+
set title: 'Español Estadounidense',
|
6
|
+
sublocales: %w{es en},
|
9
7
|
|
10
|
-
:
|
11
|
-
:
|
8
|
+
time_format: ' %I:%M %p',
|
9
|
+
date_format: '%m/%d/%Y',
|
12
10
|
|
13
|
-
:
|
14
|
-
:
|
11
|
+
number_decimal: ".",
|
12
|
+
number_group: ","
|
15
13
|
end
|
16
14
|
end
|
data/locales/es.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Es < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Español',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
5
|
+
wday_names: %w{domingo lunes martes miércoles jueves viernes sábado},
|
6
|
+
wday_abbrs: %w{dom lun mar mie jue vie sab},
|
8
7
|
|
9
|
-
:
|
10
|
-
|
11
|
-
:
|
8
|
+
month_names: %w{Enero Febrero Marzo Abril Mayo Junio Julio Agosto
|
9
|
+
Septiembre Octubre Noviembre Diciembre},
|
10
|
+
month_abbrs: %w{ene feb mar abr may jun jul ago sep oct nov dic},
|
12
11
|
|
13
|
-
:
|
14
|
-
:
|
15
|
-
:
|
12
|
+
date_format: '%d/%m/%Y',
|
13
|
+
full_format: '%d de %B',
|
14
|
+
year_format: '_ de %Y',
|
16
15
|
|
17
|
-
:
|
18
|
-
:
|
16
|
+
number_decimal: ",",
|
17
|
+
number_group: "."
|
19
18
|
end
|
20
19
|
end
|
data/locales/fi.rb
CHANGED
@@ -1,26 +1,25 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Fi < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Suomi',
|
5
4
|
|
6
|
-
:
|
7
|
-
|
8
|
-
:
|
5
|
+
wday_names: %w{sunnuntai maanantai tiistai keskiviikko torstai
|
6
|
+
terjantai lauantai},
|
7
|
+
wday_abbrs: %w{su ma ti ke to te la},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
12
|
-
|
13
|
-
:
|
14
|
-
:
|
15
|
-
|
16
|
-
|
9
|
+
month_names: %w{tammikuuta helmikuuta maaliskuuta huhtikuuta
|
10
|
+
toukokuuta kesäkuuta heinäkuuta elokuuta syyskuuta
|
11
|
+
lokakuuta marraskuuta joulukuuta},
|
12
|
+
month_abbrs: %w{tam hel maa huh tou kes hei elo syy lok mar jou},
|
13
|
+
month_standalone: %w{tammikuu helmikuu maaliskuu huhtikuu toukokuu
|
14
|
+
kesäkuu heinäkuu elokuu syyskuu lokakuu
|
15
|
+
marraskuu joulukuu},
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
17
|
+
date_format: '%d.%m.%Y',
|
18
|
+
time_format: ' %H.%M',
|
19
|
+
full_format: '%e. %B',
|
21
20
|
|
22
|
-
:
|
23
|
-
:
|
21
|
+
number_decimal: ",",
|
22
|
+
number_group: " "
|
24
23
|
|
25
24
|
def format_time_full(time, *params)
|
26
25
|
format_date_full(time) + ' kello' + format_time(time)
|
data/locales/fr.rb
CHANGED
@@ -1,21 +1,20 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Fr < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Français',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
5
|
+
wday_names: %w{dimanche lundi mardi mercredi jeudi vendredi samedi},
|
6
|
+
wday_abbrs: %w{dim lun mar mer jeu ven sam},
|
8
7
|
|
9
|
-
:
|
10
|
-
|
11
|
-
:
|
12
|
-
:
|
8
|
+
month_names: %w{janvier février mars avril mai juin juillet août
|
9
|
+
septembre octobre novembre décembre},
|
10
|
+
month_abbrs: %w{jan fév mar avr mai jun jui aoû sep oct nov déc},
|
11
|
+
month_standalone: %w{Janvier Février Mars Avril Mai Juin Juillet Août
|
13
12
|
Septembre Octobre Novembre Décembre},
|
14
13
|
|
15
|
-
:
|
14
|
+
date_format: '%d/%m/%Y',
|
16
15
|
|
17
|
-
:
|
18
|
-
:
|
16
|
+
number_decimal: ",",
|
17
|
+
number_group: " "
|
19
18
|
|
20
19
|
def format_date_full(date, year = true, *params)
|
21
20
|
full = super(date, year)
|
data/locales/gl.rb
CHANGED
@@ -1,21 +1,20 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Gl < Locale
|
4
|
-
set :
|
5
|
-
:
|
3
|
+
set title: 'Galego',
|
4
|
+
sublocales: %w{es en},
|
6
5
|
|
7
|
-
:
|
8
|
-
:
|
6
|
+
wday_names: %w{domingo luns martes mércores xoves venres sábado},
|
7
|
+
wday_abbrs: %w{dom lun mar mér xov ven sáb},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
12
|
-
:
|
9
|
+
month_names: %w{xaneiro febreiro marzo abril maio xuño xullo
|
10
|
+
agosto setembro outubro novembro decembro},
|
11
|
+
month_abbrs: %w{xan feb mar abr mai xuñ xul ago set out nov dec},
|
13
12
|
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
13
|
+
date_format: '%d/%m/%Y',
|
14
|
+
full_format: '%d de %B',
|
15
|
+
year_format: '_ de %Y',
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
17
|
+
number_decimal: ",",
|
18
|
+
number_group: "."
|
20
19
|
end
|
21
20
|
end
|
data/locales/hr.rb
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Hr < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Hrvatski',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
8
|
-
|
9
|
-
:
|
5
|
+
week_start: :monday,
|
6
|
+
wday_names: %w{Nedjelja Ponedjeljak Utorak Srijeda Četvrtak Petak
|
7
|
+
Subota},
|
8
|
+
wday_abbrs: %w{Ned Pon Uto Sri Čet Pet Sub},
|
10
9
|
|
11
|
-
:
|
12
|
-
|
13
|
-
:
|
10
|
+
month_names: %w{Siječanj Veljača Ožujak Travanj Svibanj Lipanj Srpanj
|
11
|
+
Kolovoz Rujan Listopad Studeni Prosinac},
|
12
|
+
month_abbrs: %w{Sij Velj Ožu Tra Svi Lip Srp Kol Ruj Lis Stu Pro},
|
14
13
|
|
15
|
-
:
|
16
|
-
:
|
14
|
+
date_format: '%d.%m.%Y',
|
15
|
+
full_format: '%e. %B',
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
17
|
+
number_decimal: ",",
|
18
|
+
number_group: "."
|
20
19
|
|
21
20
|
def pluralize(n)
|
22
21
|
if 0 == n
|
data/locales/hu.rb
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Hu < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Magyar',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
8
|
-
:
|
5
|
+
week_start: :monday,
|
6
|
+
wday_names: %w{vasárnap hétfő kedd szerda csütörtök péntek szombat},
|
7
|
+
wday_abbrs: %w{vas hét ked sze csü pén szo},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
12
|
-
:
|
9
|
+
month_names: %w{január február március április május június július
|
10
|
+
augusztus szeptember október november december},
|
11
|
+
month_abbrs: %w{jan feb már ápr máj jún júl aug sze okt nov dec},
|
13
12
|
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
13
|
+
date_format: '%Y. %m. %d.',
|
14
|
+
full_format: '%B %e.',
|
15
|
+
year_format: '%Y. _',
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
17
|
+
number_decimal: ",",
|
18
|
+
number_group: " "
|
20
19
|
|
21
20
|
def format_integer(integer)
|
22
21
|
str = integer.to_s
|
data/locales/id.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
module R18n
|
2
2
|
class Locales::Id < Locale
|
3
|
-
set :
|
3
|
+
set title: 'Bahasa Indonesia',
|
4
4
|
|
5
|
-
:
|
6
|
-
:
|
5
|
+
wday_names: %w{Minggu Senin Selasa Rabu Kamis Jumat Sabtu},
|
6
|
+
wday_abbrs: %w{Min Sen Sel Rab Kam Jum Sab},
|
7
7
|
|
8
|
-
:
|
9
|
-
|
10
|
-
:
|
8
|
+
month_names: %w{Januari Februari Maret April Mei Juni Juli Agustus
|
9
|
+
September Oktober Nopember Desember},
|
10
|
+
month_abbrs: %w{Jan Feb Mar Apr Mei Jun Jul Agu Sep Okt Nop Des},
|
11
11
|
|
12
|
-
:
|
12
|
+
date_format: '%d/%m/%Y',
|
13
13
|
|
14
|
-
:
|
15
|
-
:
|
14
|
+
number_decimal: ",",
|
15
|
+
number_group: "."
|
16
16
|
end
|
17
17
|
end
|
data/locales/it.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::It < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Italiano',
|
5
4
|
|
6
|
-
:
|
5
|
+
wday_names: %w{domenica lunedì martedì mercoledì giovedì venerdì
|
7
6
|
sabato},
|
8
|
-
:
|
7
|
+
wday_abbrs: %w{dom lun mar mer gio ven sab},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
12
|
-
:
|
9
|
+
month_names: %w{gennaio febbraio marzo aprile maggio giugno
|
10
|
+
luglio agosto settembre ottobre novembre dicembre},
|
11
|
+
month_abbrs: %w{gen feb mar apr mag giu lug ago set ott nov dic},
|
13
12
|
|
14
|
-
:
|
13
|
+
date_format: '%d/%m/%Y',
|
15
14
|
|
16
|
-
:
|
17
|
-
:
|
15
|
+
number_decimal: ",",
|
16
|
+
number_group: " "
|
18
17
|
|
19
18
|
def format_date_full(date, year = true, *params)
|
20
19
|
full = super(date, year)
|
data/locales/ja.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Ja < Locale
|
4
|
-
set :
|
3
|
+
set title: '日本語',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
8
|
-
:
|
5
|
+
week_start: :sunday,
|
6
|
+
wday_names: %w{日曜日 月曜日 火曜日 水曜日 木曜日 金曜日 土曜日},
|
7
|
+
wday_abbrs: %w{日 月 火 水 木 金 土},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
9
|
+
month_names: %w{一月 二月 三月 四月 五月 六月 七月 八月 九月 十月 十一月
|
10
|
+
十二月},
|
12
11
|
|
13
|
-
:
|
14
|
-
:
|
15
|
-
:
|
12
|
+
date_format: '%Y年%m月%d日',
|
13
|
+
full_format: '%m月%d日',
|
14
|
+
year_format: '%Y年_',
|
16
15
|
|
17
|
-
:
|
18
|
-
:
|
16
|
+
number_decimal: ".",
|
17
|
+
number_group: ","
|
19
18
|
end
|
20
19
|
end
|
data/locales/kk.rb
CHANGED
@@ -1,26 +1,24 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Kk < Locale
|
4
|
-
set :
|
5
|
-
:
|
3
|
+
set title: 'Қазақша',
|
4
|
+
sublocales: %w{ru en},
|
6
5
|
|
7
|
-
:
|
8
|
-
|
9
|
-
:wday_abbrs => %w{Жк Дс Сс Ср Бс Жм Сн},
|
6
|
+
wday_names: %w{Жексенбі Дүйсенбі Сейсенбі Сәрсенбі Бейсенбі Жұма Сенбі},
|
7
|
+
wday_abbrs: %w{Жк Дс Сс Ср Бс Жм Сн},
|
10
8
|
|
11
|
-
:
|
12
|
-
|
13
|
-
:
|
14
|
-
:
|
15
|
-
|
9
|
+
month_names: %w{қаңтар ақпан наурыз сәуір мамыр маусым шілде тамыз
|
10
|
+
қырқүйек қазан қараша желтоқсан},
|
11
|
+
month_abbrs: %w{қаң ақп нау сәу мам мау шіл там қыр қаз қар жел},
|
12
|
+
month_standalone: %w{Қаңтар Ақпан Наурыз Сәуір Мамыр Маусым Шілде
|
13
|
+
Тамыз Қыркүйек Қазан Қараша Желтоқсан},
|
16
14
|
|
17
|
-
:
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
15
|
+
time_am: ' ертеңің',
|
16
|
+
time_pm: ' кештің',
|
17
|
+
date_format: '%Y-%m-%d',
|
18
|
+
full_format: '%B %e-і',
|
19
|
+
year_format: '%Y жылы _',
|
22
20
|
|
23
|
-
:
|
24
|
-
:
|
21
|
+
number_decimal: ",",
|
22
|
+
number_group: " "
|
25
23
|
end
|
26
24
|
end
|
data/locales/lv.rb
CHANGED
@@ -1,26 +1,25 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Lv < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Latviešu',
|
5
4
|
|
6
|
-
:
|
7
|
-
:
|
8
|
-
|
9
|
-
:
|
5
|
+
week_start: :monday,
|
6
|
+
wday_names: %w{Svētdiena Pirmdiena Otrdiena Trešdiena Ceturtdiena
|
7
|
+
Piektdiena Sestdiena},
|
8
|
+
wday_abbrs: %w{Sv P O T C P S},
|
10
9
|
|
11
|
-
:
|
12
|
-
|
13
|
-
:
|
14
|
-
:
|
15
|
-
|
16
|
-
|
10
|
+
month_names: %w{janvārī februārī martā aprīlī maijā jūnijā jūlijā
|
11
|
+
augustā septembrī oktobrī novembrī decembrī},
|
12
|
+
month_abbrs: %w{jan feb mar apr mai jūn jūl aug sep okt nov dec},
|
13
|
+
month_standalone: %w{janvāris februāris marts aprīlis maijs jūnijs
|
14
|
+
jūlijs augusts septembris oktobris novembris
|
15
|
+
decembris},
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
17
|
+
date_format: '%d.%m.%Y.',
|
18
|
+
full_format: '%e.%B',
|
19
|
+
year_format: '%Y.gada _',
|
21
20
|
|
22
|
-
:
|
23
|
-
:
|
21
|
+
number_decimal: ",",
|
22
|
+
number_group: " "
|
24
23
|
|
25
24
|
def pluralize(n)
|
26
25
|
if 0 == n
|
data/locales/mn.rb
CHANGED
@@ -1,22 +1,20 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Mn < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Монгол',
|
5
4
|
|
6
|
-
:
|
7
|
-
|
8
|
-
|
9
|
-
:wday_abbrs => %w{ня да мя лх пү ба бя},
|
5
|
+
wday_names: ['Ням гариг', 'Даваа гариг', 'Мягмар гариг', 'Лхагва гариг',
|
6
|
+
'Пүрэв гариг', 'Баасан гариг', 'Бямба гариг'],
|
7
|
+
wday_abbrs: %w{ня да мя лх пү ба бя},
|
10
8
|
|
11
|
-
:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
month_names: ['Нэгдүгээр сар', 'Хоёрдугаар сар', 'Гуравдугаар сар',
|
10
|
+
'Дөрөвдүгээр сар', 'Тавдугаар сар', 'Зургадугаар сар',
|
11
|
+
'Долдугаар сар', 'Наймдугаар сар', 'Есдүгээр сар',
|
12
|
+
'Аравдугаар сар', 'Арваннэгдүгээр сар',
|
13
|
+
'Арванхоёрдугаар сар'],
|
16
14
|
|
17
|
-
:
|
15
|
+
date_format: '%Y-%m-%d',
|
18
16
|
|
19
|
-
:
|
20
|
-
:
|
17
|
+
number_decimal: ",",
|
18
|
+
number_group: "."
|
21
19
|
end
|
22
20
|
end
|
data/locales/nb.rb
CHANGED
@@ -1,21 +1,20 @@
|
|
1
|
-
#encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Nb < Locale
|
4
|
-
set :
|
5
|
-
:
|
3
|
+
set title: 'Norsk (bokmål)',
|
4
|
+
sublocales: %w{no nn en},
|
6
5
|
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
6
|
+
week_start: :monday,
|
7
|
+
wday_names: %w{søndag mandag tirsdag onsdag torsdag fredag lørdag},
|
8
|
+
wday_abbrs: %w{søn man tir ons tor fre lør},
|
10
9
|
|
11
|
-
:
|
12
|
-
|
13
|
-
:
|
10
|
+
month_names: %w{januar februar mars april mai juni juli august
|
11
|
+
september oktober november desember},
|
12
|
+
month_abbrs: %w{jan feb mar apr mai jun jul aug sep okt nov des},
|
14
13
|
|
15
|
-
:
|
16
|
-
:
|
14
|
+
date_format: '%d.%m.%Y',
|
15
|
+
full_format: '%e. %B %Y',
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
17
|
+
number_decimal: ",",
|
18
|
+
number_group: " "
|
20
19
|
end
|
21
20
|
end
|
data/locales/nl.rb
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Nl < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Nederlands',
|
5
4
|
|
6
|
-
:
|
7
|
-
|
8
|
-
:
|
5
|
+
wday_names: %w{zondag maandag dinsdag woensdag donderdag vrijdag
|
6
|
+
zaterdag},
|
7
|
+
wday_abbrs: %w{zo ma di wo do vr za},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
12
|
-
:
|
9
|
+
month_names: %w{januari februari maart april mei juni juli augustus
|
10
|
+
september oktober november december},
|
11
|
+
month_abbrs: %w{jan feb mrt apr mei jun jul aug sep okt nov dec},
|
13
12
|
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
17
|
-
:
|
13
|
+
time_am: "'s ochtends",
|
14
|
+
time_pm: "s middags",
|
15
|
+
date_format: '%d-%m-%Y',
|
16
|
+
full_format: '%e %B',
|
18
17
|
|
19
|
-
:
|
20
|
-
:
|
18
|
+
number_decimal: ",",
|
19
|
+
number_group: "."
|
21
20
|
end
|
22
21
|
end
|
data/locales/no.rb
CHANGED
@@ -1,21 +1,20 @@
|
|
1
|
-
#encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::No < Locale
|
4
|
-
set :
|
5
|
-
:
|
3
|
+
set title: 'Norsk',
|
4
|
+
sublocales: %w{nb nn en},
|
6
5
|
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
6
|
+
week_start: :monday,
|
7
|
+
wday_names: %w{søndag mandag tirsdag onsdag torsdag fredag lørdag},
|
8
|
+
wday_abbrs: %w{søn man tir ons tor fre lør},
|
10
9
|
|
11
|
-
:
|
12
|
-
|
13
|
-
:
|
10
|
+
month_names: %w{januar februar mars april mai juni juli august
|
11
|
+
september oktober november desember},
|
12
|
+
month_abbrs: %w{jan feb mar apr mai jun jul aug sep okt nov des},
|
14
13
|
|
15
|
-
:
|
16
|
-
:
|
14
|
+
date_format: '%d.%m.%Y',
|
15
|
+
full_format: '%e. %B %Y',
|
17
16
|
|
18
|
-
:
|
19
|
-
:
|
17
|
+
number_decimal: ",",
|
18
|
+
number_group: " "
|
20
19
|
end
|
21
20
|
end
|
data/locales/pl.rb
CHANGED
@@ -1,23 +1,22 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
module R18n
|
3
2
|
class Locales::Pl < Locale
|
4
|
-
set :
|
3
|
+
set title: 'Polski',
|
5
4
|
|
6
|
-
:
|
7
|
-
|
8
|
-
:
|
5
|
+
wday_names: %w{niedziela poniedziałek wtorek środa czwartek piątek
|
6
|
+
sobota},
|
7
|
+
wday_abbrs: %w{nd pn wt śr czw pt sob},
|
9
8
|
|
10
|
-
:
|
11
|
-
|
12
|
-
:
|
13
|
-
:
|
14
|
-
|
15
|
-
|
9
|
+
month_names: %w{stycznia lutego marca kwietnia maja czerwca lipca
|
10
|
+
sierpnia września października listopada grudnia},
|
11
|
+
month_abbrs: %w{I II III IV V VI VII VIII IX X XI XII},
|
12
|
+
month_standalone: %w{styczeń luty marzec kwiecień maj czerwiec lipiec
|
13
|
+
sierpień wrzesień październik listopad
|
14
|
+
grudzień},
|
16
15
|
|
17
|
-
:
|
16
|
+
date_format: '%d.%m.%Y',
|
18
17
|
|
19
|
-
:
|
20
|
-
:
|
18
|
+
number_decimal: ",",
|
19
|
+
number_group: " "
|
21
20
|
|
22
21
|
def pluralize(n)
|
23
22
|
return 0 if n == 0
|