decidim-participatory_processes 0.28.3 → 0.28.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -3
  3. data/app/models/decidim/participatory_process.rb +1 -1
  4. data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -1
  5. data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +1 -1
  6. data/config/locales/ar.yml +12 -3
  7. data/config/locales/bg.yml +0 -2
  8. data/config/locales/bn-BD.yml +1 -0
  9. data/config/locales/bs-BA.yml +33 -0
  10. data/config/locales/ca.yml +4 -4
  11. data/config/locales/cs.yml +5 -5
  12. data/config/locales/de.yml +2 -2
  13. data/config/locales/el.yml +1 -3
  14. data/config/locales/en.yml +1 -1
  15. data/config/locales/es-MX.yml +2 -2
  16. data/config/locales/es-PY.yml +2 -2
  17. data/config/locales/es.yml +2 -2
  18. data/config/locales/eu.yml +50 -50
  19. data/config/locales/fi-plain.yml +2 -2
  20. data/config/locales/fi.yml +8 -8
  21. data/config/locales/fr-CA.yml +3 -3
  22. data/config/locales/fr.yml +3 -3
  23. data/config/locales/ga-IE.yml +10 -0
  24. data/config/locales/gl.yml +12 -3
  25. data/config/locales/hu.yml +1 -3
  26. data/config/locales/id-ID.yml +11 -3
  27. data/config/locales/is-IS.yml +11 -1
  28. data/config/locales/it.yml +12 -3
  29. data/config/locales/ja.yml +1 -1
  30. data/config/locales/lb.yml +12 -3
  31. data/config/locales/lt.yml +0 -2
  32. data/config/locales/lv.yml +11 -3
  33. data/config/locales/nl.yml +11 -2
  34. data/config/locales/no.yml +2 -4
  35. data/config/locales/pl.yml +0 -2
  36. data/config/locales/pt-BR.yml +9 -3
  37. data/config/locales/pt.yml +17 -2
  38. data/config/locales/ro-RO.yml +6 -1
  39. data/config/locales/ru.yml +11 -1
  40. data/config/locales/sk.yml +11 -3
  41. data/config/locales/sv.yml +26 -20
  42. data/config/locales/tr-TR.yml +12 -3
  43. data/config/locales/uk.yml +11 -1
  44. data/config/locales/zh-CN.yml +11 -3
  45. data/config/locales/zh-TW.yml +0 -2
  46. data/decidim-participatory_processes.gemspec +1 -1
  47. data/lib/decidim/participatory_processes/query_extensions.rb +26 -0
  48. data/lib/decidim/participatory_processes/version.rb +1 -1
  49. metadata +13 -11
@@ -22,7 +22,6 @@ ru:
22
22
  promoted: Рекомендуется
23
23
  published_at: 'Обнародовано:'
24
24
  related_process_ids: Подобные движения
25
- scope_id: Охват
26
25
  scopes_enabled: Охваты включены
27
26
  short_description: Краткое описание
28
27
  show_statistics: Показывать статистику
@@ -41,6 +40,8 @@ ru:
41
40
  short_description: Краткое описание
42
41
  start_date: Дата начала
43
42
  title: Название
43
+ participatory_process_type:
44
+ title: Название
44
45
  participatory_process_user_role:
45
46
  email: Эл. адрес
46
47
  name: Имя
@@ -111,6 +112,10 @@ ru:
111
112
  start_date: Дата начала
112
113
  title: Название
113
114
  name: Шаг движения соучастия
115
+ participatory_process_type:
116
+ fields:
117
+ created_at: 'Создано:'
118
+ title: Название
114
119
  participatory_process_user_role:
115
120
  fields:
116
121
  email: Эл. адрес
@@ -173,6 +178,11 @@ ru:
173
178
  update:
174
179
  error: При попытке обновить этот шаг движения соучастия произошла ошибка.
175
180
  success: Шаг движения соучастия успешно обновлен.
181
+ participatory_process_types:
182
+ edit:
183
+ update: Обновить
184
+ new:
185
+ create: Создать
176
186
  participatory_process_user_roles:
177
187
  create:
178
188
  error: При попытке добавить участника в это движение соучастия произошла ошибка.
@@ -24,7 +24,6 @@ sk:
24
24
  promoted: propagované
25
25
  published_at: Publikované v
26
26
  related_process_ids: Súvisiace procesy
