refinerycms-i18n 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +27 -9
  3. data/Gemfile +17 -7
  4. data/Rakefile +2 -0
  5. data/app/assets/images/refinery/icons/flags/ko.png +0 -0
  6. data/app/assets/images/refinery/icons/flags/{ua.png → uk.png} +0 -0
  7. data/lib/generators/refinery/i18n_generator.rb +2 -1
  8. data/lib/generators/refinery/templates/config/initializers/refinery/i18n.rb.erb +0 -2
  9. data/lib/refinery/i18n-filter.rb +4 -4
  10. data/lib/refinery/i18n.rb +10 -6
  11. data/lib/refinery/i18n/configuration.rb +10 -2
  12. data/lib/refinery/i18n/engine.rb +20 -18
  13. data/refinerycms-i18n.gemspec +8 -6
  14. data/script/rails +5 -0
  15. data/spec/{requests → features}/dashboard_locale_picker_spec.rb +2 -2
  16. data/spec/spec_helper.rb +20 -46
  17. data/spec/support/refinery/i18n/set_defaults.rb +17 -0
  18. metadata +25 -97
  19. data/config/locales/ar.yml +0 -124
  20. data/config/locales/bg.yml +0 -280
  21. data/config/locales/bn-IN.yml +0 -183
  22. data/config/locales/bs.yml +0 -117
  23. data/config/locales/ca.yml +0 -170
  24. data/config/locales/cs.rb +0 -168
  25. data/config/locales/cy.yml +0 -181
  26. data/config/locales/da.yml +0 -195
  27. data/config/locales/de-AT.yml +0 -154
  28. data/config/locales/de-CH.yml +0 -154
  29. data/config/locales/de.yml +0 -193
  30. data/config/locales/dsb.yml +0 -185
  31. data/config/locales/el.yml +0 -133
  32. data/config/locales/en-AU.yml +0 -180
  33. data/config/locales/en-GB.yml +0 -210
  34. data/config/locales/en-US.yml +0 -182
  35. data/config/locales/eo.yml +0 -182
  36. data/config/locales/es-AR.yml +0 -177
  37. data/config/locales/es-CO.yml +0 -179
  38. data/config/locales/es-MX.yml +0 -186
  39. data/config/locales/es-PE.yml +0 -124
  40. data/config/locales/es.yml +0 -285
  41. data/config/locales/et.yml +0 -187
  42. data/config/locales/eu.yml +0 -264
  43. data/config/locales/fa.yml +0 -143
  44. data/config/locales/fi.yml +0 -155
  45. data/config/locales/fr-CA.yml +0 -187
  46. data/config/locales/fr-CH.yml +0 -184
  47. data/config/locales/fr.yml +0 -182
  48. data/config/locales/fun/en-AU.rb +0 -105
  49. data/config/locales/fun/gibberish.rb +0 -109
  50. data/config/locales/fur.yml +0 -144
  51. data/config/locales/gl-ES.yml +0 -196
  52. data/config/locales/gsw-CH.yml +0 -182
  53. data/config/locales/he.yml +0 -106
  54. data/config/locales/hi-IN.yml +0 -181
  55. data/config/locales/hi.yml +0 -181
  56. data/config/locales/hr.yml +0 -119
  57. data/config/locales/hsb.yml +0 -193
  58. data/config/locales/hu.yml +0 -147
  59. data/config/locales/id.yml +0 -142
  60. data/config/locales/is.yml +0 -145
  61. data/config/locales/it.yml +0 -198
  62. data/config/locales/ja.yml +0 -191
  63. data/config/locales/ko.yml +0 -186
  64. data/config/locales/lo.yml +0 -204
  65. data/config/locales/lt.yml +0 -144
  66. data/config/locales/lv.yml +0 -181
  67. data/config/locales/mk.yml +0 -118
  68. data/config/locales/mn.yml +0 -159
  69. data/config/locales/nb.yml +0 -140
  70. data/config/locales/nl.yml +0 -186
  71. data/config/locales/nn.yml +0 -99
  72. data/config/locales/pl.yml +0 -193
  73. data/config/locales/pt-BR.yml +0 -208
  74. data/config/locales/pt-PT.yml +0 -190
  75. data/config/locales/rm.yml +0 -137
  76. data/config/locales/ro.yml +0 -155
  77. data/config/locales/ru.yml +0 -213
  78. data/config/locales/sk.yml +0 -195
  79. data/config/locales/sl.yml +0 -193
  80. data/config/locales/sr-Latn.yml +0 -119
  81. data/config/locales/sr.yml +0 -119
  82. data/config/locales/sv.yml +0 -244
  83. data/config/locales/sw.yml +0 -182
  84. data/config/locales/th.rb +0 -200
  85. data/config/locales/tr.yml +0 -142
  86. data/config/locales/uk.yml +0 -240
  87. data/config/locales/vi.yml +0 -201
  88. data/config/locales/zh-CN.yml +0 -210
  89. data/config/locales/zh-TW.yml +0 -210
  90. data/lib/gemspec.rb +0 -29
