decidim-assemblies 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/assemblies/admin/import_assembly.rb +72 -0
  3. data/app/commands/decidim/assemblies/admin/update_assembly.rb +10 -5
  4. data/app/controllers/decidim/assemblies/admin/assembly_exports_controller.rb +24 -0
  5. data/app/controllers/decidim/assemblies/admin/assembly_imports_controller.rb +31 -0
  6. data/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb +2 -1
  7. data/app/controllers/decidim/assemblies/{assembly_widgets_controller.rb → widgets_controller.rb} +2 -2
  8. data/app/forms/decidim/assemblies/admin/assembly_form.rb +5 -6
  9. data/app/forms/decidim/assemblies/admin/assembly_import_form.rb +83 -0
  10. data/app/forms/decidim/assemblies/admin/assembly_user_role_form.rb +8 -2
  11. data/app/models/decidim/assemblies_type.rb +3 -0
  12. data/app/models/decidim/assembly.rb +14 -1
  13. data/app/permissions/decidim/assemblies/permissions.rb +5 -1
  14. data/app/presenters/decidim/assemblies/assembly_presenter.rb +29 -0
  15. data/app/serializers/decidim/assemblies/assembly_importer.rb +172 -0
  16. data/app/serializers/decidim/assemblies/assembly_serializer.rb +147 -0
  17. data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +10 -0
  18. data/app/views/decidim/assemblies/admin/assembly_imports/_form.html.erb +46 -0
  19. data/app/views/decidim/assemblies/admin/assembly_imports/new.html.erb +7 -0
  20. data/app/views/decidim/assemblies/assemblies/show.html.erb +1 -1
  21. data/app/views/layouts/decidim/assembly.html.erb +1 -0
  22. data/config/locales/am-ET.yml +1 -0
  23. data/config/locales/bg.yml +7 -0
  24. data/config/locales/ca.yml +24 -2
  25. data/config/locales/cs.yml +29 -7
  26. data/config/locales/da.yml +1 -0
  27. data/config/locales/de.yml +19 -0
  28. data/config/locales/el.yml +19 -0
  29. data/config/locales/en.yml +22 -0
  30. data/config/locales/eo.yml +1 -0
  31. data/config/locales/es-MX.yml +22 -0
  32. data/config/locales/es-PY.yml +22 -0
  33. data/config/locales/es.yml +24 -2
  34. data/config/locales/et.yml +1 -0
  35. data/config/locales/fi-plain.yml +19 -0
  36. data/config/locales/fi.yml +22 -3
  37. data/config/locales/fr-CA.yml +22 -0
  38. data/config/locales/fr.yml +22 -0
  39. data/config/locales/hr.yml +1 -0
  40. data/config/locales/hu.yml +18 -0
  41. data/config/locales/is.yml +263 -0
  42. data/config/locales/it.yml +19 -0
  43. data/config/locales/ja-JP.yml +145 -126
  44. data/config/locales/ja.yml +471 -0
  45. data/config/locales/ko-KR.yml +1 -0
  46. data/config/locales/ko.yml +1 -0
  47. data/config/locales/lt.yml +1 -0
  48. data/config/locales/{lv-LV.yml → lv.yml} +0 -0
  49. data/config/locales/mt.yml +1 -0
  50. data/config/locales/nl.yml +19 -0
  51. data/config/locales/no.yml +19 -0
  52. data/config/locales/om-ET.yml +1 -0
  53. data/config/locales/pl.yml +37 -18
  54. data/config/locales/pt.yml +19 -0
  55. data/config/locales/ro-RO.yml +19 -0
  56. data/config/locales/sl.yml +151 -0
  57. data/config/locales/so-SO.yml +1 -0
  58. data/config/locales/sv.yml +22 -0
  59. data/config/locales/ti-ER.yml +1 -0
  60. data/config/locales/tr-TR.yml +19 -0
  61. data/config/locales/vi-VN.yml +1 -0
  62. data/config/locales/vi.yml +1 -0
  63. data/config/locales/zh-CN.yml +471 -0
  64. data/config/locales/zh-TW.yml +1 -0
  65. data/lib/decidim/assemblies/admin_engine.rb +7 -0
  66. data/lib/decidim/assemblies/engine.rb +1 -1
  67. data/lib/decidim/assemblies/participatory_space.rb +20 -12
  68. data/lib/decidim/assemblies/test/factories.rb +3 -3
  69. data/lib/decidim/assemblies/version.rb +1 -1
  70. metadata +40 -12