27
- scope_id: Rozsah
28
27
  scope_type_max_depth_id: Hĺbka filtra rozsahu
29
28
  scopes_enabled: Schopnosti povolené
30
29
  short_description: Stručný opis
@@ -47,6 +46,8 @@ sk:
47
46
  short_description: Stručný opis
48
47
  start_date: Dátum začatia
49
48
  title: Titul
49
+ participatory_process_type:
50
+ title: Titul
50
51
  participatory_process_user_role:
51
52
  email: E-mailom
52
53
  name: názov
@@ -118,6 +119,10 @@ sk:
118
119
  start_date: Dátum začatia
119
120
  title: Titul
120
121
  name: Participatívne krok procesu
122
+ participatory_process_type:
123
+ fields:
124
+ created_at: Vytvorené u
125
+ title: Titul
121
126
  participatory_process_user_role:
122
127
  fields:
123
128
  email: E-mailom
@@ -190,6 +195,11 @@ sk:
190
195
  update:
191
196
  error: Pri aktualizácii tohto kroku procesu participácie došlo k chybe.
192
197
  success: Úspešný krok procesu bol úspešne aktualizovaný.
198
+ participatory_process_types:
199
+ edit:
200
+ update: Aktualizácia
201
+ new:
202
+ create: Vytvoriť
193
203
  participatory_process_user_roles:
194
204
  create:
195
205
  error: Pri pridávaní používateľa pre tento participačné proces došlo k chybe.
@@ -319,8 +329,6 @@ sk:
319
329
  name: Zvýraznené procesy
320
330
  index:
321
331
  title: Participatívna procesy
322
- last_activity:
323
- new_participatory_process: Nový participačné proces
324
332
  participatory_processes:
325
333
  filters:
326
334
  counters:
@@ -11,24 +11,24 @@ sv:
11
11
  copy_steps: Kopiera steg
12
12
  decidim_area_id: Område
13
13
  description: Beskrivning
14
- developer_group: Kampanjgrupp
14
+ developer_group: Arrangör
15
15
  document: Dokument
16
16
  domain: Domän
17
17
  end_date: Slutdatum
18
18
  hashtag: Hashtag
19
- hero_image: Hembild
19
+ hero_image: Startbild
20
20
  import_attachments: Importera bilagor
21
21
  import_categories: Importera kategorier
22
22
  import_components: Importera komponenter
23
23
  import_steps: Importera steg
24
24
  local_area: Område
25
- meta_scope: Metadata för indelning
26
- participatory_process_group_id: Processgrupp
25
+ meta_scope: Omfattning
26
+ participatory_process_group_id: Grupp av processer
27
27
  participatory_process_type_id: Typ av processer
28
- participatory_scope: Vad som bestäms
29
- participatory_structure: Hur det bestäms
28
+ participatory_scope: Vad beslutas
29
+ participatory_structure: Hur fattas beslut
30
30
  private_space: Privat process
31
- promoted: Annonserad
31
+ promoted: Utvald
32
32
  published_at: Publicerad
33
33
  related_process_ids: Relaterade processer
34
34
  scope_id: Indelning
@@ -45,20 +45,20 @@ sv:
45
45
  weight: Position i listan
46
46
  participatory_process_group:
47
47
  description: Beskrivning
48
- developer_group: Kampanjgrupp
48
+ developer_group: Arrangör
49
49
  group_url: Webbplats
50
50
  hashtag: Hashtag
51
51
  hero_image: Bild
52
52
  local_area: Område
53
- meta_scope: Metadata för indelning
53
+ meta_scope: Omfattning
54
54
  participatory_process_ids: Relaterade processer
55
- participatory_scope: Vad som beslutas
55
+ participatory_scope: Vad beslutas
56
56
  participatory_structure: Hur fattas beslut
57
57
  target: Vem deltar
58
58
  title: Titel
59
59
  participatory_process_step:
60
- cta_path: Call to Action-sökväg
61
- cta_text: Call to Action-text
60
+ cta_path: Sökväg för knapp
61
+ cta_text: Text till knapp
62
62
  description: Beskrivning
63
63
  end_date: Slutdatum
64
64
  short_description: Kort beskrivning
@@ -220,6 +220,12 @@ sv:
220
220
  last_step: Kan inte ta bort det sista steget i en process.
