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,210 +0,0 @@
1
- # UK English translation for Rails
2
- # by Jon Wood (jon@blankpad.net)
3
- "en-GB":
4
- number:
5
- # Used in number_with_delimiter()
6
- # These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
7
- format:
8
- # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
9
- separator: "."
10
- # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
11
- delimiter: ","
12
- # Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00)
13
- precision: 3
14
-
15
- # Used in number_to_currency()
16
- currency:
17
- format:
18
- # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
19
- format: "%u%n"
20
- unit: "£"
21
- # These three are to override number.format and are optional
22
- separator: "."
23
- delimiter: ","
24
- precision: 2
25
-
26
- # Used in number_to_percentage()
27
- percentage:
28
- format:
29
- # These three are to override number.format and are optional
30
- # separator:
31
- delimiter: ""
32
- # precision:
33
-
34
- # Used in number_to_precision()
35
- precision:
36
- format:
37
- # These three are to override number.format and are optional
38
- # separator:
39
- delimiter: ""
40
- # precision:
41
-
42
- # Used in number_to_human_size()
43
- human:
44
- format:
45
- # These three are to override number.format and are optional
46
- # separator:
47
- delimiter: ""
48
- precision: 1
49
- storage_units:
50
- # Storage units output formatting.
51
- # %u is the storage unit, %n is the number (default: 2 MB)
52
- format: "%n %u"
53
- units:
54
- byte:
55
- one: "Byte"
56
- other: "Bytes"
57
- kb: "KB"
58
- mb: "MB"
59
- gb: "GB"
60
- tb: "TB"
61
-
62
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
63
- datetime:
64
- distance_in_words:
65
- half_a_minute: "half a minute"
66
- less_than_x_seconds:
67
- one: "less than 1 second"
68
- other: "less than %{count} seconds"
69
- x_seconds:
70
- one: "1 second"
71
- other: "%{count} seconds"
72
- less_than_x_minutes:
73
- one: "less than a minute"
74
- other: "less than %{count} minutes"
75
- x_minutes:
76
- one: "1 minute"
77
- other: "%{count} minutes"
78
- about_x_hours:
79
- one: "about 1 hour"
80
- other: "about %{count} hours"
81
- x_days:
82
- one: "1 day"
83
- other: "%{count} days"
84
- about_x_months:
85
- one: "about 1 month"
86
- other: "about %{count} months"
87
- x_months:
88
- one: "1 month"
89
- other: "%{count} months"
90
- about_x_years:
91
- one: "about 1 year"
92
- other: "about %{count} years"
93
- over_x_years:
94
- one: "over 1 year"
95
- other: "over %{count} years"
96
- almost_x_years:
97
- one: "almost 1 year"
98
- other: "almost %{count} years"
99
- prompts:
100
- year: "Year"
101
- month: "Month"
102
- day: "Day"
103
- hour: "Hour"
104
- minute: "Minute"
105
- second: "Seconds"
106
-
107
- activemodel:
108
- errors:
109
- template:
110
- header:
111
- one: "1 error prohibited this %{model} from being saved"
112
- other: "%{count} errors prohibited this %{model} from being saved"
113
- # The variable :count is also available
114
- body: "There were problems with the following fields:"
115
-
116
- support:
117
- select:
118
- # default value for :prompt => true in FormOptionsHelper
119
- prompt: "Please select"
120
-
121
- activerecord:
122
- errors:
123
- # The values :model, :attribute and :value are always available for interpolation
124
- # The value :count is available when applicable. Can be used for pluralization.
125
- messages:
126
- inclusion: "is not included in the list"
127
- exclusion: "is reserved"
128
- invalid: "is invalid"
129
- confirmation: "doesn't match confirmation"
130
- accepted: "must be accepted"
131
- empty: "can't be empty"
132
- blank: "can't be blank"
133
- too_long: "is too long (maximum is %{count} characters)"
134
- too_short: "is too short (minimum is %{count} characters)"
135
- wrong_length: "is the wrong length (should be %{count} characters)"
136
- taken: "has already been taken"
137
- not_a_number: "is not a number"
138
- not_an_integer: "must be an integer"
139
- greater_than: "must be greater than %{count}"
140
- greater_than_or_equal_to: "must be greater than or equal to %{count}"
141
- equal_to: "must be equal to %{count}"
142
- less_than: "must be less than %{count}"
143
- less_than_or_equal_to: "must be less than or equal to %{count}"
144
- odd: "must be odd"
145
- even: "must be even"
146
- record_invalid: "Validation failed: %{errors}"
147
- # Append your own errors here or at the model/attributes scope.
148
-
149
- # You can define own errors for models or model attributes.
150
- # The values :model, :attribute and :value are always available for interpolation.
151
- #
152
- # For example,
153
- # models:
154
- # user:
155
- # blank: "This is a custom blank message for %{model}: %{attribute}"
156
- # attributes:
157
- # login:
158
- # blank: "This is a custom blank message for User login"
159
- # Will define custom blank validation message for User model and
160
- # custom blank validation message for login attribute of User model.
161
- #models:
162
-
163
- # Translate model names. Used in Model.human_name().
164
- #models:
165
- # For example,
166
- # user: "Dude"
167
- # will translate User model name to "Dude"
168
-
169
- # Translate model attribute names. Used in Model.human_attribute_name(attribute).
170
- #attributes:
171
- # For example,
172
- # user:
173
- # login: "Handle"
174
- # will translate User attribute "login" as "Handle"
175
-
176
- date:
177
- formats:
178
- # Use the strftime parameters for formats.
179
- # When no format has been given, it uses default.
180
- # You can provide other formats here if you like!
181
- default: "%d-%m-%Y"
182
- short: "%b %d"
183
- long: "%B %d, %Y"
184
-
185
- day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
186
- abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
187
-
188
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
189
- month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
190
- abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
191
- # Used in date_select and datime_select.
192
- order:
193
- - :year
194
- - :month
195
- - :day
196
-
197
- time:
198
- formats:
199
- default: "%a, %d %b %Y %H:%M:%S %z"
200
- short: "%d %b %H:%M"
201
- long: "%B %d, %Y %H:%M"
202
- am: "am"
203
- pm: "pm"
204
-
205
- # Used in array.to_sentence.
206
- support:
207
- array:
208
- words_connector: ", "
209
- two_words_connector: " and "
210
- last_word_connector: ", and "
@@ -1,182 +0,0 @@
1
- # US English translations for Ruby on Rails
2
- #
3
- # Use this as the base for the locale file of your language.
4
-
5
- "en-US":
6
- date:
7
- formats:
8
- default: "%Y-%m-%d"
9
- short: "%b %d"
10
- long: "%B %d, %Y"
11
-
12
- day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
13
- abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
14
-
15
- month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
16
- abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
17
- order:
18
- - :year
19
- - :month
20
- - :day
21
-
22
- time:
23
- formats:
24
- default: "%a, %d %b %Y %H:%M:%S %z"
25
- short: "%d %b %H:%M"
26
- long: "%B %d, %Y %H:%M"
27
- am: "am"
28
- pm: "pm"
29
-
30
- support:
31
- array:
32
- words_connector: ", "
33
- two_words_connector: " and "
34
- last_word_connector: ", and "
35
-
36
- select:
37
- prompt: "Please select"
38
-
39
- number:
40
- format:
41
- separator: "."
42
- delimiter: ","
43
- precision: 3
44
- significant: false
45
- strip_insignificant_zeros: false
46
-
47
- currency:
48
- format:
49
- format: "%u%n"
50
- unit: "$"
51
- separator: "."
52
- delimiter: ","
53
- precision: 2
54
- significant: false
55
- strip_insignificant_zeros: false
56
-
57
- percentage:
58
- format:
59
- delimiter: ""
60
-
61
- precision:
62
- format:
63
- delimiter: ""
64
-
65
- human:
66
- format:
67
- delimiter: ""
68
- precision: 3
69
- significant: true
70
- strip_insignificant_zeros: true
71
- storage_units:
72
- format: "%n %u"
73
- units:
74
- byte:
75
- one: "Byte"
76
- other: "Bytes"
77
- kb: "KB"
78
- mb: "MB"
79
- gb: "GB"
80
- tb: "TB"
81
- decimal_units:
82
- format: "%n %u"
83
- units:
84
- unit: ""
85
- thousand: Thousand
86
- million: Million
87
- billion: Billion
88
- trillion: Trillion
89
- quadrillion: Quadrillion
90
-
91
- datetime:
92
- distance_in_words:
93
- half_a_minute: "half a minute"
94
- less_than_x_seconds:
95
- one: "less than 1 second"
96
- other: "less than %{count} seconds"
97
- x_seconds:
98
- one: "1 second"
99
- other: "%{count} seconds"
100
- less_than_x_minutes:
101
- one: "less than a minute"
102
- other: "less than %{count} minutes"
103
- x_minutes:
104
- one: "1 minute"
105
- other: "%{count} minutes"
106
- about_x_hours:
107
- one: "about 1 hour"
108
- other: "about %{count} hours"
109
- x_days:
110
- one: "1 day"
111
- other: "%{count} days"
112
- about_x_months:
113
- one: "about 1 month"
114
- other: "about %{count} months"
115
- x_months:
116
- one: "1 month"
117
- other: "%{count} months"
118
- about_x_years:
119
- one: "about 1 year"
120
- other: "about %{count} years"
121
- over_x_years:
122
- one: "over 1 year"
123
- other: "over %{count} years"
124
- almost_x_years:
125
- one: "almost 1 year"
126
- other: "almost %{count} years"
127
- prompts:
128
- year: "Year"
129
- month: "Month"
130
- day: "Day"
131
- hour: "Hour"
132
- minute: "Minute"
133
- second: "Seconds"
134
-
135
- helpers:
136
- select:
137
- prompt: "Please select"
138
-
139
- submit:
140
- create: 'Create %{model}'
141
- update: 'Update %{model}'
142
- submit: 'Save %{model}'
143
-
144
- errors:
145
- format: "%{attribute} %{message}"
146
-
147
- messages: &errors_messages
148
- inclusion: "is not included in the list"
149
- exclusion: "is reserved"
150
- invalid: "is invalid"
151
- confirmation: "doesn't match confirmation"
152
- accepted: "must be accepted"
153
- empty: "can't be empty"
154
- blank: "can't be blank"
155
- too_long: "is too long (maximum is %{count} characters)"
156
- too_short: "is too short (minimum is %{count} characters)"
157
- wrong_length: "is the wrong length (should be %{count} characters)"
158
- not_a_number: "is not a number"
159
- not_an_integer: "must be an integer"
160
- greater_than: "must be greater than %{count}"
161
- greater_than_or_equal_to: "must be greater than or equal to %{count}"
162
- equal_to: "must be equal to %{count}"
163
- less_than: "must be less than %{count}"
164
- less_than_or_equal_to: "must be less than or equal to %{count}"
165
- odd: "must be odd"
166
- even: "must be even"
167
-
168
- activerecord:
169
- errors:
170
- template:
171
- header:
172
- one: "1 error prohibited this %{model} from being saved"
173
- other: "%{count} errors prohibited this %{model} from being saved"
174
- body: "There were problems with the following fields:"
175
-
176
- messages:
177
- taken: "has already been taken"
178
- record_invalid: "Validation failed: %{errors}"
179
- <<: *errors_messages
180
-
181
- full_messages:
182
- format: "%{attribute}%{message}"
@@ -1,182 +0,0 @@
1
- # Esperanto translations for Ruby on Rails.
2
- # Contributors:
3
- # - Emmanuel Debanne (https://github.com/debanne)
4
-
5
- eo:
6
- date:
7
- formats:
8
- default: "%Y/%m/%d"
9
- short: "%e %b"
10
- long: "%e %B %Y"
11
-
12
- day_names: [dimanĉo, lundo, mardo, merkredo, ĵaŭdo, vendredo, sabato]
13
- abbr_day_names: [dim, lun, mar, mer, ĵaŭ, ven, sam]
14
- month_names: [~, januaro, februaro, marto, aprilo, majo, junio, julio, aŭgusto, septembro, oktobro, novembro, decembro]
15
- abbr_month_names: [~, jan., feb., mar., apr., majo, jun., jul., aŭg., sep., okt., nov., dec.]
16
- order:
17
- - :day
18
- - :month
19
- - :year
20
-
21
- time:
22
- formats:
23
- default: "%d %B %Y %H:%M:%S"
24
- short: "%d %b %H:%M"
25
- long: "%A %d %B %Y %H:%M"
26
- am: 'am'
27
- pm: 'pm'
28
-
29
- datetime:
30
- distance_in_words:
31
- half_a_minute: "duona minuto"
32
- less_than_x_seconds:
33
- zero: "malpli ol unu sekundo"
34
- one: "malpli ol unu sekundo"
35
- other: "malpli ol %{count} sekundoj"
36
- x_seconds:
37
- one: "1 sekundo"
38
- other: "%{count} sekundoj"
39
- less_than_x_minutes:
40
- zero: "malpli ol unu minuto"
41
- one: "malpli ol unu minuto"
42
- other: "malpli ol %{count} minutoj"
43
- x_minutes:
44
- one: "1 minuto"
45
- other: "%{count} minutoj"
46
- about_x_hours:
47
- one: "ĉirkaŭ unu horo"
48
- other: "ĉirkaŭ %{count} horoj"
49
- x_days:
50
- one: "1 tago"
51
- other: "%{count} tagoj"
52
- about_x_months:
53
- one: "ĉirkaŭ unu monato"
54
- other: "ĉirkaŭ %{count} monatoj"
55
- x_months:
56
- one: "1 monato"
57
- other: "%{count} monatoj"
58
- about_x_years:
59
- one: "ĉirkaŭ uno jaro"
60
- other: "ĉirkaŭ %{count} jaroj"
61
- over_x_years:
62
- one: "pli ol unu jaro"
63
- other: "pli ol %{count} jaroj"
64
- almost_x_years:
65
- one: "preskaŭ unu jaro"
66
- other: "preskaŭ %{count} jaroj"
67
- prompts:
68
- year: "Jaro"
69
- month: "Monato"
70
- day: "Tago"
71
- hour: "Horo"
72
- minute: "Minuto"
73
- second: "Sekundo"
74
-
75
- number:
76
- format:
77
- separator: ","
78
- delimiter: " "
79
- precision: 3
80
- significant: false
81
- strip_insignificant_zeros: false
82
- currency:
83
- format:
84
- format: "%n %u"
85
- unit: "€"
86
- separator: ","
87
- delimiter: " "
88
- precision: 2
89
- significant: false
90
- strip_insignificant_zeros: false
91
- percentage:
92
- format:
93
- delimiter: ""
94
- precision:
95
- format:
96
- delimiter: ""
97
- human:
98
- format:
99
- delimiter: ""
100
- precision: 2
101
- significant: true
102
- strip_insignificant_zeros: true
103
- storage_units:
104
- format: "%n %u"
105
- units:
106
- byte:
107
- one: "bitoko"
108
- other: "bitokoj"
109
- kb: "kb"
110
- mb: "Mb"
111
- gb: "Gb"
112
- tb: "Tb"
113
- decimal_units:
114
- format: "%n %u"
115
- units:
116
- unit: ""
117
- thousand: "mil"
118
- million: "miliono"
119
- billion: "miliardo"
120
- trillion: "mil miliardoj"
121
- quadrillion: "miliono da miliardoj"
122
-
123
- support:
124
- array:
125
- words_connector: ", "
126
- two_words_connector: " kaj "
127
- last_word_connector: " kaj "
128
- select:
129
- prompt: "Bonvolu elekti"
130
-
131
- helpers:
132
- select:
133
- prompt: "Bonvolu elekti"
134
- submit:
135
- create: "Krei %{model}"
136
- update: "Modifi tiun %{model}"
137
- submit: "Registri tiun %{model}"
138
-
139
- errors:
140
- template: &errors_template
141
- header:
142
- one: "Ne eblas registri tiun %{model}: 1 eraro"
143
- other: "Ne eblas registri tiun %{model}: %{count} eraroj"
144
- body: "Kontrolu la jenajn kampojn: "
145
-
146
- attributes:
147
- created_at: "Kreita la"
148
- updated_at: "Modifita la"
149
-
150
- errors:
151
- format: "%{attribute} %{message}"
152
- messages: &errors_messages
153
- inclusion: "ne estas inkluzivita de la listo"
154
- exclusion: "ne estas disponebla"
155
- invalid: "estas nevalida"
156
- confirmation: "ne kongruas kun la konfirmo"
157
- accepted: "devas esti akceptita"
158
- empty: "devas esti kompletigita"
159
- blank: "devas esti kompletigita"
160
- too_long: "estas tro longa (maksimume %{count} karekteroj)"
161
- too_short: "estas tro mallonga (minimume %{count} karakteroj)"
162
- wrong_length: "ne estas je ĝusta longo (devas enhavi %{count} karakterojn)"
163
- not_a_number: "ne estas nombro"
164
- not_an_integer: "devas esti entjero"
165
- greater_than: "devas superi %{count}"
166
- greater_than_or_equal_to: "devas superi aŭ egali %{count}"
167
- equal_to: "devas egali %{count}"
168
- less_than: "devas malsuperi %{count}"
169
- less_than_or_equal_to: "devas malsuperi aŭ egali %{count}"
170
- odd: "devas esti nepara"
171
- even: "devas esti para"
172
-
173
- activerecord:
174
- errors:
175
- messages:
176
- taken: "ne estas disponebla"
177
- record_invalid: "Validado malsukcesis: %{errors}"
178
- <<: *errors_messages
179
- template:
180
- <<: *errors_template
181
- full_messages:
182
- format: "%{attribute} %{message}"