@@ -26,10 +26,10 @@ fi:
26
26
  github: GitHub
27
27
  hashtag: Hashtag
28
28
  hero_image: Etusivun kuva
29
- included_at: Mukana osoitteessa
29
+ included_at: Lisäysaika
30
30
  instagram: Instagram
31
31
  internal_organisation: Sisäinen organisaatio
32
- is_transparent: On läpinäkyvä
32
+ is_transparent: Läpinäkyvä
33
33
  local_area: Organisaatioalue
34
34
  meta_scope: Teeman metadata
35
35
  parent_id: Liittyvä ryhmä
@@ -64,6 +64,12 @@ fi:
64
64
  email: Sähköposti
65
65
  name: Nimi
66
66
  role: Rooli
67
+ errors:
68
+ models:
69
+ assembly:
70
+ attributes:
71
+ document:
72
+ invalid_document_type: 'Virheellinen asiakirjan muoto. Hyväksytyt tiedostomuodot ovat: %{valid_mime_types}'
67
73
  activerecord:
68
74
  models:
69
75
  decidim/assembly:
@@ -78,6 +84,7 @@ fi:
78
84
  decidim:
79
85
  admin:
80
86
  actions:
87
+ import_assembly: Tuo
81
88
  new_assembly: Uusi ryhmä
82
89
  new_assembly_type: Uusi ryhmätyyppi
83
90
  assemblies:
@@ -122,6 +129,14 @@ fi:
122
129
  copy: Kopioi
123
130
  select: Valitse, mitkä tiedot haluat kopioida
124
131
  title: Kopioi ryhmä
132
+ assembly_imports:
133
+ create:
134
+ error: Ryhmän tuonti epäonnistui.
135
+ success: Ryhmän tuonti onnistui.
136
+ new:
137
+ import: Tuo
138
+ select: Valitse, mitkä tiedot haluat tuoda
139
+ title: Tuo ryhmä
125
140
  assembly_members:
126
141
  create:
127
142
  error: Jäsenen lisääminen ryhmään epäonnistui.
@@ -269,6 +284,10 @@ fi:
269
284
  assembly_copies:
270
285
  form:
271
286
  slug_help: 'URL-tunnisteita käytetään tähän ryhmään osoittavien URL-osoitteiden luonnissa. Hyväksyy kirjaimet, numerot ja viivat. Ensimmäinen merkki on oltava kirjain. Esimerkiksi: %{url}'
287
+ assembly_imports:
288
+ form:
289
+ document_legend: Lisää dokumentti
290
+ slug_help: 'URL-tunnisteita käytetään tähän ryhmään osoittavien URL-osoitteiden luonnissa. Hyväksyy kirjaimet, numerot ja viivat. Ensimmäinen merkki on oltava kirjain. Esimerkiksi: %{url}'
272
291
  assembly_members:
273
292
  form:
274
293
  existing_user: Olemassa oleva käyttäjä
@@ -337,7 +356,7 @@ fi:
337
356
  creation_date: Luontipäivämäärä
338
357
  developer_group: Perustajaryhmä
339
358
  duration: Kesto
340
- included_at: Mukana osoitteessa
359
+ included_at: Lisäysaika
341
360
  indefinite_duration: Määrittelemätön
342
361
  internal_organisation: Sisäinen organisaatio
343
362
  is_transparent:
@@ -64,6 +64,12 @@ fr-CA:
64
64
  email: E-mail
65
65
  name: "Nom\n"
66
66
  role: Fonction
67
+ errors:
68
+ models:
69
+ assembly:
70
+ attributes:
71
+ document:
72
+ invalid_document_type: 'Type de document invalide. Les formats acceptés sont : %{valid_mime_types}'
67
73
  activerecord:
68
74
  models:
69
75
  decidim/assembly:
@@ -78,6 +84,7 @@ fr-CA:
78
84
  decidim:
79
85
  admin:
80
86
  actions:
87
+ import_assembly: Importation
81
88
  new_assembly: Nouvelle assemblée
82
89
  new_assembly_type: Nouveau type d'assemblée
83
90
  assemblies:
@@ -122,6 +129,14 @@ fr-CA:
122
129
  copy: Copier
123
130
  select: Sélectionnez les données que vous souhaitez dupliquer
124
131
  title: Dupliquer l'assemblée
132
+ assembly_imports:
133
+ create:
134
+ error: Un problème est survenu lors de l'importation de cette assemblée.
135
+ success: L'assemblage a été importé avec succès.
136
+ new:
137
+ import: Importation
138
+ select: Sélectionnez les données que vous souhaitez importer
139
+ title: Importer un assemblage
125
140
  assembly_members:
126
141
  create:
127
142
  error: Une erreur s'est produite lors de l'ajout d'un membre pour cette assemblée.
@@ -269,6 +284,10 @@ fr-CA:
269
284
  assembly_copies:
270
285
  form:
271
286
  slug_help: 'Les identifiants d''URL sont utilisés pour générer les liens qui envoient vers cette agora. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
287
+ assembly_imports:
288
+ form:
289
+ document_legend: Ajouter un document
290
+ slug_help: 'Les identifiants d''URL sont utilisés pour générer les URL qui pointent vers cette assemblée. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
272
291
  assembly_members:
273
292
  form:
274
293
  existing_user: Utilisateur existant
@@ -286,6 +305,9 @@ fr-CA:
286
305
  content_blocks:
287
306
  highlighted_assemblies:
288
307
  max_results: Quantité maximale d'éléments à afficher
308
+ new_import:
309
+ accepted_types:
310
+ json: JSON
289
311
  assembly_members:
290
312
  index:
291
313
  members: Membres
@@ -64,6 +64,12 @@ fr:
64
64
  email: E-mail
65
65
  name: "Nom\n"
66
66
  role: Fonction
67
+ errors:
68
+ models:
69
+ assembly:
70
+ attributes:
71
+ document:
72
+ invalid_document_type: 'Type de document invalide. Les formats acceptés sont : %{valid_mime_types}'
67
73
  activerecord:
68
74
  models:
69
75
  decidim/assembly:
@@ -78,6 +84,7 @@ fr:
78
84
  decidim:
79
85
  admin:
80
86
  actions:
87
+ import_assembly: Importer
81
88
  new_assembly: Nouvelle assemblée
82
89
  new_assembly_type: Nouveau type d'assemblée
83
90
  assemblies:
@@ -122,6 +129,14 @@ fr:
122
129
  copy: Copier
123
130
  select: Sélectionnez les données que vous souhaitez dupliquer
124
131
  title: Dupliquer l'assemblée
132
+ assembly_imports:
133
+ create:
134
+ error: Un problème est survenu lors de l'import de cette assemblée.
135
+ success: L'assemblée a été importée avec succès.
136
+ new:
137
+ import: Importer
138
+ select: Sélectionnez les données que vous souhaitez importer
139
+ title: Importer l'assemblée
125
140
  assembly_members:
126
141
  create:
127
142
  error: Une erreur s'est produite lors de l'ajout d'un membre pour cette assemblée.
@@ -269,6 +284,10 @@ fr:
269
284
  assembly_copies:
270
285
  form:
271
286
  slug_help: 'Les identifiants d''URL sont utilisés pour générer les liens qui envoient vers cette agora. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
287
+ assembly_imports:
288
+ form:
289
+ document_legend: Ajouter un document
290
+ slug_help: 'Les identifiants d''URL sont utilisés pour générer les URL qui pointent vers cette assemblée. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
272
291
  assembly_members:
273
292
  form:
274
293
  existing_user: Utilisateur existant
@@ -286,6 +305,9 @@ fr:
286
305
  content_blocks:
287
306
  highlighted_assemblies:
288
307
  max_results: Quantité maximale d'éléments à afficher
308
+ new_import:
309
+ accepted_types:
310
+ json: JSON
289
311
  assembly_members:
290
312
  index:
291
313
  members: Membres
@@ -0,0 +1 @@
1
+ hr:
@@ -64,6 +64,12 @@ hu:
64
64
  email: Email
65
65
  name: Név
66
66
  role: Szerep
67
+ errors:
68
+ models:
69
+ assembly:
70
+ attributes:
71
+ document:
72
+ invalid_document_type: 'Nem megfelelő dokument típus. Az elfogadott formátumok: %{valid_mime_types}'
67
73
  activerecord:
68
74
  models:
69
75
  decidim/assembly:
@@ -78,6 +84,7 @@ hu:
78
84
  decidim:
79
85
  admin:
80
86
  actions:
87
+ import_assembly: Importálás
81
88
  new_assembly: Új gyűlés
82
89
  new_assembly_type: Új Gyűlés típus
83
90
  assemblies:
@@ -122,6 +129,14 @@ hu:
122
129
  copy: Másolás
123
130
  select: Válaszd ki, mely adatokat szeretnéd duplikálni
124
131
  title: Gyűlés duplikálása
132
+ assembly_imports:
133
+ create:
134
+ error: Hiba történt a gyűlés importálása során.
135
+ success: Gyűlés importálása sikerült.
136
+ new:
137
+ import: Importál
138
+ select: Válaszd ki, mely adatokat szeretnéd importálni
139
+ title: Gyűlés importálása
125
140
  assembly_members:
126
141
  create:
127
142
  error: Hiba történt a tag gyűléshez való hozzáadása során.
@@ -269,6 +284,9 @@ hu:
269
284
  assembly_copies:
270
285
  form:
271
286
  slug_help: 'Az URL slugok a gyűlések linkjeinek generáláshoz szükségesek. Csak betűket, számokat és kötőjeleket használhatsz. Betűvel kell kezdened. Példa: %{url}'
287
+ assembly_imports:
288
+ form:
289
+ document_legend: Dokumentum hozzáadása
272
290
  assembly_members:
273
291
  form:
274
292
  existing_user: Meglévő résztvevő