221
221
  success: Steget i processen har raderats.
222
222
  edit:
223
+ cta_deprecated:
224
+ body_html: |-
225
+ Konfigurering av Call to Action görs inte längre via stegen i deltagarprocessen i den här versionen.
226
+ Det görs istället på <b>Landningssidan</b>, med hjälp av <b>hero- och bild-</b>innehållsblocket.
227
+ Det här finns kvar för att du ska kunna migrera de CTAs som du behöver. Fälten <i>Call to Action-länk</i> och <i>Call to Action-text</i> kommer att tas bort i nästa version.
228
+ title: Call to Action från tidigare version
223
229
  title: Redigera steg i processen
224
230
  update: Uppdatera
225
231
  index:
@@ -361,7 +367,7 @@ sv:
361
367
  extra_data:
362
368
  developer_group: Stödd av
363
369
  name: Metadata
364
- participatory_scope: Vad som beslutas
370
+ participatory_scope: Vad beslutas
365
371
  participatory_structure: Hur fattas beslut
366
372
  target: Vem deltar
367
373
  html:
@@ -375,7 +381,7 @@ sv:
375
381
  main_data:
376
382
  name: Titel och beskrivning
377
383
  participatory_processes:
378
- active: Aktiva deltagandeprocesser
384
+ active: Pågående deltagandeprocesser
379
385
  name: Deltagandeprocesser
380
386
  stats:
381
387
  name: Statistik
@@ -393,7 +399,7 @@ sv:
393
399
  admin:
394
400
  content_blocks:
395
401
  highlighted_processes:
396
- active: Aktiv
402
+ active: Pågående
397
403
  all: Alla
398
404
  max_results: Högsta antal element att visa
399
405
  selection_criteria: Urvalskriterier
@@ -415,7 +421,7 @@ sv:
415
421
  participatory_process_steps:
416
422
  form:
417
423
  cta_path_help_html: 'Använd relativa sökvägar, inte fullständiga URL: er. Accepterar bokstäver, siffror, bindestreck och snedstreck, och måste börja med en bokstav. Om fältet inte fylls i visas inte knappen. Exempel: %{url}'
418
- cta_text_help: Om den inte är kommer knappen inte att visas.
424
+ cta_text_help: Om fältet är tomt visas inte knappen.
419
425
  participatory_processes:
420
426
  form:
421
427
  announcement_help: Den här texten visas direkt under informationen om processen.
@@ -423,7 +429,7 @@ sv:
423
429
  filters: Filter
424
430
  images: Bilder
425
431
  metadata: Metadata
426
- other: Andra
432
+ other: Övrigt
427
433
  related_processes: Relaterade processer
428
434
  scope_type_max_depth_help: Begränsa djupet på filtret för indelningen.
429
435
  select_an_area: Välj ett område
@@ -444,7 +450,7 @@ sv:
444
450
  index:
445
451
  title: Deltagandeprocesser
446
452
  last_activity:
447
- new_participatory_process: Ny process
453
+ new_participatory_process: 'Ny process:'
448
454
  pages:
449
455
  home:
450
456
  highlighted_processes:
@@ -457,10 +463,10 @@ sv:
457
463
  description:
458
464
  area_name: Område
459
465
  data: Data från processen
460
- developer_group: Kampanjgrupp
466
+ developer_group: Arrangör
461
467
  local_area: Område
462
468
  meta_scope: Indelning
463
- participatory_scope: Vad som beslutas
469
+ participatory_scope: Vad beslutas
464
470
  participatory_structure: Hur fattas beslut
465
471
  target: Vem deltar
466
472
  title: Om processen
@@ -24,7 +24,7 @@ tr:
24
24
  promoted: Tanıtılan
25
25
  published_at: Yayınlandı
26
26
  related_process_ids: İlgili süreçler
27
- scope_id: kapsam
27
+ scope_id: Kapsam
28
28
  scope_type_max_depth_id: Kapsam filtre derinliği
29
29
  scopes_enabled: Kapsamlar etkin
30
30
  short_description: Kısa Açıklama
@@ -56,6 +56,8 @@ tr:
56
56
  short_description: Kısa Açıklama
57
57
  start_date: Başlangıç tarihi
58
58
  title: Başlık
59
+ participatory_process_type:
60
+ title: Başlık
59
61
  participatory_process_user_role:
60
62
  email: E-posta
