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
@@ -1,154 +0,0 @@
1
- # German translations for Ruby on Rails
2
- # by Clemens Kofler (clemens@railway.at)
3
-
4
- de-AT:
5
- date:
6
- formats:
7
- default: "%d.%m.%Y"
8
- short: "%e. %b"
9
- long: "%e. %B %Y"
10
- only_day: "%e"
11
-
12
- day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
13
- abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
14
- month_names: [~, Jänner, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
15
- abbr_month_names: [~, Jän, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
16
- order:
17
- - :day
18
- - :month
19
- - :year
20
-
21
- time:
22
- formats:
23
- default: "%A, %d. %B %Y, %H:%M Uhr"
24
- short: "%d. %B, %H:%M Uhr"
25
- long: "%A, %d. %B %Y, %H:%M Uhr"
26
- time: "%H:%M"
27
-
28
- am: "vormittags"
29
- pm: "nachmittags"
30
-
31
- datetime:
32
- distance_in_words:
33
- half_a_minute: 'eine halbe Minute'
34
- less_than_x_seconds:
35
- one: 'weniger als eine Sekunde'
36
- other: 'weniger als %{count} Sekunden'
37
- x_seconds:
38
- one: 'eine Sekunde'
39
- other: '%{count} Sekunden'
40
- less_than_x_minutes:
41
- one: 'weniger als eine Minute'
42
- other: 'weniger als %{count} Minuten'
43
- x_minutes:
44
- one: 'eine Minute'
45
- other: '%{count} Minuten'
46
- about_x_hours:
47
- one: 'etwa eine Stunde'
48
- other: 'etwa %{count} Stunden'
49
- x_days:
50
- one: 'ein Tag'
51
- other: '%{count} Tage'
52
- about_x_months:
53
- one: 'etwa ein Monat'
54
- other: 'etwa %{count} Monate'
55
- x_months:
56
- one: 'ein Monat'
57
- other: '%{count} Monate'
58
- almost_x_years:
59
- one: 'fast ein Jahr'
60
- other: 'fast %{count} Jahre'
61
- about_x_years:
62
- one: 'etwa ein Jahr'
63
- other: 'etwa %{count} Jahre'
64
- over_x_years:
65
- one: 'mehr als ein Jahr'
66
- other: 'mehr als %{count} Jahre'
67
- prompts:
68
- second: "Sekunden"
69
- minute: "Minuten"
70
- hour: "Stunden"
71
- day: "Tag"
72
- month: "Monat"
73
- year: "Jahr"
74
-
75
- number:
76
- format:
77
- precision: 2
78
- separator: ','
79
- delimiter: '.'
80
- currency:
81
- format:
82
- unit: '€'
83
- format: '%n%u'
84
- separator:
85
- delimiter:
86
- precision:
87
- percentage:
88
- format:
89
- delimiter: ""
90
- precision:
91
- format:
92
- delimiter: ""
93
- human:
94
- format:
95
- delimiter: ""
96
- precision: 1
97
- storage_units:
98
- # Storage units output formatting.
99
- # %u is the storage unit, %n is the number (default: 2 MB)
100
- format: "%n %u"
101
- units:
102
- byte:
103
- one: "Byte"
104
- other: "Bytes"
105
- kb: "KB"
106
- mb: "MB"
107
- gb: "GB"
108
- tb: "TB"
109
-
110
- support:
111
- array:
112
- words_connector: ", "
113
- two_words_connector: " und "
114
- last_word_connector: " und "
115
- select:
116
- prompt: "Bitte wählen:"
117
-
118
- activemodel:
119
- errors:
120
- template:
121
- header:
122
- one: "Konnte %{model} nicht speichern: ein Fehler."
123
- other: "Konnte %{model} nicht speichern: %{count} Fehler."
124
- body: "Bitte überprüfen Sie die folgenden Felder:"
125
-
126
- activerecord:
127
- errors:
128
- template:
129
- header:
130
- one: "Konnte %{model} nicht speichern: ein Fehler."
131
- other: "Konnte %{model} nicht speichern: %{count} Fehler."
132
- body: "Bitte überprüfen Sie die folgenden Felder:"
133
-
134
- messages:
135
- inclusion: "ist kein gültiger Wert"
136
- exclusion: "ist nicht verfügbar"
137
- invalid: "ist nicht gültig"
138
- confirmation: "stimmt nicht mit der Bestätigung überein"
139
- accepted: "muss akzeptiert werden"
140
- empty: "muss ausgefüllt werden"
141
- blank: "muss ausgefüllt werden"
142
- too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
143
- too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
144
- wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
145
- taken: "ist bereits vergeben"
146
- not_a_number: "ist keine Zahl"
147
- greater_than: "muss größer als %{count} sein"
148
- greater_than_or_equal_to: "muss größer oder gleich %{count} sein"
149
- equal_to: "muss genau %{count} sein"
150
- less_than: "muss kleiner als %{count} sein"
151
- less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
152
- odd: "muss ungerade sein"
153
- even: "muss gerade sein"
154
- record_invalid: "Gültigkeitsprüfung ist fehlgeschlagen: %{errors}"
@@ -1,154 +0,0 @@
1
- # German (Switzerland) translations for Ruby on Rails
2
- # by Clemens Kofler (clemens@railway.at)
3
-
4
- de-CH:
5
- date:
6
- formats:
7
- default: "%d.%m.%Y"
8
- short: "%e. %b"
9
- long: "%e. %B %Y"
10
- only_day: "%e"
11
-
12
- day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
13
- abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
14
- month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
15
- abbr_month_names: [~, Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
16
- order:
17
- - :day
18
- - :month
19
- - :year
20
-
21
- time:
22
- formats:
23
- default: "%A, %d. %B %Y, %H:%M Uhr"
24
- short: "%d. %B, %H:%M Uhr"
25
- long: "%A, %d. %B %Y, %H:%M Uhr"
26
- time: "%H:%M"
27
-
28
- am: "vormittags"
29
- pm: "nachmittags"
30
-
31
- datetime:
32
- distance_in_words:
33
- half_a_minute: 'eine halbe Minute'
34
- less_than_x_seconds:
35
- one: 'weniger als eine Sekunde'
36
- other: 'weniger als %{count} Sekunden'
37
- x_seconds:
38
- one: 'eine Sekunde'
39
- other: '%{count} Sekunden'
40
- less_than_x_minutes:
41
- one: 'weniger als eine Minute'
42
- other: 'weniger als %{count} Minuten'
43
- x_minutes:
44
- one: 'eine Minute'
45
- other: '%{count} Minuten'
46
- about_x_hours:
47
- one: 'etwa eine Stunde'
48
- other: 'etwa %{count} Stunden'
49
- x_days:
50
- one: 'ein Tag'
51
- other: '%{count} Tage'
52
- about_x_months:
53
- one: 'etwa ein Monat'
54
- other: 'etwa %{count} Monate'
55
- x_months:
56
- one: 'ein Monat'
57
- other: '%{count} Monate'
58
- almost_x_years:
59
- one: 'fast ein Jahr'
60
- other: 'fast %{count} Jahre'
61
- about_x_years:
62
- one: 'etwa ein Jahr'
63
- other: 'etwa %{count} Jahre'
64
- over_x_years:
65
- one: 'mehr als ein Jahr'
66
- other: 'mehr als %{count} Jahre'
67
- prompts:
68
- second: "Sekunden"
69
- minute: "Minuten"
70
- hour: "Stunden"
71
- day: "Tag"
72
- month: "Monat"
73
- year: "Jahr"
74
-
75
- number:
76
- format:
77
- precision: 2
78
- separator: '.'
79
- delimiter: "'"
80
- currency:
81
- format:
82
- unit: 'CHF'
83
- format: '%u %n'
84
- separator:
85
- delimiter:
86
- precision:
87
- percentage:
88
- format:
89
- delimiter: ""
90
- precision:
91
- format:
92
- delimiter: ""
93
- human:
94
- format:
95
- delimiter: ""
96
- precision: 1
97
- storage_units:
98
- # Storage units output formatting.
99
- # %u is the storage unit, %n is the number (default: 2 MB)
100
- format: "%n %u"
101
- units:
102
- byte:
103
- one: "Byte"
104
- other: "Bytes"
105
- kb: "KB"
106
- mb: "MB"
107
- gb: "GB"
108
- tb: "TB"
109
-
110
- support:
111
- array:
112
- words_connector: ", "
113
- two_words_connector: " und "
114
- last_word_connector: " und "
115
- select:
116
- prompt: "Bitte wählen:"
117
-
118
- activemodel:
119
- errors:
120
- template:
121
- header:
122
- one: "Konnte %{model} nicht speichern: ein Fehler."
123
- other: "Konnte %{model} nicht speichern: %{count} Fehler."
124
- body: "Bitte überprüfen Sie die folgenden Felder:"
125
-
126
- activerecord:
127
- errors:
128
- template:
129
- header:
130
- one: "Konnte %{model} nicht speichern: ein Fehler."
131
- other: "Konnte %{model} nicht speichern: %{count} Fehler."
132
- body: "Bitte überprüfen Sie die folgenden Felder:"
133
-
134
- messages:
135
- inclusion: "ist kein gültiger Wert"
136
- exclusion: "ist nicht verfügbar"
137
- invalid: "ist nicht gültig"
138
- confirmation: "stimmt nicht mit der Bestätigung überein"
139
- accepted: "muss akzeptiert werden"
140
- empty: "muss ausgefüllt werden"
141
- blank: "muss ausgefüllt werden"
142
- too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
143
- too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
144
- wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
145
- taken: "ist bereits vergeben"
146
- not_a_number: "ist keine Zahl"
147
- greater_than: "muss grösser als %{count} sein"
148
- greater_than_or_equal_to: "muss grösser oder gleich %{count} sein"
149
- equal_to: "muss genau %{count} sein"
150
- less_than: "muss kleiner als %{count} sein"
151
- less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
152
- odd: "muss ungerade sein"
153
- even: "muss gerade sein"
154
- record_invalid: "Gültigkeitsprüfung ist fehlgeschlagen: %{errors}"
@@ -1,193 +0,0 @@
1
- # German translations for Ruby on Rails
2
- # by Clemens Kofler (clemens@railway.at)
3
- # contributors:
4
- # - Alexander Dreher - http://github.com/alexdreher - Rails 3 update
5
-
6
- de:
7
- date:
8
- formats:
9
- default: "%d.%m.%Y"
10
- short: "%e. %b"
11
- long: "%e. %B %Y"
12
- only_day: "%e"
13
-
14
- day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
15
- abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
16
- month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
17
- abbr_month_names: [~, Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
18
- order:
19
- - :day
20
- - :month
21
- - :year
22
-
23
- time:
24
- formats:
25
- default: "%A, %d. %B %Y, %H:%M Uhr"
26
- short: "%d. %B, %H:%M Uhr"
27
- long: "%A, %d. %B %Y, %H:%M Uhr"
28
- time: "%H:%M"
29
-
30
- am: "vormittags"
31
- pm: "nachmittags"
32
-
33
- datetime:
34
- distance_in_words:
35
- half_a_minute: 'eine halbe Minute'
36
- less_than_x_seconds:
37
- one: 'weniger als eine Sekunde'
38
- other: 'weniger als %{count} Sekunden'
39
- x_seconds:
40
- one: 'eine Sekunde'
41
- other: '%{count} Sekunden'
42
- less_than_x_minutes:
43
- one: 'weniger als eine Minute'
44
- other: 'weniger als %{count} Minuten'
45
- x_minutes:
46
- one: 'eine Minute'
47
- other: '%{count} Minuten'
48
- about_x_hours:
49
- one: 'etwa eine Stunde'
50
- other: 'etwa %{count} Stunden'
51
- x_days:
52
- one: 'ein Tag'
53
- other: '%{count} Tage'
54
- about_x_months:
55
- one: 'etwa ein Monat'
56
- other: 'etwa %{count} Monate'
57
- x_months:
58
- one: 'ein Monat'
59
- other: '%{count} Monate'
60
- almost_x_years:
61
- one: 'fast ein Jahr'
62
- other: 'fast %{count} Jahre'
63
- about_x_years:
64
- one: 'etwa ein Jahr'
65
- other: 'etwa %{count} Jahre'
66
- over_x_years:
67
- one: 'mehr als ein Jahr'
68
- other: 'mehr als %{count} Jahre'
69
- prompts:
70
- second: "Sekunden"
71
- minute: "Minuten"
72
- hour: "Stunden"
73
- day: "Tag"
74
- month: "Monat"
75
- year: "Jahr"
76
-
77
- number:
78
- format:
79
- precision: 2
80
- separator: ','
81
- delimiter: '.'
82
- significant: false
83
- strip_insignificant_zeros: false
84
- currency:
85
- format:
86
- unit: '€'
87
- format: '%n%u'
88
- separator: ","
89
- delimiter: ""
90
- precision: 2
91
- significant: false
92
- strip_insignificant_zeros: false
93
- percentage:
94
- format:
95
- delimiter: ""
96
- precision:
97
- format:
98
- delimiter: ""
99
- human:
100
- format:
101
- delimiter: ""
102
- precision: 1
103
- significant: true
104
- strip_insignificant_zeros: true
105
- storage_units:
106
- # Storage units output formatting.
107
- # %u is the storage unit, %n is the number (default: 2 MB)
108
- format: "%n %u"
109
- units:
110
- byte:
111
- one: "Byte"
112
- other: "Bytes"
113
- kb: "KB"
114
- mb: "MB"
115
- gb: "GB"
116
- tb: "TB"
117
- decimal_units:
118
- format: "%n %u"
119
- units:
120
- unit: ""
121
- thousand: Tausend
122
- million: Millionen
123
- billion:
124
- one: Milliarde
125
- others: Milliarden
126
- trillion: Billionen
127
- quadrillion:
128
- one: Billiarde
129
- others: Billiarden
130
-
131
- support:
132
- array:
133
- words_connector: ", "
134
- two_words_connector: " und "
135
- last_word_connector: " und "
136
- select:
137
- prompt: "Bitte wählen:"
138
-
139
- activemodel:
140
- errors:
141
- template:
142
- header:
143
- one: "Konnte %{model} nicht speichern: ein Fehler."
144
- other: "Konnte %{model} nicht speichern: %{count} Fehler."
145
- body: "Bitte überprüfen Sie die folgenden Felder:"
146
- helpers:
147
- select:
148
- prompt: "Bitte wählen"
149
-
150
- submit:
151
- create: '%{model} erstellen'
152
- update: '%{model} aktualisieren'
153
- submit: '%{model} speichern'
154
-
155
- errors:
156
- format: "%{attribute} %{message}"
157
-
158
- messages: &errors_messages
159
- inclusion: "ist kein gültiger Wert"
160
- exclusion: "ist nicht verfügbar"
161
- invalid: "ist nicht gültig"
162
- confirmation: "stimmt nicht mit der Bestätigung überein"
163
- accepted: "muss akzeptiert werden"
164
- empty: "muss ausgefüllt werden"
165
- blank: "muss ausgefüllt werden"
166
- too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
167
- too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
168
- wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
169
- not_a_number: "ist keine Zahl"
170
- greater_than: "muss größer als %{count} sein"
171
- greater_than_or_equal_to: "muss größer oder gleich %{count} sein"
172
- equal_to: "muss genau %{count} sein"
173
- less_than: "muss kleiner als %{count} sein"
174
- less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
175
- odd: "muss ungerade sein"
176
- even: "muss gerade sein"
177
- not_an_integer: "muss ganzzahlig sein"
178
-
179
- activerecord:
180
- errors:
181
- template:
182
- header:
183
- one: "Konnte %{model} nicht speichern: ein Fehler."
184
- other: "Konnte %{model} nicht speichern: %{count} Fehler."
185
- body: "Bitte überprüfen Sie die folgenden Felder:"
186
-
187
- messages:
188
- taken: "ist bereits vergeben"
189
- record_invalid: "Gültigkeitsprüfung ist fehlgeschlagen: %{errors}"
190
- <<: *errors_messages
191
-
192
- full_messages:
193
- format: "%{attribute}%{message}"