decidim-elections 0.31.1 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/packs/entrypoints/decidim_elections.scss +2 -2
- data/app/packs/entrypoints/decidim_elections_admin.scss +1 -1
- data/app/packs/src/decidim/elections/admin/election_form.js +1 -0
- data/app/views/decidim/elections/elections/index.html.erb +10 -7
- data/config/locales/bg.yml +5 -0
- data/config/locales/ca-IT.yml +6 -1
- data/config/locales/ca.yml +6 -1
- data/config/locales/cs.yml +18 -0
- data/config/locales/de.yml +5 -0
- data/config/locales/el.yml +5 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/es-MX.yml +5 -0
- data/config/locales/es-PY.yml +5 -0
- data/config/locales/es.yml +5 -0
- data/config/locales/eu.yml +5 -0
- data/config/locales/fi-plain.yml +5 -0
- data/config/locales/fi.yml +5 -0
- data/config/locales/fr-CA.yml +17 -0
- data/config/locales/fr.yml +17 -0
- data/config/locales/hu.yml +5 -0
- data/config/locales/it.yml +5 -0
- data/config/locales/ja.yml +4 -0
- data/config/locales/lt.yml +7 -0
- data/config/locales/lv.yml +6 -0
- data/config/locales/nl.yml +5 -0
- data/config/locales/no.yml +5 -0
- data/config/locales/pl.yml +7 -0
- data/config/locales/pt-BR.yml +27 -0
- data/config/locales/pt.yml +5 -0
- data/config/locales/ro-RO.yml +6 -0
- data/config/locales/sv.yml +101 -32
- data/config/locales/tr-TR.yml +5 -0
- data/config/locales/zh-CN.yml +4 -0
- data/config/locales/zh-TW.yml +4 -0
- data/lib/decidim/elections/component.rb +12 -0
- data/lib/decidim/elections/engine.rb +4 -0
- data/lib/decidim/elections/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c689a34122245a91357ac66c1eb7fb5aa9550564bbc8a2aa8aeccb7ec1696d63
|
|
4
|
+
data.tar.gz: 6c2dfe51c4dd3b4d52f026465dc84076a5a933deb7e217fe92359c1cf1c2b030
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab26f54acf5743b88c72453a54ee7c0e112b8021fe96484e43145c167eccaf356f4dc75746779cf0a824f61bded4d4f9bfe8e4e025b081f04322482c09d4c683
|
|
7
|
+
data.tar.gz: 7c6716540514d75c92aea80f3deccd16f650c584802c935d305b0a93f543a00235aaac7e2f8f3959a2d280a971ac232b13b42ecde5fcfc960a6806e73c46a945
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use "stylesheets/decidim/elections/elections";
|
|
2
|
+
@use "stylesheets/decidim/elections/live_results_update";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "stylesheets/decidim/elections/live_results_update";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<% add_decidim_meta_tags(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
description: translated_attribute(current_participatory_space.try(:short_description) || current_participatory_space.description),
|
|
3
|
+
title: t(
|
|
4
|
+
"decidim.components.pagination.page_title",
|
|
5
|
+
component_name: component_name,
|
|
6
|
+
current_page: paginated_elections.current_page,
|
|
7
|
+
total_pages: paginated_elections.total_pages
|
|
8
|
+
),
|
|
9
|
+
url: elections_url,
|
|
10
|
+
resource: current_component
|
|
11
|
+
) %>
|
|
9
12
|
|
|
10
13
|
<% append_stylesheet_pack_tag "decidim_elections", media: "all" %>
|
|
11
14
|
|
data/config/locales/bg.yml
CHANGED
data/config/locales/ca-IT.yml
CHANGED
|
@@ -5,6 +5,11 @@ ca-IT:
|
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Arxiu
|
|
7
7
|
remove_all: Eliminar totes les dades del cens actual
|
|
8
|
+
activerecord:
|
|
9
|
+
models:
|
|
10
|
+
decidim/elections/election:
|
|
11
|
+
one: Votació
|
|
12
|
+
other: Votacions
|
|
8
13
|
decidim:
|
|
9
14
|
admin:
|
|
10
15
|
menu:
|
|
@@ -246,7 +251,7 @@ ca-IT:
|
|
|
246
251
|
active_voting_until: 'Votació activa fins: %{end_date}'
|
|
247
252
|
edit_vote_button: Edita el vot
|
|
248
253
|
vote_button: Votar
|
|
249
|
-
voted: Ja has votat. Pots tornar a votar, això esborrarà el teu vot anterior i, només
|
|
254
|
+
voted: Ja has votat. Pots tornar a votar, això esborrarà el teu vot anterior i, només es comptabilitzarà la teva última votació.
|
|
250
255
|
votes_count:
|
|
251
256
|
one: 1 vot
|
|
252
257
|
other: "%{count} vots"
|
data/config/locales/ca.yml
CHANGED
|
@@ -5,6 +5,11 @@ ca:
|
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Arxiu
|
|
7
7
|
remove_all: Eliminar totes les dades del cens actual
|
|
8
|
+
activerecord:
|
|
9
|
+
models:
|
|
10
|
+
decidim/elections/election:
|
|
11
|
+
one: Votació
|
|
12
|
+
other: Votacions
|
|
8
13
|
decidim:
|
|
9
14
|
admin:
|
|
10
15
|
menu:
|
|
@@ -246,7 +251,7 @@ ca:
|
|
|
246
251
|
active_voting_until: 'Votació activa fins: %{end_date}'
|
|
247
252
|
edit_vote_button: Edita el vot
|
|
248
253
|
vote_button: Votar
|
|
249
|
-
voted: Ja has votat. Pots tornar a votar, això esborrarà el teu vot anterior i, només
|
|
254
|
+
voted: Ja has votat. Pots tornar a votar, això esborrarà el teu vot anterior i, només es comptabilitzarà la teva última votació.
|
|
250
255
|
votes_count:
|
|
251
256
|
one: 1 vot
|
|
252
257
|
other: "%{count} vots"
|
data/config/locales/cs.yml
CHANGED
|
@@ -4,6 +4,13 @@ cs:
|
|
|
4
4
|
attributes:
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Soubor
|
|
7
|
+
activerecord:
|
|
8
|
+
models:
|
|
9
|
+
decidim/elections/election:
|
|
10
|
+
one: Volby
|
|
11
|
+
few: Voleb
|
|
12
|
+
many: Voleb
|
|
13
|
+
other: Volby
|
|
7
14
|
decidim:
|
|
8
15
|
admin:
|
|
9
16
|
menu:
|
|
@@ -66,13 +73,24 @@ cs:
|
|
|
66
73
|
questions_table:
|
|
67
74
|
answer: Odpovědi
|
|
68
75
|
percentage: Procenta
|
|
76
|
+
total: Celkem
|
|
69
77
|
votes: Hlasy
|
|
78
|
+
votes_count:
|
|
79
|
+
one: 1 hlas
|
|
80
|
+
few: "%{count} hlasy"
|
|
81
|
+
many: "%{count} hlasů"
|
|
82
|
+
other: "%{count} hlasů"
|
|
70
83
|
results:
|
|
71
84
|
not_started: Volba ještě nezačala.
|
|
85
|
+
per_question_waiting: Hlasování ještě není povoleno pro žádné otázky. Účastníci uvidí zprávu "Čekání na další otázku", dokud se neaktivujete alespoň jednou.
|
|
72
86
|
publish_button: Publikovat výsledky
|
|
87
|
+
results_availability:
|
|
88
|
+
after_end: Všechny výsledky můžete publikovat po ukončení voleb. Výsledky zůstanou skryté, dokud je nezveřejníte ručně.
|
|
89
|
+
per_question: Musíte povolit hlasování a ručně publikovat výsledky pro každou otázku jednotlivě.
|
|
73
90
|
start_question_button: Povolit hlasování
|
|
74
91
|
title: Výsledky
|
|
75
92
|
status:
|
|
93
|
+
census: 'Registr obyvatel:'
|
|
76
94
|
results_availability:
|
|
77
95
|
real_time: Výsledky jsou dostupné v reálném čase
|
|
78
96
|
title: Stav voleb
|
data/config/locales/de.yml
CHANGED
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/eu.yml
CHANGED
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr-CA.yml
CHANGED
|
@@ -5,6 +5,11 @@ fr-CA:
|
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Fichier
|
|
7
7
|
remove_all: Supprimer toutes les données de recensement actuelles
|
|
8
|
+
activerecord:
|
|
9
|
+
models:
|
|
10
|
+
decidim/elections/election:
|
|
11
|
+
one: Élection
|
|
12
|
+
other: Élections
|
|
8
13
|
decidim:
|
|
9
14
|
admin:
|
|
10
15
|
menu:
|
|
@@ -53,24 +58,34 @@ fr-CA:
|
|
|
53
58
|
success: Recensement mis à jour avec succès.
|
|
54
59
|
dashboard:
|
|
55
60
|
calendar:
|
|
61
|
+
end_at: 'Heure de fin:'
|
|
56
62
|
published_results_at: Résultats publiés à
|
|
63
|
+
start_at: 'Heure de début:'
|
|
64
|
+
title: Calendrier
|
|
57
65
|
census:
|
|
58
66
|
title: Recensement
|
|
59
67
|
main:
|
|
60
68
|
labels:
|
|
69
|
+
calendar: Calendrier
|
|
61
70
|
description: Description
|
|
71
|
+
image: Galerie d'images
|
|
72
|
+
results: Disponibilité des résultats
|
|
73
|
+
title: Titre
|
|
74
|
+
publish_confirm: Êtes-vous sûr(e) de vouloir publier cette élection ?
|
|
62
75
|
questions:
|
|
63
76
|
labels:
|
|
64
77
|
answers: Réponses
|
|
65
78
|
title: Questions
|
|
66
79
|
questions_table:
|
|
67
80
|
answer: Réponses
|
|
81
|
+
percentage: Pourcentage
|
|
68
82
|
total: Total
|
|
69
83
|
votes: Votes
|
|
70
84
|
votes_count:
|
|
71
85
|
one: 1 vote
|
|
72
86
|
other: "%{count} votes"
|
|
73
87
|
results:
|
|
88
|
+
not_started: L'élection n'a pas encore commencé.
|
|
74
89
|
publish_button: Publier les résultats
|
|
75
90
|
title: Résultats
|
|
76
91
|
status:
|
|
@@ -86,6 +101,7 @@ fr-CA:
|
|
|
86
101
|
success: Élection créée avec succès.
|
|
87
102
|
dashboard:
|
|
88
103
|
subtitle: 'Étape finale: éxaminez vos détails. Des modifications peuvent toujours être apportées avant de publier. Une fois publiée, vous serez toujours en mesure de mettre à jour la description de l''élection.'
|
|
104
|
+
title: Tableau de bord
|
|
89
105
|
edit:
|
|
90
106
|
title: Modifier l'élection
|
|
91
107
|
form:
|
|
@@ -134,6 +150,7 @@ fr-CA:
|
|
|
134
150
|
statuses:
|
|
135
151
|
publish_results:
|
|
136
152
|
invalid: Un problème est survenu lors de la publication des résultats.
|
|
153
|
+
unknown: État Inconnu
|
|
137
154
|
admin_log:
|
|
138
155
|
election:
|
|
139
156
|
create: "%{user_name} a créé l'élection %{resource_name} dans %{space_name}"
|
data/config/locales/fr.yml
CHANGED
|
@@ -5,6 +5,11 @@ fr:
|
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Fichier
|
|
7
7
|
remove_all: Supprimer toutes les données de recensement actuelles
|
|
8
|
+
activerecord:
|
|
9
|
+
models:
|
|
10
|
+
decidim/elections/election:
|
|
11
|
+
one: Élection
|
|
12
|
+
other: Élections
|
|
8
13
|
decidim:
|
|
9
14
|
admin:
|
|
10
15
|
menu:
|
|
@@ -53,24 +58,34 @@ fr:
|
|
|
53
58
|
success: Recensement mis à jour avec succès.
|
|
54
59
|
dashboard:
|
|
55
60
|
calendar:
|
|
61
|
+
end_at: 'Heure de fin:'
|
|
56
62
|
published_results_at: Résultats publiés à
|
|
63
|
+
start_at: 'Heure de début:'
|
|
64
|
+
title: Calendrier
|
|
57
65
|
census:
|
|
58
66
|
title: Recensement
|
|
59
67
|
main:
|
|
60
68
|
labels:
|
|
69
|
+
calendar: Calendrier
|
|
61
70
|
description: Description
|
|
71
|
+
image: Galerie d'images
|
|
72
|
+
results: Disponibilité des résultats
|
|
73
|
+
title: Titre
|
|
74
|
+
publish_confirm: Êtes-vous sûr(e) de vouloir publier cette élection ?
|
|
62
75
|
questions:
|
|
63
76
|
labels:
|
|
64
77
|
answers: Réponses
|
|
65
78
|
title: Questions
|
|
66
79
|
questions_table:
|
|
67
80
|
answer: Réponses
|
|
81
|
+
percentage: Pourcentage
|
|
68
82
|
total: Total
|
|
69
83
|
votes: Votes
|
|
70
84
|
votes_count:
|
|
71
85
|
one: 1 vote
|
|
72
86
|
other: "%{count} votes"
|
|
73
87
|
results:
|
|
88
|
+
not_started: L'élection n'a pas encore commencé.
|
|
74
89
|
publish_button: Publier les résultats
|
|
75
90
|
title: Résultats
|
|
76
91
|
status:
|
|
@@ -86,6 +101,7 @@ fr:
|
|
|
86
101
|
success: Élection créée avec succès.
|
|
87
102
|
dashboard:
|
|
88
103
|
subtitle: 'Étape finale: éxaminez vos détails. Des modifications peuvent toujours être apportées avant de publier. Une fois publiée, vous serez toujours en mesure de mettre à jour la description de l''élection.'
|
|
104
|
+
title: Tableau de bord
|
|
89
105
|
edit:
|
|
90
106
|
title: Modifier l'élection
|
|
91
107
|
form:
|
|
@@ -134,6 +150,7 @@ fr:
|
|
|
134
150
|
statuses:
|
|
135
151
|
publish_results:
|
|
136
152
|
invalid: Un problème est survenu lors de la publication des résultats.
|
|
153
|
+
unknown: État Inconnu
|
|
137
154
|
admin_log:
|
|
138
155
|
election:
|
|
139
156
|
create: "%{user_name} a créé l'élection %{resource_name} dans %{space_name}"
|
data/config/locales/hu.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/lt.yml
CHANGED
data/config/locales/lv.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
|
@@ -5,6 +5,11 @@ pt-BR:
|
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Arquivo
|
|
7
7
|
remove_all: Remover todos os dados do censo atual
|
|
8
|
+
activerecord:
|
|
9
|
+
models:
|
|
10
|
+
decidim/elections/election:
|
|
11
|
+
one: Eleição
|
|
12
|
+
other: Eleições
|
|
8
13
|
decidim:
|
|
9
14
|
admin:
|
|
10
15
|
menu:
|
|
@@ -172,6 +177,16 @@ pt-BR:
|
|
|
172
177
|
invalid: Houve um problema ao iniciar a eleição.
|
|
173
178
|
success: Eleição iniciada com sucesso.
|
|
174
179
|
unknown: Status desconhecido
|
|
180
|
+
admin_log:
|
|
181
|
+
election:
|
|
182
|
+
create: "%{user_name} criou a eleição em %{resource_name} em %{space_name}"
|
|
183
|
+
publish: "%{user_name} publicou a eleição em %{resource_name} em %{space_name}"
|
|
184
|
+
restore: "%{user_name} restaurou a eleição em %{resource_name} em %{space_name}"
|
|
185
|
+
soft_delete: "%{user_name} moveu a eleição %{resource_name} em %{space_name} para a lixeira"
|
|
186
|
+
unpublish: "%{user_name} não publicou a eleição em %{resource_name} em %{space_name}"
|
|
187
|
+
update: "%{user_name} atualizou a eleição em %{resource_name} em %{space_name}"
|
|
188
|
+
question:
|
|
189
|
+
update: "%{user_name} atualizou as questões da eleição %{resource_name}"
|
|
175
190
|
censuses:
|
|
176
191
|
census_ready_html: Os dados do censo são enviados e preparados para seu uso na eleição <b>%{election_title}</b>.
|
|
177
192
|
census_size_html:
|
|
@@ -282,21 +297,33 @@ pt-BR:
|
|
|
282
297
|
check_census:
|
|
283
298
|
access: Acesso
|
|
284
299
|
election_not_open: A eleição ainda não foi aberta. Por favor, verifique as datas e tente novamente.
|
|
300
|
+
failed: A sua identidade não pôde ser verificada. Por favor, verifique as informações fornecidas e tente novamente.
|
|
285
301
|
form_title: Verifique sua identidade
|
|
302
|
+
invalid: Usuário não encontrado no censo.
|
|
286
303
|
confirm:
|
|
304
|
+
cast_vote: Transmitir voto
|
|
287
305
|
edit_vote: Edite seu voto
|
|
306
|
+
not_answered: Você não respondeu a esta pergunta.
|
|
288
307
|
title: Confirme seu voto
|
|
308
|
+
not_authorized: Você não está autorizado a votar nesta eleição.
|
|
289
309
|
question:
|
|
290
310
|
back: Voltar
|
|
291
311
|
cast_vote: Transmitir voto
|
|
292
312
|
next: Próxima
|
|
293
313
|
receipt:
|
|
314
|
+
description: Você pode votar novamente a qualquer momento enquanto o período de votação estiver aberto. O seu voto anterior será substituído pelo novo.
|
|
294
315
|
edit_vote: Edite seu voto
|
|
295
316
|
exit_button: Sair da cabine de votação
|
|
296
317
|
title: Seus votos foram enviados com sucesso
|
|
318
|
+
metadata:
|
|
319
|
+
progress:
|
|
320
|
+
published_results: 'Resultados publicados: %{end_date}'
|
|
297
321
|
statistics:
|
|
298
322
|
elections_count: Eleições
|
|
299
323
|
layouts:
|
|
300
324
|
decidim:
|
|
301
325
|
election_votes_header:
|
|
302
326
|
exit: Fechado
|
|
327
|
+
time:
|
|
328
|
+
formats:
|
|
329
|
+
short_with_time: "%b %-d, %Y %-I:%M%p"
|
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
data/config/locales/sv.yml
CHANGED
|
@@ -4,21 +4,30 @@ sv:
|
|
|
4
4
|
attributes:
|
|
5
5
|
token_csv:
|
|
6
6
|
file: Fil
|
|
7
|
-
remove_all: Ta bort
|
|
7
|
+
remove_all: Ta bort aktuell röstlängd
|
|
8
|
+
activerecord:
|
|
9
|
+
models:
|
|
10
|
+
decidim/elections/election:
|
|
11
|
+
one: Val
|
|
12
|
+
other: Val
|
|
8
13
|
decidim:
|
|
9
14
|
admin:
|
|
10
15
|
menu:
|
|
11
16
|
elections_menu:
|
|
17
|
+
basic_elections: Grundläggande
|
|
12
18
|
election_census: Census
|
|
13
|
-
election_dashboard:
|
|
19
|
+
election_dashboard: Översikt
|
|
14
20
|
election_questions: Frågor
|
|
21
|
+
tooltips:
|
|
22
|
+
deleted_elections_info: Det går inte att ta bort omröstningen
|
|
23
|
+
edit_elections_info: Det går inte att redigera omröstningen
|
|
15
24
|
components:
|
|
16
25
|
elections:
|
|
17
26
|
actions:
|
|
18
27
|
create: Skapa
|
|
19
28
|
destroy: Radera
|
|
20
29
|
update: Uppdatera
|
|
21
|
-
name:
|
|
30
|
+
name: Omröstningar
|
|
22
31
|
settings:
|
|
23
32
|
global:
|
|
24
33
|
announcement: Meddelande
|
|
@@ -26,18 +35,19 @@ sv:
|
|
|
26
35
|
announcement: Meddelande
|
|
27
36
|
elections:
|
|
28
37
|
actions:
|
|
29
|
-
confirm_delete_election: Är du säker på att du vill
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
confirm_delete_election: Är du säker på att du vill ta bort omröstningen?
|
|
39
|
+
confirm_unpublish_election: Är du säker på att du vill avpublicera omröstningen?
|
|
40
|
+
deleted_election_info: Borttagna omröstningar visas inte i listan. Du kan se dem genom att klicka på knappen nedan.
|
|
41
|
+
edit: Redigera omröstning
|
|
42
|
+
new: Nytt omröstning
|
|
33
43
|
preview: Förhandsgranska
|
|
34
44
|
title: Åtgärder
|
|
35
|
-
view:
|
|
36
|
-
view_deleted_elections: Visa raderade
|
|
45
|
+
view: Visa omröstning
|
|
46
|
+
view_deleted_elections: Visa raderade omröstningar
|
|
37
47
|
admin:
|
|
38
48
|
census:
|
|
39
49
|
edit:
|
|
40
|
-
choose_census: Välj vilken typ av
|
|
50
|
+
choose_census: Välj vilken typ av röstlängd du vill använda för omröstningen
|
|
41
51
|
created_at: Skapad den
|
|
42
52
|
identifier: Identifierare för användare
|
|
43
53
|
preview:
|
|
@@ -45,64 +55,90 @@ sv:
|
|
|
45
55
|
one: Förhandsgranskningen är begränsad till %{count} post.
|
|
46
56
|
other: Förhandsgranskningen är begränsad till %{count} poster.
|
|
47
57
|
update:
|
|
48
|
-
error: Ett fel uppstod när
|
|
49
|
-
success:
|
|
58
|
+
error: Ett fel uppstod när röstlängden skulle skapas eller sparas.
|
|
59
|
+
success: Röstlängden har uppdaterats.
|
|
50
60
|
dashboard:
|
|
51
61
|
calendar:
|
|
62
|
+
end_at: 'Sluttid:'
|
|
63
|
+
end_election: Avsluta omröstning
|
|
64
|
+
manual_start: Manuell
|
|
52
65
|
published_results_at: Resultat publicerade vid
|
|
66
|
+
start_at: 'Starttid:'
|
|
67
|
+
start_election: Börja omröstning
|
|
68
|
+
title: Kalender
|
|
53
69
|
census:
|
|
54
70
|
title: Census
|
|
55
71
|
main:
|
|
56
72
|
labels:
|
|
73
|
+
calendar: Kalender
|
|
57
74
|
description: Beskrivning
|
|
75
|
+
image: Bildgalleri
|
|
76
|
+
results: Resultat tillgängliga
|
|
77
|
+
title: Titel
|
|
78
|
+
title: Grundläggande
|
|
79
|
+
publish_confirm: Är du säker på att du vill publicera omröstningen?
|
|
58
80
|
questions:
|
|
59
81
|
labels:
|
|
60
82
|
answers: Svar
|
|
83
|
+
limit_info: Den här omröstningen har fler frågor. Förhandsvisningen är begränsad till 3 frågor.
|
|
61
84
|
title: Frågor
|
|
62
85
|
questions_table:
|
|
63
86
|
answer: Svar
|
|
87
|
+
percentage: Procent
|
|
64
88
|
total: Totalt
|
|
65
89
|
votes: Röster
|
|
66
90
|
votes_count:
|
|
67
91
|
one: 1 röst
|
|
68
92
|
other: "%{count} röster"
|
|
69
93
|
results:
|
|
94
|
+
not_started: Omröstningen har inte startat än.
|
|
95
|
+
per_question_waiting: Röstning är ännu inte aktiverad för några frågor. Deltagarna kommer att se ett meddelande "Väntar på nästa fråga" tills du aktiverar minst en.
|
|
70
96
|
publish_button: Publicera resultat
|
|
97
|
+
results_availability:
|
|
98
|
+
after_end: Du kan publicera alla resultat efter omröstningens slut. Resultat kommer att förbli dolda tills du publicerar dem manuellt.
|
|
99
|
+
per_question: Du måste aktivera röstning och manuellt publicera resultat för varje fråga individuellt.
|
|
100
|
+
real_time: Resultatet visas automatiskt under omröstningens gång.
|
|
101
|
+
start_question_button: Aktivera röstning
|
|
71
102
|
title: Resultat
|
|
72
103
|
status:
|
|
73
|
-
census: '
|
|
104
|
+
census: 'Röstlängd:'
|
|
74
105
|
results_availability:
|
|
75
|
-
after_end: Resultat tillgängliga efter
|
|
106
|
+
after_end: Resultat tillgängliga efter omröstningens slut
|
|
76
107
|
per_question: Resultat tillgängliga per fråga
|
|
77
108
|
real_time: Resultat tillgängliga i realtid
|
|
78
109
|
elections:
|
|
79
110
|
create:
|
|
80
|
-
invalid: Det gick inte att skapa
|
|
81
|
-
success:
|
|
111
|
+
invalid: Det gick inte att skapa omröstningen.
|
|
112
|
+
success: Omröstningen skapades framgångsrikt.
|
|
82
113
|
dashboard:
|
|
83
|
-
subtitle: '
|
|
114
|
+
subtitle: 'Sista steg: Granska dina uppgifter. Redigering kan fortfarande göras innan publicering.. När det är publicerat kommer du fortfarande att kunna uppdatera beskrivningen av omröstningen.'
|
|
115
|
+
title: Översikt
|
|
84
116
|
edit:
|
|
85
|
-
title: Redigera
|
|
117
|
+
title: Redigera omröstning
|
|
86
118
|
form:
|
|
87
119
|
add_images: Lägg till bilder
|
|
88
120
|
attachment_legend: Lägg till ett bildgalleri (valfritt)
|
|
89
121
|
basic_title: Grundläggande info
|
|
90
122
|
calendar: Kalender
|
|
91
|
-
calendar_description: Kontrollera att organisationens tidszon är korrekt i organisationsinställningarna. Den aktuella
|
|
123
|
+
calendar_description: Kontrollera att organisationens tidszon är korrekt i organisationsinställningarna. Den aktuella inställningen är %{timezone}.
|
|
92
124
|
edit_attachments: Redigera bilagor
|
|
93
125
|
end_at: Sluttid
|
|
94
|
-
manual_start: Manuell
|
|
126
|
+
manual_start: Manuell start
|
|
95
127
|
publish: Publicera
|
|
96
128
|
results_availability:
|
|
97
|
-
after_end: Efter
|
|
129
|
+
after_end: Efter omröstningens slut
|
|
130
|
+
after_end_help: publicera resultat när omröstningen är klar
|
|
98
131
|
per_question: Fråga för fråga
|
|
132
|
+
per_question_help: hantera röstning manuellt och publicera resultat för varje fråga
|
|
99
133
|
real_time: Direkt
|
|
134
|
+
real_time_help: publicera resultat automatiskt medan omröstningen pågår
|
|
100
135
|
title: Resultat tillgängliga
|
|
136
|
+
save: Spara och fortsätt
|
|
101
137
|
start_at: Starttid
|
|
102
138
|
index:
|
|
103
|
-
title:
|
|
139
|
+
title: Omröstning
|
|
104
140
|
manage_trash:
|
|
105
|
-
title: Borttagna
|
|
141
|
+
title: Borttagna omröstningar
|
|
106
142
|
new:
|
|
107
143
|
title: Nytt val
|
|
108
144
|
publish:
|
|
@@ -117,7 +153,28 @@ sv:
|
|
|
117
153
|
questions:
|
|
118
154
|
edit_questions:
|
|
119
155
|
new_question: Ny fråga
|
|
156
|
+
remove_question_confirm: Är du säker på att du vill ta bort frågan?
|
|
120
157
|
title: Frågor
|
|
158
|
+
form:
|
|
159
|
+
errors:
|
|
160
|
+
at_least_one_question: Det krävs minst en fråga.
|
|
161
|
+
form_description: Frågan måste ha minst två svar för att gå till nästa steg.
|
|
162
|
+
update:
|
|
163
|
+
invalid: Det gick inte att uppdatera frågorna.
|
|
164
|
+
success: Frågorna har uppdaterats.
|
|
165
|
+
statuses:
|
|
166
|
+
enable_voting:
|
|
167
|
+
invalid: Det gick inte att aktivera röstning.
|
|
168
|
+
success: Röstningen har aktiverats.
|
|
169
|
+
end:
|
|
170
|
+
invalid: Det gick inte att avsluta omröstningen.
|
|
171
|
+
success: Omröstningen har avslutats.
|
|
172
|
+
publish_results:
|
|
173
|
+
success: Resultaten har publicerats.
|
|
174
|
+
start:
|
|
175
|
+
invalid: Det gick inte att starta omröstningen.
|
|
176
|
+
success: Omröstningen har startat.
|
|
177
|
+
unknown: Okänd status
|
|
121
178
|
admin_log:
|
|
122
179
|
election:
|
|
123
180
|
create: "%{user_name} Skapade valet %{resource_name} i %{space_name}"
|
|
@@ -126,21 +183,27 @@ sv:
|
|
|
126
183
|
soft_delete: "%{user_name} Flyttade valet %{resource_name} i %{space_name} till papperskorgen"
|
|
127
184
|
unpublish: "%{user_name} Tog bort valet %{resource_name} i %{space_name}"
|
|
128
185
|
update: "%{user_name} Uppdaterade valet %{resource_name} i %{space_name}"
|
|
186
|
+
question:
|
|
187
|
+
update: "%{user_name} uppdaterade frågor för omröstningen %{resource_name}"
|
|
129
188
|
censuses:
|
|
189
|
+
census_ready_html: Röstlängden laddas upp och förbereds för användning i omröstningen <b>%{election_title}</b>.
|
|
190
|
+
census_size_html:
|
|
191
|
+
one: Det finns för närvarande <strong>1</strong> person som kan rösta i den här omröstningen (det kan ändras med en dynamisk röstlängd).
|
|
192
|
+
other: Det finns för närvarande <strong>%{count}</strong> personer som kan rösta i den här omröstningen (det kan ändras med en dynamisk röstlängd).
|
|
130
193
|
internal_users:
|
|
131
194
|
already_have_an_account?: Har du redan ett konto?
|
|
132
195
|
are_you_new?: Ny deltagare?
|
|
133
196
|
info_html: |
|
|
134
|
-
Du kan begränsa deltagandet i
|
|
135
|
-
Observera att deltagarna måste uppfylla valda behörigheter för att kunna rösta. Genom att lämnar alla kryssrutor tomma
|
|
197
|
+
Du kan begränsa deltagandet i omröstningen till deltagare som har behörighet.<br>
|
|
198
|
+
Observera att deltagarna måste uppfylla valda behörigheter för att kunna rösta. Genom att lämnar alla kryssrutor tomma tillåts alla registrerade användare att rösta.
|
|
136
199
|
internal_type_title: Ytterligare behörigheter som krävs för att få rösta (valfritt)
|
|
137
200
|
label: Registrerade deltagare (dynamisk)
|
|
138
|
-
sign_in_description: Logga in för att
|
|
139
|
-
sign_up_description: Skapa ett konto för att rösta
|
|
201
|
+
sign_in_description: Logga in för att rösta
|
|
202
|
+
sign_up_description: Skapa ett konto för att rösta
|
|
140
203
|
internal_users_form:
|
|
141
|
-
authorization_options_invalid: Tyvärr –
|
|
142
|
-
exit_button: Lämna
|
|
143
|
-
invalid: Du har inte behörighet att rösta
|
|
204
|
+
authorization_options_invalid: Tyvärr – du har alla tillstånd som krävs, men en del av dem är inte giltiga för den här omröstningen.
|
|
205
|
+
exit_button: Lämna röstningsbåset
|
|
206
|
+
invalid: Du har inte behörighet att rösta.
|
|
144
207
|
resume_with_method: Återuppta verifieringen med %{name}
|
|
145
208
|
verify_with_method: Verifiera med %{name}
|
|
146
209
|
token_csv:
|
|
@@ -149,9 +212,10 @@ sv:
|
|
|
149
212
|
user@example.org;123456
|
|
150
213
|
user2@example.org;ABCXYZ
|
|
151
214
|
info_html: |
|
|
152
|
-
Måste vara en fil i CSV-format med två kolumner, en med e-postadressen och en annan med värdet av en token som användaren måste
|
|
215
|
+
Måste vara en fil i CSV-format med två kolumner, en med e-postadressen och en annan med värdet av en token som användaren måste visa för att kunna rösta.
|
|
153
216
|
De måste separeras med en semikolon (;)
|
|
154
217
|
label: Oregistrerade deltagare med tokens (fixerade)
|
|
218
|
+
remove_before_upload: Om du vill ladda upp en ny röstlängd måste du först ta bort den befintliga.
|
|
155
219
|
upload_file: Ladda upp fil
|
|
156
220
|
upload_new_census: Ladda upp en CSV-fil
|
|
157
221
|
token_csv_form:
|
|
@@ -174,7 +238,7 @@ sv:
|
|
|
174
238
|
state_values:
|
|
175
239
|
finished: Avslutad
|
|
176
240
|
ongoing: Pågående
|
|
177
|
-
scheduled:
|
|
241
|
+
scheduled: Kommande
|
|
178
242
|
orders:
|
|
179
243
|
end_at: Slutdatum
|
|
180
244
|
label: Sortera efter
|
|
@@ -221,6 +285,8 @@ sv:
|
|
|
221
285
|
not_started: Inte påbörjad
|
|
222
286
|
ongoing: Pågående
|
|
223
287
|
published_results: Publicerade resultat
|
|
288
|
+
scheduled: Planerad
|
|
289
|
+
voting_enabled: Röstning pågår
|
|
224
290
|
votes:
|
|
225
291
|
cast:
|
|
226
292
|
invalid: Det gick inte att registrera din röst. Kontrollera informationen du angav och försök igen.
|
|
@@ -255,3 +321,6 @@ sv:
|
|
|
255
321
|
decidim:
|
|
256
322
|
election_votes_header:
|
|
257
323
|
exit: Stäng
|
|
324
|
+
time:
|
|
325
|
+
formats:
|
|
326
|
+
short_with_time: "%-d %b %Y, %R"
|
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
|
@@ -8,6 +8,18 @@ Decidim.register_component(:elections) do |component|
|
|
|
8
8
|
component.icon_key = "draft-line"
|
|
9
9
|
component.permissions_class_name = "Decidim::Elections::Permissions"
|
|
10
10
|
|
|
11
|
+
component.on(:publish) do |instance|
|
|
12
|
+
Decidim::Elections::Election.where(component: instance).find_in_batches(batch_size: 100) do |batch|
|
|
13
|
+
Decidim::UpdateSearchIndexesJob.perform_later(batch)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
component.on(:unpublish) do |instance|
|
|
18
|
+
Decidim::Elections::Election.where(component: instance).find_in_batches(batch_size: 100) do |batch|
|
|
19
|
+
Decidim::RemoveSearchIndexesJob.perform_later(batch)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
11
23
|
component.actions = %w()
|
|
12
24
|
|
|
13
25
|
component.on(:before_destroy) do |instance|
|
|
@@ -27,6 +27,10 @@ module Decidim
|
|
|
27
27
|
get "/", to: redirect("elections", status: 301)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
initializer "decidim_elections.register_icons" do
|
|
31
|
+
Decidim.icons.register(name: "Decidim::Elections::Election", icon: "file-paper-2-line", description: "Elections", category: "activity", engine: :elections)
|
|
32
|
+
end
|
|
33
|
+
|
|
30
34
|
initializer "decidim_elections.add_cells_view_paths" do
|
|
31
35
|
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Elections::Engine.root}/app/cells")
|
|
32
36
|
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Elections::Engine.root}/app/views") # for partials
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-elections
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.31.
|
|
4
|
+
version: 0.31.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Vergés
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: decidim-admin
|
|
@@ -16,84 +16,84 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.31.
|
|
19
|
+
version: 0.31.2
|
|
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.31.
|
|
26
|
+
version: 0.31.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: decidim-core
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.31.
|
|
33
|
+
version: 0.31.2
|
|
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.31.
|
|
40
|
+
version: 0.31.2
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: decidim-forms
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.31.
|
|
47
|
+
version: 0.31.2
|
|
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.31.
|
|
54
|
+
version: 0.31.2
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: decidim-admin
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - '='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.31.
|
|
61
|
+
version: 0.31.2
|
|
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.31.
|
|
68
|
+
version: 0.31.2
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: decidim-dev
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - '='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.31.
|
|
75
|
+
version: 0.31.2
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - '='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.31.
|
|
82
|
+
version: 0.31.2
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: decidim-participatory_processes
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - '='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.31.
|
|
89
|
+
version: 0.31.2
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - '='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.31.
|
|
96
|
+
version: 0.31.2
|
|
97
97
|
description: A module that aims to provide a set of tools to create elections in Decidim.
|
|
98
98
|
email:
|
|
99
99
|
- ivan@pokecode.net
|