61
63
  name: isim
@@ -129,6 +131,10 @@ tr:
129
131
  start_date: Başlangıç tarihi
130
132
  title: Başlık
131
133
  name: Katılımcı süreç adımı
134
+ participatory_process_type:
135
+ fields:
136
+ created_at: Düzenlendi
137
+ title: Başlık
132
138
  participatory_process_user_role:
133
139
  fields:
134
140
  email: E-posta
@@ -201,6 +207,11 @@ tr:
201
207
  update:
202
208
  error: Bu katılımcı süreç adımı güncellenirken bir hata oluştu.
203
209
  success: Katılımcı süreç adımı başarıyla güncellendi.
210
+ participatory_process_types:
211
+ edit:
212
+ update: Güncelleştirme
213
+ new:
214
+ create: yaratmak
204
215
  participatory_process_user_roles:
205
216
  create:
206
217
  error: Bu katılımcı süreç için bir kullanıcı eklenirken bir hata oluştu.
@@ -358,8 +369,6 @@ tr:
358
369
  name: Vurgulanan süreçler
359
370
  index:
360
371
  title: Katılımcı süreçler
361
- last_activity:
362
- new_participatory_process: Yeni katılımcı süreç
363
372
  participatory_process_steps:
364
373
  index:
365
374
  back_to_process: Süreç sayfasına geri dön
@@ -22,7 +22,6 @@ uk:
22
22
  promoted: Висвітлено
23
23
  published_at: 'Оприлюднено:'
24
24
  related_process_ids: Супутні рухи
25
- scope_id: Обсяг
26
25
  scopes_enabled: Обсяги увімкнено
27
26
  short_description: Стислий опис
28
27
  show_statistics: Показувати статистику
@@ -41,6 +40,8 @@ uk:
41
40
  short_description: Стислий опис
42
41
  start_date: Дата початку
43
42
  title: Назва
43
+ participatory_process_type:
44
+ title: Назва
44
45
  participatory_process_user_role:
45
46
  email: Адреса електронної пошти
46
47
  name: Ім'я
@@ -111,6 +112,10 @@ uk:
111
112
  start_date: Дата початку
112
113
  title: Назва
113
114
  name: Крок руху співучасті
115
+ participatory_process_type:
116
+ fields:
117
+ created_at: 'Додано:'
118
+ title: Назва
114
119
  participatory_process_user_role:
115
120
  fields:
116
121
  email: Адреса електронної пошти
@@ -173,6 +178,11 @@ uk:
173
178
  update:
174
179
  error: При спробі оновити цей крок руху співучасті сталася помилка.
175
180
  success: Крок руху співучасті успішно оновлено.
181
+ participatory_process_types:
182
+ edit:
183
+ update: Оновити
184
+ new:
185
+ create: Створити
176
186
  participatory_process_user_roles:
177
187
  create:
178
188
  error: При спробі додати учасника в цей рух співучасті сталася помилка.
@@ -24,7 +24,6 @@ zh-CN:
24
24
  promoted: 已升级
25
25
  published_at: 发布于
26
26
  related_process_ids: 相关进程
27
- scope_id: 范围
28
27
  scope_type_max_depth_id: 范围过滤器深度:
29
28
  scopes_enabled: 范围已启用
30
29
  short_description: 简短描述
@@ -47,6 +46,8 @@ zh-CN:
47
46
  short_description: 简短描述
48
47
  start_date: 开始日期
49
48
  title: 标题
49
+ participatory_process_type:
50
+ title: 标题
50
51
  participatory_process_user_role:
51
52
  email: 电子邮件地址
52
53
  name: 名称
@@ -109,6 +110,10 @@ zh-CN:
109
110
  start_date: 开始日期
110
111
  title: 标题
111
112
  name: 参与进程阶段
113
+ participatory_process_type:
114
+ fields:
115
+ created_at: 创建于
116
+ title: 标题
112
117
  participatory_process_user_role:
113
118
  fields:
114
119
  email: 电子邮件地址
@@ -181,6 +186,11 @@ zh-CN:
181
186
  update:
182
187
  error: 在更新这一阶段的参与进程时遇到了问题。
183
188
  success: 参与阶段更新成功。
189
+ participatory_process_types:
190
+ edit:
191
+ update: 更新
192
+ new:
193
+ create: 创建
184
194
  participatory_process_user_roles:
185
195
  create:
186
196
  error: 在这个参与进程中增加参与者时遇到了问题。
@@ -315,8 +325,6 @@ zh-CN:
315
325
  name: 高亮的进程
316
326
  index:
317
327
  title: 参与进程
318
- last_activity:
319
- new_participatory_process: 新的参与进程
320
328
  participatory_process_steps:
321
329
  index:
322
330
  back_to_process: 返回进程页面
@@ -404,8 +404,6 @@ zh-TW:
404
404
  name: 精選程序
405
405
  index:
406
406
  title: 參與程序
407
- last_activity:
408
- new_participatory_process: 新的參與程序
409
407
  participatory_process_steps:
410
408
  index:
411
409
  back_to_process: 返回程序頁
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = Decidim::ParticipatoryProcesses.version
9
9
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
10
10
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
11
- s.license = "AGPL-3.0"
11
+ s.license = "AGPL-3.0-or-later"
12
12
  s.homepage = "https://decidim.org"
13
13
  s.metadata = {
14
14
  "bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
@@ -11,6 +11,22 @@ module Decidim
11
11
  #
12
12
  # Returns nothing.
13
13
  def self.included(type)
14
+ type.field :participatory_processes,
15
+ [Decidim::ParticipatoryProcesses::ParticipatoryProcessType],
16
+ null: true,
17
+ description: "Lists all participatory_processes" do
18
+ argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument lets you filter the results", required: false
19
+ argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument lets you order the results", required: false
20
+ end
21
+
22
+ type.field :participatory_process,
23
+ Decidim::ParticipatoryProcesses::ParticipatoryProcessType,
24
+ null: true,
25
+ description: "Finds a participatory_process" do
26
+ argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
27
+ argument :slug, String, "The slug of the participatory process", required: false
28
+ end
29
+
14
30
  type.field :participatory_process_groups, [ParticipatoryProcessGroupType],
15
31
  null: false,
16
32
  description: "Lists all participatory process groups"
@@ -30,6 +46,16 @@ module Decidim
30
46
  end
31
47
  end
32
48
 
49
+ def participatory_processes(filter: {}, order: {})
50
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
51
+ Decidim::Core::ParticipatorySpaceListBase.new(manifest:).call(object, { filter:, order: }, context)
52
+ end
53
+
54
+ def participatory_process(id: nil, slug: nil)
55
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
56
+ Decidim::Core::ParticipatorySpaceFinderBase.new(manifest:).call(object, { id:, slug: }, context)
57
+ end
58
+
33
59
  def participatory_process_groups(*)
34
60
  Decidim::ParticipatoryProcessGroup.where(
35
61
  organization: context[:current_organization]
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-participatory_processes version.
5
5
  module ParticipatoryProcesses
6
6
  def self.version
7
- "0.28.3"
7
+ "0.28.5"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-participatory_processes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.3
4
+ version: 0.28.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-09-10 00:00:00.000000000 Z
13
+ date: 2025-02-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.28.3
21
+ version: 0.28.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.28.3
28
+ version: 0.28.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.3
35
+ version: 0.28.5
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.28.3
42
+ version: 0.28.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-dev
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.28.3
49
+ version: 0.28.5
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.28.3
56
+ version: 0.28.5
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-meetings
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.28.3
63
+ version: 0.28.5
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.28.3
70
+ version: 0.28.5
71
71
  description: Participatory processes component for decidim.
72
72
  email:
73
73
  - josepjaume@gmail.com
@@ -289,6 +289,8 @@ files:
289
289
  - config/locales/ar.yml
290
290
  - config/locales/bg-BG.yml
291
291
  - config/locales/bg.yml
292
+ - config/locales/bn-BD.yml
293
+ - config/locales/bs-BA.yml
292
294
  - config/locales/ca.yml
293
295
  - config/locales/cs-CZ.yml
294
296
  - config/locales/cs.yml
@@ -434,7 +436,7 @@ files:
434
436
  - lib/tasks/decidim_participatory_processes.rake
435
437
  homepage: https://decidim.org
436
438
  licenses:
437
- - AGPL-3.0
439
+ - AGPL-3.0-or-later
438
440
  metadata:
439
441
  bug_tracker_uri: https://github.com/decidim/decidim/issues
440
442
  documentation_uri: https://docs.decidim.org/