decidim-consultations 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/consultations/icon.svg +1 -3
  3. data/app/assets/images/decidim/consultations/icon2.svg +1 -88
  4. data/app/assets/stylesheets/decidim/consultations/_question.scss +0 -6
  5. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +0 -1
  6. data/app/cells/decidim/consultations/consultation_m/data.erb +1 -1
  7. data/app/cells/decidim/consultations/consultation_m/footer.erb +1 -1
  8. data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +3 -3
  9. data/app/permissions/decidim/consultations/permissions.rb +2 -0
  10. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +3 -3
  11. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
  12. data/app/views/decidim/consultations/consultations/_filters.html.erb +9 -4
  13. data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
  14. data/app/views/decidim/consultations/consultations/index.html.erb +3 -3
  15. data/app/views/decidim/consultations/questions/_vote_button.html.erb +70 -67
  16. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
  17. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
  18. data/app/views/decidim/consultations/questions/show.html.erb +4 -4
  19. data/app/views/layouts/decidim/_question_components.html.erb +3 -3
  20. data/app/views/layouts/decidim/_question_header.html.erb +1 -1
  21. data/config/locales/ar.yml +0 -1
  22. data/config/locales/bg-BG.yml +1 -0
  23. data/config/locales/ca.yml +4 -1
  24. data/config/locales/cs.yml +10 -7
  25. data/config/locales/da-DK.yml +1 -0
  26. data/config/locales/de.yml +82 -1
  27. data/config/locales/el.yml +376 -0
  28. data/config/locales/en.yml +4 -1
  29. data/config/locales/es-MX.yml +4 -1
  30. data/config/locales/es-PY.yml +4 -1
  31. data/config/locales/es.yml +4 -1
  32. data/config/locales/et-EE.yml +1 -0
  33. data/config/locales/eu.yml +0 -1
  34. data/config/locales/fi-plain.yml +4 -1
  35. data/config/locales/fi.yml +15 -12
  36. data/config/locales/fr-CA.yml +377 -0
  37. data/config/locales/fr.yml +5 -2
  38. data/config/locales/ga-IE.yml +1 -0
  39. data/config/locales/gl.yml +0 -1
  40. data/config/locales/hr-HR.yml +1 -0
  41. data/config/locales/hu.yml +0 -1
  42. data/config/locales/id-ID.yml +0 -1
  43. data/config/locales/is-IS.yml +0 -1
  44. data/config/locales/it.yml +58 -55
  45. data/config/locales/ja-JP.yml +367 -0
  46. data/config/locales/lt-LT.yml +1 -0
  47. data/config/locales/lv-LV.yml +383 -0
  48. data/config/locales/mt-MT.yml +1 -0
  49. data/config/locales/nl.yml +4 -1
  50. data/config/locales/no.yml +2 -3
  51. data/config/locales/pl.yml +177 -96
  52. data/config/locales/pt-BR.yml +1 -2
  53. data/config/locales/pt.yml +156 -75
  54. data/config/locales/ro-RO.yml +338 -0
  55. data/config/locales/ru.yml +0 -1
  56. data/config/locales/sk-SK.yml +394 -0
  57. data/config/locales/sk.yml +393 -0
  58. data/config/locales/sl.yml +5 -0
  59. data/config/locales/sr-CS.yml +1 -0
  60. data/config/locales/sv.yml +46 -12
  61. data/config/locales/tr-TR.yml +0 -1
  62. data/config/locales/uk.yml +0 -1
  63. data/db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb +7 -0
  64. data/db/seeds/city.jpeg +0 -0
  65. data/db/seeds/city2.jpeg +0 -0
  66. data/lib/decidim/consultations/version.rb +1 -1
  67. metadata +26 -10
@@ -0,0 +1,5 @@
1
+ sl:
2
+ activemodel:
3
+ attributes:
4
+ consultation:
5
+ description: Opis
@@ -0,0 +1 @@
1
+ sr:
@@ -2,8 +2,8 @@ sv:
2
2
  activemodel:
3
3
  attributes:
4
4
  consultation:
5
- banner_image: Banner image
6
- decidim_highlighted_scope_id: Markerat omfattning
5
+ banner_image: Bannerbild
6
+ decidim_highlighted_scope_id: Markerat omfång
7
7
  description: Beskrivning
8
8
  end_voting_date: Omröstningen avslutas
9
9
  introductory_image: Introduktionsbild
@@ -14,30 +14,34 @@ sv:
14
14
  subtitle: Underrubrik
15
15
  title: Titel
16
16
  question:
17
- banner_image: Banner image
17
+ banner_image: Bannerbild
18
18
  decidim_scope_id: Kommundelsområde
19
19
  hashtag: Hashtag
20
20
  hero_image: Hembild
21
21
  i_frame_url: URL till externt röstningssystem
22
- instructions: Fler instruktioner för röstning
22
+ instructions: Ytterligare anvisningar för röstning
23
23
  max_votes: Max antal röster
24
24
  min_votes: Minsta antal röster
25
25
  origin_scope: Omfång
26
26
  origin_title: Ursprung
27
27
  origin_url: Ursprungs-URL
28
28
  participatory_scope: Deltagaromfång
29
- promoter_group: Promotorgrupp
29
+ promoter_group: Kampanjgrupp
30
30
  question_context: Kontext
31
31
  reference: Referens
32
- scope: Kommunala området
32
+ scope: Kommundelsområde
33
33
  slug: URL-slug
34
34
  subtitle: Underrubrik
35
- title: Titel
36
35
  vote: Externt omröstningssystem
37
36
  what_is_decided: Vad som bestäms
38
37
  response:
39
38
  decidim_consultations_response_group_id: Grupp
40
39
  errors:
40
+ models:
41
+ question:
42
+ attributes:
43
+ max_votes:
44
+ lower_than_min: Maximalt antal röster bör vara högre eller lika med minimum.
41
45
  vote:
42
46
  decidim_consultations_response_id:
43
47
  not_found: Hittade inte svar.
@@ -47,7 +51,7 @@ sv:
47
51
  decidim/consultations/vote:
48
52
  attributes:
49
53
  question:
50
- invalid_num_votes: Antalet röster är ogiltigt
54
+ invalid_num_votes: Ogiltigt antal röster
51
55
  models:
52
56
  decidim/consultation:
53
57
  one: Samråd
@@ -64,7 +68,7 @@ sv:
64
68
  decidim:
65
69
  admin:
66
70
  actions:
67
- back_to_responses: Tillbaka till svaren
71
+ back_to_responses: Tillbaka till svar
68
72
  new_consultation: Nytt samråd
69
73
  new_question: Ny fråga
70
74
  new_response: Nytt svar
@@ -103,6 +107,7 @@ sv:
103
107
  title: Nytt samråd
104
108
  results:
105
109
  not_visible: Resultaten kommer att vara tillgängliga när samrådet har avslutats
110
+ participants: "%{count} deltagare"
106
111
  total_votes: 'Totalt: %{count} röster'
107
112
  update:
108
113
  error: Det gick inte att uppdatera samrådet.
@@ -145,7 +150,9 @@ sv:
145
150
  one: Svar
146
151
  other: Svar
147
152
  question_configuration:
153
+ disable_external_voting: Avaktivera extern röstning för avancerade konfigurationer
148
154
  form:
155
+ help: Skapa flervalsfrågor genom att öka det maximala antalet svar en deltagare kan ge. Det förvalda maxvärdet är 1, vilket innebär att det endast går att rösta på ett alternativ.
149
156
  title: Avancerad konfiguration
150
157
  question_publications:
151
158
  create:
@@ -174,13 +181,23 @@ sv:
174
181
  error: Det gick inte att uppdatera frågan.
175
182
  success: Frågan har uppdaterats.
176
183
  response_groups:
184
+ create:
185
+ error: Det gick inte att skapa en ny svarsgrupp.
186
+ success: Svarsgruppen har skapats.
187
+ destroy:
188
+ error: Det gick inte att ta bort svarsgruppen. Kontrollera att inga svar beror på den.
189
+ success: Svarsgruppen har raderats.
177
190
  edit:
178
191
  update: Uppdatera
179
192
  form:
180
193
  title: Allmän information
194
+ help: Ordna paket med flervalsfrågor med hjälp av grupper.
181
195
  new:
182
196
  create: Skapa
183
197
  title: Ny svarsgrupp
198
+ update:
199
+ error: Det gick inte att uppdatera svaret.
200
+ success: Svaret har uppdaterats.
184
201
  responses:
185
202
  create:
186
203
  error: Det gick inte att skapa ett nytt svar.
@@ -219,9 +236,11 @@ sv:
219
236
  label: 'Sortera samråd efter:'
220
237
  random: Slumpmässig
221
238
  recent: Senaste
239
+ show:
240
+ dates: Datum
222
241
  content_blocks:
223
242
  highlighted_consultations:
224
- name: Annonserade samråd
243
+ name: Viktiga samråd just nu
225
244
  count:
226
245
  title:
227
246
  one: "%{count} samråd"
@@ -248,7 +267,7 @@ sv:
248
267
  pages:
249
268
  home:
250
269
  highlighted_consultations:
251
- active_consultations: Aktiva samråd
270
+ active_consultations: Pågående samråd
252
271
  see_all_consultations: Se alla samråd
253
272
  voting_ends_in:
254
273
  one: Omröstningen avslutas <strong>imorgon</strong>
@@ -261,14 +280,27 @@ sv:
261
280
  one: röst av
262
281
  other: röster av
263
282
  question_multiple_votes:
283
+ results_rules:
284
+ minimum_votes_per_user:
285
+ description: Deltagarna kunde fördela minst %{votes} röster mellan olika alternativ.
286
+ title: Flera val är möjliga som svar på denna fråga
287
+ total_participants: Sammanlagt deltog %{count} personer i omröstningen.
288
+ vote_limit:
289
+ description: Deltagarna kunde rösta på upp till %{limit} alternativ.
264
290
  voting_rules:
291
+ minimum_votes_per_user:
292
+ description: Du måste distribuera minst %{votes} röster mellan olika alternativ.
293
+ title: 'Röster måste följa följande regler:'
265
294
  vote_limit:
295
+ description: Du kan rösta på upp till %{limit} alternativ.
266
296
  left: Återstående
267
297
  votes: Röster
268
298
  question_votes:
269
299
  create:
270
300
  error: Det gick inte att rösta i frågan
301
+ success: Du kan ändra den upp till slutet av samrådet. Endast den sista rösten räknas.
271
302
  title_error: Röstningsfel!
303
+ title_success: Rösten har tagits emot
272
304
  regular_questions:
273
305
  title: Frågor för detta samråd
274
306
  show:
@@ -316,10 +348,12 @@ sv:
316
348
  verification_required: Bekräfta ditt konto för att rösta
317
349
  vote: Rösta
318
350
  vote_modal:
351
+ close_modal: Stäng modal
319
352
  contextual_help: Välj ett alternativ.
320
353
  title: 'Samråd: rösta på en fråga'
321
354
  vote_modal_confirm:
322
355
  change: Ändra
356
+ close_modal: Stäng modal
323
357
  confirm: Bekräfta
324
358
  contextual_help: Bekräfta det valda alternativet.
325
359
  title: 'Samråd: bekräfta röst'
@@ -340,4 +374,4 @@ sv:
340
374
  unfold: Veckla ut
341
375
  question_header:
342
376
  back_to_consultation: Visa alla samråd
343
- back_to_question: Tillbaks till frågan
377
+ back_to_question: Tillbaka till frågan
@@ -29,7 +29,6 @@ tr:
29
29
  scope: Belediye alanı
