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