data/config/locales/cs.rb DELETED
@@ -1,168 +0,0 @@
1
- # encoding: utf-8
2
- # Czech translations for Ruby on Rails
3
- # by Karel Minařík (karmi@karmi.cz)
4
-
5
- { :'cs' => {
6
-
7
- # ActiveSupport
8
- :support => {
9
- :array => {
10
- :two_words_connector => ' a ',
11
- :sentence_connector => 'a',
12
- :skip_last_comma => true
13
- }
14
- },
15
-
16
- # Date
17
- :date => {
18
- :formats => {
19
- :default => "%d. %m. %Y",
20
- :short => "%d %b",
21
- :long => "%d. %B %Y"
22
- },
23
- :day_names => %w{Neděle Pondělí Úterý Středa Čtvrtek Pátek Sobota},
24
- :abbr_day_names => %w{Ne Po Út St Čt Pá So},
25
- :month_names => %w{~ Leden Únor Březen Duben Květen Červen Červenec Srpen Září Říjen Listopad Prosinec},
26
- :abbr_month_names => %w{~ Led Úno Bře Dub Kvě Čvn Čvc Srp Zář Říj Lis Pro},
27
- :order => [:day, :month, :year]
28
- },
29
-
30
- # Time
31
- :time => {
32
- :formats => {
33
- :default => "%a %d. %B %Y %H:%M %z",
34
- :short => "%d. %m. %H:%M",
35
- :long => "%A %d. %B %Y %H:%M",
36
- },
37
- :am => 'am',
38
- :pm => 'pm'
39
- },
40
-
41
- # Numbers
42
- :number => {
43
- :format => {
44
- :precision => 3,
45
- :separator => '.',
46
- :delimiter => ','
47
- },
48
- :currency => {
49
- :format => {
50
- :unit => 'Kč',
51
- :precision => 2,
52
- :format => '%n %u',
53
- :separator => ",",
54
- :delimiter => " "
55
- }
56
- },
57
- :human => {
58
- :format => {
59
- :precision => 1,
60
- :delimiter => ''
61
- },
62
- :storage_units => {
63
- :format => "%n %u",
64
- :units => {
65
- :byte => "B",
66
- :kb => "KB",
67
- :mb => "MB",
68
- :gb => "GB",
69
- :tb => "TB"
70
- }
71
- }
72
- },
73
- :percentage => {
74
- :format => {
75
- :delimiter => ''
76
- }
77
- },
78
- :precision => {
79
- :format => {
80
- :delimiter => ''
81
- }
82
- }
83
- },
84
-
85
- # Distance of time ... helper
86
- # NOTE: In Czech language, these values are different for the past and for the future. Preference has been given to past here.
87
- :datetime => {
88
- :distance_in_words => {
89
- :half_a_minute => 'půl minutou',
90
- :less_than_x_seconds => {
91
- :one => 'asi před sekundou',
92
- :other => 'asi před %{count} sekundami'
93
- },
94
- :x_seconds => {
95
- :one => 'sekundou',
96
- :other => '%{count} sekundami'
97
- },
98
- :less_than_x_minutes => {
99
- :one => 'před necelou minutou',
100
- :other => 'před ani ne %{count} minutami'
101
- },
102
- :x_minutes => {
103
- :one => 'minutou',
104
- :other => '%{count} minutami'
105
- },
106
- :about_x_hours => {
107
- :one => 'asi hodinou',
108
- :other => 'asi %{count} hodinami'
109
- },
110
- :x_days => {
111
- :one => '24 hodinami',
112
- :other => '%{count} dny'
113
- },
114
- :about_x_months => {
115
- :one => 'asi měsícem',
116
- :other => 'asi %{count} měsíci'
117
- },
118
- :x_months => {
119
- :one => 'měsícem',
120
- :other => '%{count} měsíci'
121
- },
122
- :about_x_years => {
123
- :one => 'asi rokem',
124
- :other => 'asi %{count} roky'
125
- },
126
- :over_x_years => {
127
- :one => 'více než před rokem',
128
- :other => 'více než %{count} roky'
129
- }
130
- }
131
- },
132
-
133
- # ActiveRecord validation messages
134
- :activerecord => {
135
- :errors => {
136
- :messages => {
137
- :inclusion => "není v seznamu povolených hodnot",
138
- :exclusion => "je vyhrazeno pro jiný účel",
139
- :invalid => "není platná hodnota",
140
- :confirmation => "nebylo potvrzeno",
141
- :accepted => "musí být potvrzeno",
142
- :empty => "nesmí být prázdný/é",
143
- :blank => "je povinná položka", # alternate formulation: "is required"
144
- :too_long => "je příliš dlouhá/ý (max. %{count} znaků)",
145
- :too_short => "je příliš krátký/á (min. %{count} znaků)",
146
- :wrong_length => "nemá správnou délku (očekáváno %{count} znaků)",
147
- :taken => "již databáze obsahuje",
148
- :not_a_number => "není číslo",
149
- :greater_than => "musí být větší než %{count}",
150
- :greater_than_or_equal_to => "musí být větší nebo rovno %{count}",
151
- :equal_to => "musí být rovno %{count}",
152
- :less_than => "musí být méně než %{count}",
153
- :less_than_or_equal_to => "musí být méně nebo rovno %{count}",
154
- :odd => "musí být liché číslo",
155
- :even => "musí být sudé číslo"
156
- },
157
- :template => {
158
- :header => {
159
- :one => "Při ukládání objektu %{model} došlo k chybám a nebylo jej možné uložit",
160
- :other => "Při ukládání objektu %{model} došlo ke %{count} chybám a nebylo možné jej uložit"
161
- },
162
- :body => "Následující pole obsahují chybně vyplněné údaje:"
163
- }
164
- }
165
- }
166
- }
167
- }
168
-
@@ -1,181 +0,0 @@
1
- # Welsh translations for Ruby on Rails
2
- # by Aran Jones (aranjones@gmail.com)
3
-
4
- cy:
5
- date:
6
- formats:
7
- default: "%d-%m-%Y"
8
- short: "%b %d"
9
- long: "%B %d, %Y"
10
-
11
- day_names: [Dydd Sul, Dydd Llun, Dydd Mawrth, Dydd Mercher, Dydd Iau, Dydd Gwener, Dydd Sadwrn]
12
- abbr_day_names: [Sul, Llun, Maw, Mer, Iau, Gwe, Sad]
13
-
14
- month_names: [~, mis Ionawr, mis Chwefror, mis Mawrth, mis Ebrill, mis Mai, mis Mehefin, mis Gorffennaf, mis Awst, mis Medi, mis Hydref, mis Tachwedd, mis Rhagfyr]
15
- abbr_month_names: [~, Ion, Chw, Maw, Ebr, Mai, Meh, Gor, Awst, Med, Hyd, Tach, Rha]
16
- order:
17
- - :year
18
- - :month
19
- - :day
20
-
21
- time:
22
- formats:
23
- default: "%a, %d %b %Y %H:%M:%S %z"
24
- short: "%d %b %H:%M"
25
- long: "%B %d, %Y %H:%M"
26
- am: "yb"
27
- pm: "yh"
28
-
29
- support:
30
- array:
31
- words_connector: ", "
32
- two_words_connector: " a "
33
- last_word_connector: ", a "
34
-
35
- select:
36
- prompt: "Dewiswch"
37
-
38
- number:
39
- format:
40
- separator: "."
41
- delimiter: ","
42
- precision: 3
43
- significant: false
44
- strip_insignificant_zeros: false
45
-
46
- currency:
47
- format:
48
- format: "%u%n"
49
- unit: "£"
50
- separator: "."
51
- delimiter: ","
52
- precision: 2
53
- significant: false
54
- strip_insignificant_zeros: false
55
-
56
- percentage:
57
- format:
58
- delimiter: ""
59
-
60
- precision:
61
- format:
62
- delimiter: ""
63
-
64
- human:
65
- format:
66
- delimiter: ""
67
- precision: 3
68
- significant: true
69
- strip_insignificant_zeros: true
70
- storage_units:
71
- format: "%n %u"
72
- units:
73
- byte:
74
- one: "Byte"
75
- other: "Bytes"
76
- kb: "KB"
77
- mb: "MB"
78
- gb: "GB"
79
- tb: "TB"
80
- decimal_units:
81
- format: "%n %u"
82
- units:
83
- unit: ""
84
- thousand: Mil
85
- million: Miliwn
86
- billion: Biliwn
87
- trillion: Triliwn
88
- quadrillion: Cwadriliwn
89
-
90
- datetime:
91
- distance_in_words:
92
- half_a_minute: "hanner munud"
93
- less_than_x_seconds:
94
- one: "llai nag eiliad"
95
- other: "llai na %{count} eiliad"
96
- x_seconds:
97
- one: "1 eiliad"
98
- other: "%{count} o eiliadau"
99
- less_than_x_minutes:
100
- one: "llai na munud"
101
- other: "llai na %{count} munud"
102
- x_minutes:
103
- one: "1 munud"
104
- other: "%{count} o funudau"
105
- about_x_hours:
106
- one: "tuag awr"
107
- other: "tua %{count} awr"
108
- x_days:
109
- one: "1 diwrnod"
110
- other: "%{count} diwrnod"
111
- about_x_months:
112
- one: "tua mis"
113
- other: "tua %{count} mis"
114
- x_months:
115
- one: "1 mis"
116
- other: "%{count} mis"
117
- about_x_years:
118
- one: "tua blwyddyn"
119
- other: "tua %{count} blynedd"
120
- over_x_years:
121
- one: "dros flwyddyn"
122
- other: "dros %{count} blynedd"
123
- almost_x_years:
124
- one: "bron yn flwyddyn"
125
- other: "bron yn %{count} blynedd"
126
- prompts:
127
- year: "Blwyddyn"
128
- month: "Mis"
129
- day: "Diwrnod"
130
- hour: "Awr"
131
- minute: "Munud"
132
- second: "Eiliad"
133
-
134
- helpers:
135
- select:
136
- prompt: "Dewiswch"
137
-
138
- submit:
139
- create: 'Creu %{model}'
140
- update: 'Diweddaru %{model}'
141
- submit: 'Cadw %{model}'
142
-
143
- errors:
144
- format: "%{attribute} %{message}"
145
-
146
- messages: &errors_messages
147
- inclusion: "heb fod yn y rhestr"
148
- exclusion: "wedi cadw"
149
- invalid: "heb fod yn nheilwng"
150
- confirmation: "heb fod yn gyfateb"
151
- accepted: "angen ei dderbyn"
152
- empty: "methu bod yn wag"
153
- blank: "methu bod yn wag"
154
- too_long: "yn rhy hir (cewch %{count} llythyren ar y fwyaf)"
155
- too_short: "yn rhy fyr (rhaid am o leiaf %{count} llythyren)"
156
- wrong_length: "gyda maint anghywir o lythrennau (dylai fod yn %{count} llythyren)"
157
- not_a_number: "heb fod yn rhif"
158
- not_an_integer: "heb fod yn rhif llawn"
159
- greater_than: "angen bod yn fwy na %{count}"
160
- greater_than_or_equal_to: "angen bod yr un maint neu fwy na %{count}"
161
- equal_to: "angen bod yn %{count}"
162
- less_than: "angen bod yn llai na %{count}"
163
- less_than_or_equal_to: "angen bod yr un maint neu lai na %{count}"
164
- odd: "rhaid bod yn odrif"
165
- even: "rhaid bod yn eilrif"
166
-
167
- activerecord:
168
- errors:
169
- template:
170
- header:
171
- one: "Atalwyd y %{model} hwn rhag ei gadw gan 1 nam"
172
- other: "Atalwyd y %{model} hwn rhag ei gadw gan %{count} nam"
173
- body: "Cafwyd broblemau gyda'r meysydd canlynol:"
174
-
175
- messages:
176
- taken: "wedi'i gymryd yn barod"
177
- record_invalid: "Gwirio wedi methu: %{errors}"
178
- <<: *errors_messages
179
-
180
- full_messages:
181
- format: "%{attribute}%{message}"
@@ -1,195 +0,0 @@
1
- # Danish translation file for standard Ruby on Rails internationalization
2
- # by Lars Hoeg (larshoeg@gmail.com, http://www.lenio.dk/)
3
-
4
- da:
5
- # active_support
6
- date:
7
- # See http://sproget.dk/svarbase/SV00000046/ and http://en.wikipedia.org/wiki/Date_formats
8
- # either use traditional (2.10.03, 2. oktober 2003): "%e.%m.%y", "%e. %B %Y"
9
- # or international ISO 8601 format (2003-10-20): "%Y-%m-%d"
10
- # Note: some Windows distributions do not support %e - you may have to use %d instead
11
- formats:
12
- default: "%d.%m.%Y"
13
- short: "%e. %b %Y"
14
- long: "%e. %B %Y"
15
-
16
- day_names: [søndag, mandag, tirsdag, onsdag, torsdag, fredag, lørdag]
17
- abbr_day_names: [sø, ma, ti, 'on', to, fr, lø] # Note: unescaped 'on' is parsed as true
18
- month_names: [~, januar, februar, marts, april, maj, juni, juli, august, september, oktober, november, december]
19
- abbr_month_names: [~, jan, feb, mar, apr, maj, jun, jul, aug, sep, okt, nov, dec]
20
- order:
21
- - :day
22
- - :month
23
- - :year
24
-
25
- time:
26
- formats:
27
- default: "%e. %B %Y, %H:%M"
28
- short: "%e. %b %Y, %H:%M"
29
- long: "%A, %e. %B %Y, %H:%M"
30
- am: ""
31
- pm: ""
32
-
33
- support:
34
- array:
35
- # Rails 2.2
36
- #sentence_connector: "og"
37
- #skip_last_comma: true
38
- # Rails 2.3
39
- words_connector: ", "
40
- two_words_connector: " og "
41
- last_word_connector: " og "
42
- select:
43
- # default value for :prompt => true in FormOptionsHelper
44
- prompt: "Vælg..."
45
-
46
- # action_view
47
- number:
48
- format:
49
- separator: ","
50
- delimiter: "."
51
- precision: 3
52
- significant: false
53
- strip_insignificant_zeros: false
54
-
55
- currency:
56
- format:
57
- format: "%u %n"
58
- unit: "DKK"
59
- separator: ","
60
- delimiter: "."
61
- precision: 2
62
- significant: false
63
- strip_insignificant_zeros: false
64
-
65
- percentage:
66
- format:
67
- delimiter: ""
68
-
69
- precision:
70
- format:
71
- delimiter: ""
72
-
73
- human:
74
- format:
75
- delimiter: ""
76
- precision: 3
77
- significant: true
78
- strip_insignificant_zeros: true
79
- # Rails 2.2
80
- #storage_units: [Bytes, KB, MB, GB, TB]
81
- # Rails 2.3
82
- storage_units:
83
- # Storage units output formatting.
84
- # %u is the storage unit, %n is the number (default: 2 MB)
85
- format: "%n %u"
86
- units:
87
- byte:
88
- one: "Byte"
89
- other: "Bytes"
90
- kb: "KB"
91
- mb: "MB"
92
- gb: "GB"
93
- tb: "TB"
94
- decimal_units:
95
- format: "%n %u"
96
- units:
97
- unit: ""
98
- thousand: Tusind
99
- million: Million
100
- billion: Milliard
101
- trillion: Billion
102
- quadrillion: Billiard
103
-
104
- datetime:
105
- distance_in_words:
106
- half_a_minute: "et halvt minut"
107
- less_than_x_seconds:
108
- one: "mindre end et sekund"
109
- other: "mindre end %{count} sekunder"
110
- x_seconds:
111
- one: "et sekund"
112
- other: "%{count} sekunder"
113
- less_than_x_minutes:
114
- one: "mindre end et minut"
115
- other: "mindre end %{count} minutter"
116
- x_minutes:
117
- one: "et minut"
118
- other: "%{count} minutter"
119
- about_x_hours:
120
- one: "cirka en time"
121
- other: "cirka %{count} timer"
122
- x_days:
123
- one: "en dag"
124
- other: "%{count} dage"
125
- about_x_months:
126
- one: "cirka en måned"
127
- other: "cirka %{count} måneder"
128
- x_months:
129
- one: "en måned"
130
- other: "%{count} måneder"
131
- about_x_years:
132
- one: "cirka et år"
133
- other: "cirka %{count} år"
134
- over_x_years:
135
- one: "mere end et år"
136
- other: "mere end %{count} år"
137
- almost_x_years:
138
- one: "næsten et år"
139
- other: "næsten %{count} år"
140
- prompts:
141
- year: "År"
142
- month: "Måned"
143
- day: "Dag"
144
- hour: "Time"
145
- minute: "Minut"
146
- second: "Sekund"
147
-
148
- helpers:
149
- select:
150
- prompt: "Vælg..."
151
-
152
- submit:
153
- create: "Opret %{model}"
154
- update: "Opdater %{model}"
155
- submit: "Gem %{model}"
156
-
157
- errors:
158
- format: "%{attribute} %{message}"
159
-
160
- messages: &errors_messages
161
- inclusion: "er ikke i listen"
162
- exclusion: "er reserveret"
163
- invalid: "er ikke gyldig"
164
- confirmation: "stemmer ikke overens med bekræftelse"
165
- accepted: "skal accepteres"
166
- empty: "må ikke udelades"
167
- blank: "skal udfyldes"
168
- too_long: "er for lang (maksimum %{count} tegn)"
169
- too_short: "er for kort (minimum %{count} tegn)"
170
- wrong_length: "har forkert længde (skulle være %{count} tegn)"
171
- not_a_number: "er ikke et tal"
172
- not_an_integer: "er ikke et heltal"
173
- greater_than: "skal være større end %{count}"
174
- greater_than_or_equal_to: "skal være større end eller lig med %{count}"
175
- equal_to: "skal være lig med %{count}"
176
- less_than: "skal være mindre end %{count}"
177
- less_than_or_equal_to: "skal være mindre end eller lig med %{count}"
178
- odd: "skal være ulige"
179
- even: "skal være lige"
180
-
181
- activerecord:
182
- errors:
183
- template:
184
- header:
185
- one: "En fejl forhindrede %{model} i at blive gemt"
186
- other: "%{count} fejl forhindrede %{model} i at blive gemt"
187
- body: "Der var problemer med følgende felter:"
188
-
189
- messages:
190
- taken: "er allerede brugt"
191
- record_invalid: "Validering fejlede: %{errors}"
192
- <<: *errors_messages
193
-
194
- full_messages:
195
- format: "%{attribute}%{message}"