30
30
  slug: URL sümüklü böcek
31
31
  subtitle: Alt yazı
32
- title: Başlık
33
32
  vote: Dış oylama sistemi
34
33
  what_is_decided: Karar nedir
35
34
  errors:
@@ -29,7 +29,6 @@ uk:
29
29
  scope: Дільниця міста
30
30
  slug: Скорочена веб-адреса
31
31
  subtitle: Підзаголовок
32
- title: Заголовок
33
32
  vote: Зовнішня система голосування
34
33
  what_is_decided: Що вирішується
35
34
  errors:
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class IndexForeignKeysInDecidimConsultationsVotes < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_index :decidim_consultations_votes, :decidim_user_group_id
6
+ end
7
+ end
Binary file
Binary file
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Consultations
5
5
  def self.version
6
- "0.21.0"
6
+ "0.22.0"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-consultations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.21.0
19
+ version: 0.22.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.21.0
26
+ version: 0.22.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.21.0
33
+ version: 0.22.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.21.0
40
+ version: 0.22.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.21.0
47
+ version: 0.22.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.21.0
54
+ version: 0.22.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-dev
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.21.0
61
+ version: 0.22.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.21.0
68
+ version: 0.22.0
69
69
  description: Extends Decidim adding a first level public consultation component
70
70
  email:
71
71
  - jsperezg@gmail.com
@@ -248,9 +248,11 @@ files:
248
248
  - app/views/layouts/decidim/question_multivote.html.erb
249
249
  - config/locales/ar-SA.yml
250
250
  - config/locales/ar.yml
251
+ - config/locales/bg-BG.yml
251
252
  - config/locales/ca.yml
252
253
  - config/locales/cs-CZ.yml
253
254
  - config/locales/cs.yml
255
+ - config/locales/da-DK.yml
254
256
  - config/locales/de.yml
255
257
  - config/locales/el-GR.yml
256
258
  - config/locales/el.yml
@@ -259,22 +261,35 @@ files:
259
261
  - config/locales/es-MX.yml
260
262
  - config/locales/es-PY.yml
261
263
  - config/locales/es.yml
264
+ - config/locales/et-EE.yml
262
265
  - config/locales/eu.yml
263
266
  - config/locales/fi-pl.yml
264
267
  - config/locales/fi-plain.yml
265
268
  - config/locales/fi.yml
269
+ - config/locales/fr-CA.yml
266
270
  - config/locales/fr.yml
271
+ - config/locales/ga-IE.yml
267
272
  - config/locales/gl.yml
273
+ - config/locales/hr-HR.yml
268
274
  - config/locales/hu.yml
269
275
  - config/locales/id-ID.yml
270
276
  - config/locales/is-IS.yml
271
277
  - config/locales/it.yml
278
+ - config/locales/ja-JP.yml
279
+ - config/locales/lt-LT.yml
280
+ - config/locales/lv-LV.yml
281
+ - config/locales/mt-MT.yml
272
282
  - config/locales/nl.yml
273
283
  - config/locales/no.yml
274
284
  - config/locales/pl.yml
275
285
  - config/locales/pt-BR.yml
276
286
  - config/locales/pt.yml
287
+ - config/locales/ro-RO.yml
277
288
  - config/locales/ru.yml
289
+ - config/locales/sk-SK.yml
290
+ - config/locales/sk.yml
291
+ - config/locales/sl.yml
292
+ - config/locales/sr-CS.yml
278
293
  - config/locales/sv.yml
279
294
  - config/locales/tr-TR.yml
280
295
  - config/locales/uk.yml
@@ -311,6 +326,7 @@ files:
311
326
  - db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb
312
327
  - db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb
313
328
  - db/migrate/20190710121122_add_free_instructions_field_to_consultations_questions.rb
329
+ - db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb
314
330
  - db/seeds/Exampledocument.pdf
315
331
  - db/seeds/city.jpeg
316
332
  - db/seeds/city2.jpeg