@@ -0,0 +1,263 @@
1
+ is:
2
+ activemodel:
3
+ attributes:
4
+ assembly:
5
+ area_id: Svæði
6
+ assembly_type: Samsetning gerð
7
+ assembly_type_other: Safn tegund annars
8
+ banner_image: Banner image
9
+ closing_date: Lokadagur
10
+ closing_date_reason: Lokadagsetning ástæða
11
+ composition: Samsetning
12
+ copy_categories: Afrita flokka
13
+ copy_components: Afrita hluti
14
+ copy_features: Afrita eiginleika
15
+ created_by: Búið til af
16
+ created_by_other: Búið til af öðrum
17
+ creation_date: Dagsetning búin til
18
+ decidim_area_id: Svæði
19
+ decidim_assemblies_type_id: Samsetning gerð
20
+ decidim_scope_id: Umfang
21
+ description: Lýsing
22
+ domain: Lén
23
+ duration: Lengd
24
+ facebook: Facebook
25
+ github: GitHub
26
+ hashtag: Kassamerki
27
+ hero_image: Heimsmynd
28
+ included_at: Innifalið á
29
+ instagram: Instagram
30
+ internal_organisation: Innri skipulagning
31
+ is_transparent: Er gagnsæ
32
+ meta_scope: Gildissvið lýsigagna
33
+ published_at: Birt á
34
+ purpose_of_action: Tilgangur aðgerða
35
+ scope_id: Umfang
36
+ scopes_enabled: Scopes virkt
37
+ short_description: Stutt lýsing
38
+ show_statistics: Sýna tölfræði
39
+ slug: URL slug
40
+ subtitle: Texti
41
+ title: Titill
42
+ twitter: Twitter
43
+ youtube: Youtube
44
+ assembly_member:
45
+ birthday: Afmælisdagur
46
+ birthplace: Fæðingarstaður
47
+ ceased_date: Hættudagur
48
+ designation_date: Tilnefningardagur
49
+ designation_mode: Tilnefningarmáti
50
+ full_name: Fullt nafn
51
+ gender: Kyn
52
+ position: Staða
53
+ assembly_user_role:
54
+ email: Email
55
+ name: Nafn
56
+ role: Hlutverk
57
+ decidim:
58
+ admin:
59
+ assemblies:
60
+ create:
61
+ success: Samkoma búin til með góðum árangri.
62
+ edit:
63
+ update: Uppfæra
64
+ index:
65
+ not_published: Ekki birt
66
+ private: Einkamál
67
+ public: Opinber
68
+ published: Published
69
+ new:
70
+ create: Búa til
71
+ title: Ný samkoma
72
+ assemblies_types:
73
+ new:
74
+ create: Búa til
75
+ assembly_copies:
76
+ new:
77
+ copy: Afrita
78
+ select: Veldu hvaða gögn þú vilt afrita
79
+ title: Afrit samkoma
80
+ assembly_members:
81
+ edit:
82
+ title: Uppfæra samningsaðila.
83
+ update: Uppfæra
84
+ index:
85
+ assembly_members_title: Þingmenn
86
+ new:
87
+ create: Búa til
88
+ title: Ný þingmaður.
89
+ assembly_user_roles:
90
+ edit:
91
+ update: Uppfæra
92
+ new:
93
+ create: Búa til
94
+ menu:
95
+ assemblies: Þing
96
+ assemblies_submenu:
97
+ assembly_members: Meðlimir
98
+ attachment_files: Skrár
99
+ attachments: Viðhengi
100
+ categories: Flokkar
101
+ components: Hluti
102
+ info: Upplýsingar
103
+ moderations: Moderations
104
+ models:
105
+ assemblies_types:
106
+ fields:
107
+ created_at: Búið til á
108
+ title: Titill
109
+ assembly:
110
+ fields:
111
+ created_at: Búið til á
112
+ private: Einkamál
113
+ promoted: Hápunktur
114
+ published: Published
115
+ title: Titill
116
+ name: Þing
117
+ assembly_member:
118
+ fields:
119
+ ceased_date: Hættudagur
120
+ designation_date: Tilnefningardagur
121
+ full_name: Nafn
122
+ position: Staða
123
+ name: Meðlimur
124
+ positions:
125
+ other: Annað
126
+ president: Forseti
127
+ secretary: Ritari
128
+ vice_president: Varaforseti
129
+ assembly_user_role:
130
+ fields:
131
+ email: Email
132
+ name: Nafn
133
+ role: Hlutverk
134
+ roles:
135
+ admin: Stjórnandi
136
+ collaborator: Samstarfsaðili
137
+ moderator: Moderator
138
+ titles:
139
+ assemblies: Þing
140
+ admin_log:
141
+ assembly:
142
+ create: "%{user_name} búið til %{resource_name} samkoma"
143
+ publish: "%{user_name} birt %{resource_name} samkoma"
144
+ unpublish: "%{user_name} unpublished %{resource_name} samkoma"
145
+ update: "%{user_name} uppfært %{resource_name} samkoma"
146
+ assembly_member:
147
+ create: "%{user_name} búið til %{resource_name} meðlim í %{space_name} samkoma"
148
+ delete: "%{user_name} eyddi %{resource_name} meðliminum úr %{space_name} samkoma"
149
+ update: "%{user_name} uppfært %{resource_name} meðlimur í %{space_name} samkoma"
150
+ assembly_user_role:
151
+ create: "%{user_name} boðið %{resource_name} í %{space_name} samkoma"
152
+ update: "%{user_name} breytti hlutverki %{resource_name} í %{space_name} samkoma"
153
+ assemblies:
154
+ admin:
155
+ assemblies:
156
+ form:
157
+ select_a_created_by: Veldu búið til af
158
+ select_an_area: Veldu svæði
159
+ select_an_assembly_type: Veldu gerð samsetningar
160
+ slug_help: 'Vefslóðir eru notaðir til að búa til slóðir sem benda til þessa samkomu. Aðeins viðurkennir stafir, tölur og bindur og verður að byrja með stafi. Dæmi: %{url}'
161
+ social_handlers: Félagsleg
162
+ title: Almennar upplýsingar
163
+ assemblies_types:
164
+ form:
165
+ title: Titill
166
+ assembly_copies:
167
+ form:
168
+ slug_help: 'Vefslóðir eru notaðir til að búa til slóðir sem benda til þessa samkomu. Aðeins viðurkennir stafir, tölur og bindur og verður að byrja með stafi. Dæmi: %{url}'
169
+ assembly_members:
170
+ form:
171
+ select_a_position: Veldu stöðu
172
+ index:
173
+ filter:
174
+ all: Allt
175
+ ceased: Hætt
176
+ not_ceased: Ekki hætt
177
+ filter_by: Sía eftir
178
+ search: Leita
179
+ assembly_members:
180
+ index:
181
+ members: Meðlimir
182
+ assembly_types:
183
+ commission: Nefndin
184
+ consultative_advisory: Ráðgjafar / ráðgjafar
185
+ executive: Framkvæmdastjóri
186
+ government: Ríkisstjórn
187
+ others: Aðrir
188
+ participatory: Þátttaka
189
+ working_group: Vinnuhópur
190
+ created_by:
191
+ city_council: Borgarstjórn
192
+ others: Aðrir
193
+ public: Opinber
194
+ index:
195
+ title: Þing
196
+ pages:
197
+ home:
198
+ highlighted_assemblies:
199
+ active_assemblies: Virkir þættir
200
+ see_all_assemblies: Sjá allar þingmenn
201
+ show:
202
+ area: Svæði
203
+ assembly_type: Samsetning gerð
204
+ children: Þing
205
+ closing_date: Lokadagur
206
+ composition: Samsetning
207
+ created_by: Búið til af
208
+ creation_date: Dagsetning búin til
209
+ duration: Lengd
210
+ included_at: Innifalið á
211
+ indefinite_duration: Óákveðinn
212
+ internal_organisation: Innri skipulagning
213
+ is_transparent:
214
+ 'false': ógagnsæ
215
+ 'true': gagnsæ
216
+ private_space: Þetta er einkasamkoma
217
+ purpose_of_action: Tilgangur aðgerða
218
+ read_less: Lesa minna
219
+ read_more: Lestu meira
220
+ related_participatory_processes: Svipaðir þátttakandi ferli
221
+ scope: Umfang
222
+ social_networks: Samfélagsmiðlar
223
+ statistics:
224
+ answers_count: Svör
225
+ assemblies_count: Þing
226
+ comments_count: Athugasemdir
227
+ debates_count: Umræður
228
+ endorsements_count: Áritanir
229
+ headline: Virkni
230
+ meetings_count: Fundir
231
+ pages_count: Síður
232
+ projects_count: Verkefni
233
+ proposals_count: Tillögur
234
+ results_count: Niðurstöður
235
+ surveys_count: Kannanir
236
+ users_count: Þátttakendur
237
+ assembly_members:
238
+ index:
239
+ title: Meðlimir
240
+ log:
241
+ value_types:
242
+ assembly_presenter:
243
+ not_found: 'Safnið fannst ekki í gagnagrunninum (ID: %{id})'
244
+ menu:
245
+ assemblies: Þing
246
+ errors:
247
+ messages:
248
+ cannot_be_blank: Ekki er hægt að eyða
249
+ layouts:
250
+ decidim:
251
+ assemblies:
252
+ assembly:
253
+ take_part: Taka þátt
254
+ index:
255
+ promoted_assemblies: Hápunktar þingsins
256
+ promoted_assembly:
257
+ more_info: Meiri upplýsingar
258
+ take_part: Taka þátt
259
+ assembly_navigation:
260
+ assembly_menu_item: Samkoma
261
+ assembly_widgets:
262
+ show:
263
+ take_part: Taka þátt