decidim-sortitions 0.27.2 → 0.27.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/sortitions/sortition_m_cell.rb +1 -1
- data/app/views/decidim/sortitions/admin/sortitions/_form.html.erb +2 -2
- data/app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb +2 -1
- data/app/views/decidim/sortitions/admin/sortitions/edit.html.erb +2 -1
- data/app/views/decidim/sortitions/admin/sortitions/index.html.erb +1 -0
- data/app/views/decidim/sortitions/admin/sortitions/new.html.erb +1 -0
- data/app/views/decidim/sortitions/admin/sortitions/show.html.erb +1 -0
- data/app/views/decidim/sortitions/sortitions/_tags.html.erb +3 -3
- data/app/views/decidim/sortitions/sortitions/show.html.erb +1 -1
- data/config/environment.rb +0 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/el.yml +5 -0
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +70 -73
- data/config/locales/fa-IR.yml +1 -0
- data/config/locales/kaa.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- data/config/locales/ro-RO.yml +1 -0
- data/config/locales/zh-TW.yml +144 -0
- data/db/migrate/20181017110803_make_sortitions_authors_polymorphic.rb +20 -9
- data/lib/decidim/sortitions/version.rb +1 -1
- metadata +19 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 074e2509c41ebe41cf98ac0492fe2dedab356bf835858a155fb50d7dcc4f9785
|
4
|
+
data.tar.gz: 8a64a92fd78a6790744bedbe39c5194068a71a96e33a11ae3ade1ede5f9239e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37a6cb3e8ed1bfdddba0405fb78965cc40d7858ad632a065678cec74f026f83b8a15b804abe6dcd4bd639c797ec6ae0e7df8d68ba413395b9a723613699c1c93
|
7
|
+
data.tar.gz: 74c61a532bf9688ba8608e0e1ec608bb4409e7ce65e1dd0ec3ed23a35d1e1f9b78dadb4dd73928799d0057006ccfa55acdc69f3b92b22ceceb3159db67da3b88
|
@@ -46,7 +46,7 @@ module Decidim
|
|
46
46
|
# find the opening `<p>` tag and include the badge right after it. This
|
47
47
|
# makes the layout look good.
|
48
48
|
def description
|
49
|
-
text = decidim_sanitize_editor(translated_attribute(model.additional_info))
|
49
|
+
text = decidim_sanitize_editor(translated_attribute(model.additional_info), strip_tags: true)
|
50
50
|
text.sub!(/<p>/, "<p>#{render :badge}")
|
51
51
|
html_truncate(text, length: 100)
|
52
52
|
end
|
@@ -26,11 +26,11 @@
|
|
26
26
|
</div>
|
27
27
|
|
28
28
|
<div class="columns xlarge-12">
|
29
|
-
<%= form.translated :editor, :witnesses,
|
29
|
+
<%= form.translated :editor, :witnesses, lines: 10, toolbar: :content %>
|
30
30
|
</div>
|
31
31
|
|
32
32
|
<div class="columns xlarge-12">
|
33
|
-
<%= form.translated :editor, :additional_info,
|
33
|
+
<%= form.translated :editor, :additional_info, lines: 10 %>
|
34
34
|
</div>
|
35
35
|
|
36
36
|
<div class="columns xlarge-2">
|
@@ -1,3 +1,4 @@
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
1
2
|
<h2 class="process-title-summary"><%= t ".title" %></h2>
|
2
3
|
|
3
4
|
<%= decidim_form_for(@form, html: { class: "form confirm_destroy_sortition" }, method: :delete) do |form| %>
|
@@ -9,7 +10,7 @@
|
|
9
10
|
<div class="card-section">
|
10
11
|
<div class="row">
|
11
12
|
<div class="columns xlarge-12">
|
12
|
-
<%= form.translated :editor, :cancel_reason,
|
13
|
+
<%= form.translated :editor, :cancel_reason, lines: 10, toolbar: :content %>
|
13
14
|
</div>
|
14
15
|
</div>
|
15
16
|
</div>
|
@@ -1,3 +1,4 @@
|
|
1
|
+
<% add_decidim_page_title(translated_attribute(sortition.title)) %>
|
1
2
|
<h2 class="process-title-summary">
|
2
3
|
<%= decidim_html_escape(translated_attribute(sortition.title)) %>
|
3
4
|
</h2>
|
@@ -15,7 +16,7 @@
|
|
15
16
|
</div>
|
16
17
|
|
17
18
|
<div class="columns xlarge-12">
|
18
|
-
<%= form.translated :editor, :additional_info,
|
19
|
+
<%= form.translated :editor, :additional_info, lines: 10 %>
|
19
20
|
</div>
|
20
21
|
</div>
|
21
22
|
</div>
|
@@ -2,15 +2,15 @@
|
|
2
2
|
<ul class="tags tags--sortition">
|
3
3
|
<li>
|
4
4
|
<%= link_to t("filters.active", scope: "decidim.sortitions.sortitions"),
|
5
|
-
sortitions_path(filter: {
|
5
|
+
sortitions_path(filter: { with_any_state: "active" }) unless sortition.cancelled? %>
|
6
6
|
|
7
7
|
<%= link_to t("filters.cancelled", scope: "decidim.sortitions.sortitions"),
|
8
|
-
sortitions_path(filter: {
|
8
|
+
sortitions_path(filter: { with_any_state: "cancelled" }) if sortition.cancelled? %>
|
9
9
|
</li>
|
10
10
|
|
11
11
|
<% if sortition.category.present? %>
|
12
12
|
<li>
|
13
|
-
<%= link_to translated_attribute(sortition.category.name), sortitions_path(filter: {
|
13
|
+
<%= link_to translated_attribute(sortition.category.name), sortitions_path(filter: { with_category: sortition.category.id }) %>
|
14
14
|
</li>
|
15
15
|
<% end %>
|
16
16
|
</ul>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<div class="columns mediumlarge-8 mediumlarge-pull-4">
|
41
41
|
<div class="section">
|
42
|
-
<%=
|
42
|
+
<%= decidim_sanitize_editor_admin translated_attribute sortition.additional_info %>
|
43
43
|
</div>
|
44
44
|
</div>
|
45
45
|
</div>
|
File without changes
|
data/config/locales/de.yml
CHANGED
@@ -77,6 +77,7 @@ de:
|
|
77
77
|
index:
|
78
78
|
title: Sortierungen
|
79
79
|
new:
|
80
|
+
confirm: Durch Drücken des nächsten Knopfes zeichnet Decidim das Datum und die Zeit (mit der Genauigkeit von Sekunden) auf und zusammen mit dem Würfelwurf wird diese Information verwendet, um eine zufällige Auswahl zu erzeugen. Die Aktion ist unumkehrbar. Sobald die Schaltfläche angeklickt wird, wird das Ergebnis dieser Verlosung veröffentlicht, zusammen mit den in diesem Formular eingegebenen Daten und kann nicht geändert werden. Überprüfen Sie deshalb bitte den Inhalt sorgfältig
|
80
81
|
create: Erstellen
|
81
82
|
title: Neue Sortierung
|
82
83
|
show:
|
data/config/locales/el.yml
CHANGED
@@ -20,10 +20,13 @@ el:
|
|
20
20
|
decidim:
|
21
21
|
components:
|
22
22
|
sortitions:
|
23
|
+
actions:
|
24
|
+
comment: Σχόλιο
|
23
25
|
name: Κληρώσεις
|
24
26
|
settings:
|
25
27
|
global:
|
26
28
|
comments_enabled: Τα σχόλια ενεργοποιήθηκαν
|
29
|
+
comments_max_length: Μέγιστο μέγεθος σχολίων (Αφήστε το 0 για την προκαθορισμένη τιμή)
|
27
30
|
events:
|
28
31
|
sortitions:
|
29
32
|
sortition_created:
|
@@ -143,3 +146,5 @@ el:
|
|
143
146
|
count:
|
144
147
|
one: 1 κλήρωση
|
145
148
|
other: "%{count} κληρώσεις"
|
149
|
+
statistics:
|
150
|
+
sortitions_count: Κληρώσεις
|
data/config/locales/es.yml
CHANGED
@@ -72,7 +72,7 @@ es:
|
|
72
72
|
update: Actualizar
|
73
73
|
form:
|
74
74
|
all_categories: Todas las categorias
|
75
|
-
select_proposal_component:
|
75
|
+
select_proposal_component: Selecciona el conjunto de propuestas
|
76
76
|
title: Nuevo sorteo para propuestas
|
77
77
|
index:
|
78
78
|
title: Sorteos
|
data/config/locales/eu.yml
CHANGED
@@ -3,148 +3,145 @@ eu:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
sortition:
|
6
|
-
additional_info:
|
7
|
-
decidim_category_id:
|
8
|
-
decidim_proposals_component_id:
|
9
|
-
dice:
|
10
|
-
target_items:
|
6
|
+
additional_info: Zozketari buruzko informazioa
|
7
|
+
decidim_category_id: Zozketatu nahi dituzun proposamenen taldearen kategoriak
|
8
|
+
decidim_proposals_component_id: Proposamen taldea
|
9
|
+
dice: Dadoen emaitza. Bota 6 aldeko dado bat edo bilatu beste eraren bat 1etik 6ra bitarteko ausazko zenbaki bat sortzeko eta sartu hemen zenbaki hori hainbat lekukoren aurrean. Horrek emaitzen ausazkotasunaren kalitatea eta bermea lagunduko ditu
|
10
|
+
target_items: Aukeratu nahi duzun proposamen kopurua (adierazitako proposamen taldetik zozketaren bidez aukeratu nahi duzun proposamen kopurua ezarri)
|
11
11
|
title: Izenburua
|
12
12
|
witnesses: Lekukoak
|
13
13
|
models:
|
14
|
-
decidim/sortitions/create_sortition_event:
|
14
|
+
decidim/sortitions/create_sortition_event: Zozketa
|
15
15
|
activerecord:
|
16
16
|
models:
|
17
17
|
decidim/sortitions/sortition:
|
18
|
-
one:
|
19
|
-
other:
|
18
|
+
one: Zozketa
|
19
|
+
other: Zozketak
|
20
20
|
decidim:
|
21
21
|
components:
|
22
22
|
sortitions:
|
23
23
|
actions:
|
24
|
-
comment:
|
25
|
-
name:
|
24
|
+
comment: Iruzkina
|
25
|
+
name: Zozketak
|
26
26
|
settings:
|
27
27
|
global:
|
28
28
|
comments_enabled: Iruzkinak gaituta
|
29
|
-
comments_max_length: Iruzkinen gehieneko luzera (utzi 0
|
29
|
+
comments_max_length: Iruzkinen gehieneko luzera (utzi 0 lehenetsitako konfigurazioa uzteko)
|
30
30
|
events:
|
31
31
|
sortitions:
|
32
32
|
sortition_created:
|
33
|
-
email_intro: '"%{resource_title}"
|
34
|
-
email_outro:
|
35
|
-
email_subject:
|
36
|
-
notification_title: <a href="%{resource_path}">%{resource_title}</a>
|
33
|
+
email_intro: '"%{resource_title}" zozketa jarraitzen ari zaren "%{participatory_space_title}" espazioan gehitu da.'
|
34
|
+
email_outro: Jakinarazpen hau jaso duzu "%{participatory_space_title}" jarraitzen ari zarelako. Aurreko estekan sartu jarraitzeari uzteko.
|
35
|
+
email_subject: Zozketa berria gehitu da %{participatory_space_title} espaziora
|
36
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> zozketa %{participatory_space_title} espaziora gehitu da
|
37
37
|
sortitions:
|
38
38
|
admin:
|
39
39
|
actions:
|
40
|
-
destroy:
|
40
|
+
destroy: Zozketa bertan behera utzi
|
41
41
|
edit: Editatu
|
42
|
-
new:
|
43
|
-
show:
|
42
|
+
new: Zozketa berria
|
43
|
+
show: Zozketaren xehetasunak
|
44
44
|
models:
|
45
45
|
sortition:
|
46
46
|
fields:
|
47
47
|
category: Kategoria
|
48
48
|
created_at: Sortze data
|
49
|
-
decidim_proposals_component:
|
50
|
-
dice:
|
49
|
+
decidim_proposals_component: Proposamenen osagaia
|
50
|
+
dice: Dadoa
|
51
51
|
reference: Erreferentzia
|
52
|
-
request_timestamp:
|
53
|
-
seed:
|
52
|
+
request_timestamp: Zozketa-denbora
|
53
|
+
seed: Hazia
|
54
54
|
target_items: Aukeratutako elementuak
|
55
55
|
title: Izenburua
|
56
56
|
name:
|
57
|
-
one:
|
58
|
-
other:
|
57
|
+
one: Zozketa
|
58
|
+
other: Zozketak
|
59
59
|
sortitions:
|
60
60
|
confirm_destroy:
|
61
|
-
confirm_destroy: Ziur al zaude hau
|
62
|
-
destroy:
|
63
|
-
title:
|
61
|
+
confirm_destroy: Ziur al zaude zozketa hau bertan behera utzi nahi duzula?
|
62
|
+
destroy: Zozketa bertan behera utzi
|
63
|
+
title: Zozketa bertan behera utzi
|
64
64
|
create:
|
65
|
-
error:
|
66
|
-
success:
|
65
|
+
error: Arazo bat gertatu da zozketa berri bat sortzean.
|
66
|
+
success: Zozketa ondo sortu da
|
67
67
|
destroy:
|
68
|
-
error:
|
69
|
-
success:
|
68
|
+
error: Zozketa ezin da bertan behera utzi.
|
69
|
+
success: Zozketa bertan behera utzi da
|
70
70
|
edit:
|
71
|
-
title: Eguneratu
|
72
|
-
update:
|
71
|
+
title: Eguneratu zozketari buruzko informazioa
|
72
|
+
update: Eguneratu
|
73
73
|
form:
|
74
74
|
all_categories: Kategoria guztiak
|
75
75
|
select_proposal_component: Aukeratu proposamenen multzoa
|
76
|
-
title:
|
76
|
+
title: Proposamenen zozketa berria
|
77
77
|
index:
|
78
|
-
title:
|
78
|
+
title: Zozketak
|
79
79
|
new:
|
80
|
+
confirm: Botoia sakatzean plataformak egun eta ordua (segundu gutxi batzuk gora behera) eta dadoak botatzean ateratako zenbakia gorde egingo ditu ausazko hautaketa bat egiteko. Botoia sakatu ondoren ez dago atzera egiterik eta zozketaren emaitzak zein txantiloi honetan sartutako datuak argitaratu eta ezin izango dira aldatu. Beraz, mesedez, arretaz jarraitu
|
80
81
|
create: Sortu
|
81
|
-
title:
|
82
|
+
title: Zozketa berria
|
82
83
|
show:
|
83
|
-
selected_proposals: Aukeratutako proposamenak
|
84
|
+
selected_proposals: Aukeratutako proposamenak
|
84
85
|
update:
|
85
|
-
error:
|
86
|
-
success:
|
86
|
+
error: Arazo bat sortu da zozketa eguneratzean.
|
87
|
+
success: Zozketa zuzen eguneratu da
|
87
88
|
admin_log:
|
88
89
|
sortition:
|
89
|
-
create: "%{user_name} %{resource_name}
|
90
|
-
delete: "%{user_name} %{resource_name}
|
91
|
-
update: "%{user_name} %{resource_name}
|
90
|
+
create: "%{user_name} k %{resource_name} zozketa sortu du %{space_name} espazioan"
|
91
|
+
delete: "%{user_name} k %{resource_name} zozketa bertan behera utzi du %{space_name} espazioan"
|
92
|
+
update: "%{user_name} k %{resource_name} zozketa eguneratu du %{space_name} espazioan"
|
92
93
|
sortitions:
|
93
|
-
count:
|
94
|
-
proposals_count:
|
95
|
-
one: 1 proposamen
|
96
|
-
other: "%{count} proposamen"
|
97
94
|
filters:
|
98
|
-
active:
|
99
|
-
all:
|
95
|
+
active: Aktiboa
|
96
|
+
all: Guztiak
|
100
97
|
cancelled: Bertan behera
|
101
98
|
category: Kategoria
|
102
99
|
category_prompt: Aukeratu kategoria bat
|
103
|
-
search:
|
104
|
-
state:
|
100
|
+
search: Bilatu
|
101
|
+
state: Egoera
|
105
102
|
filters_small_view:
|
106
|
-
close_modal:
|
107
|
-
filter:
|
108
|
-
filter_by:
|
103
|
+
close_modal: Modala itxi
|
104
|
+
filter: Filtroa
|
105
|
+
filter_by: Honen arabera iragazi
|
109
106
|
unfold: Zabaldu
|
110
107
|
linked_sortitions:
|
111
108
|
selected_proposals: Aukeratutako proposamenak
|
112
109
|
orders:
|
113
|
-
label: '
|
114
|
-
random:
|
115
|
-
recent:
|
110
|
+
label: 'Zozketak honen arabera ordenatu:'
|
111
|
+
random: Ausaz
|
112
|
+
recent: Berrienak
|
116
113
|
results_count:
|
117
114
|
count:
|
118
115
|
one: hautatutako proposamena
|
119
116
|
other: hautatutako proposamenak
|
120
117
|
show:
|
121
|
-
algorithm:
|
122
|
-
any_category: kategoria
|
118
|
+
algorithm: Zozketaren algoritmoaren kodea
|
119
|
+
any_category: kategoria guztienak
|
123
120
|
back: Itzuli zerrendara
|
124
|
-
cancelled:
|
125
|
-
candidate_proposal_ids:
|
126
|
-
candidate_proposals_info: '
|
121
|
+
cancelled: Zozketa beran behera utzita
|
122
|
+
candidate_proposal_ids: Zozketako proposamenen hurrenkera eta IDak
|
123
|
+
candidate_proposals_info: 'Zozketa (%{category_label}) proposamenen artean egin da, honako IDekin (letra lodiz hautatutako proposamenak) '
|
127
124
|
category: '%{category} kategoriatik'
|
128
|
-
dice_result: "(1)
|
129
|
-
introduction: 'Orrialde honek %{reference}
|
125
|
+
dice_result: "(1) Dadoen emaitza"
|
126
|
+
introduction: 'Orrialde honek %{reference} zozketaren emaitzak ditu. Zozketa honen bidez, %{target_items} emaitza kopurua ausaz eta banaketa probabilistiko berdinarekin aukeratu dira proposamen multzotik. Orri honek, emaitzak ezezik, berme guztiak izateko behar den informazioa ere jaso du. Zozketa honen kalitateak bi gako ditu. Alde batetik, dadoa hainbat lekukoren aurrean bota dela. Bestetik, zozketaren une zehatzean sortu den algoritmoak eman duen ausazko hautaketa. Sailkapenerako hazi-denbora hain da zehatza (segunduak) gizakiak ezin baitu hori kontrolatu. Honi esker, bidezko emaitza bermatzen duen sarrera bikoitz "kontrolaezina" sortzen da. '
|
130
127
|
mathematical_result: Emaitza (1) x (2)
|
131
|
-
proposals_selected_by_sortition:
|
132
|
-
sortition_reproducibility_details:
|
128
|
+
proposals_selected_by_sortition: Zozketa bidez aukeratutako proposamenak
|
129
|
+
sortition_reproducibility_details: Zozketaren errepikagarritasunaren xehetasunak
|
133
130
|
time_seed: "(2) Denbora hazia"
|
134
131
|
witnesses: Lekukoak
|
135
132
|
sortition:
|
136
|
-
random_seed:
|
133
|
+
random_seed: Ausazkotasun hazia
|
137
134
|
selected_proposals:
|
138
|
-
one:
|
139
|
-
other:
|
140
|
-
view:
|
135
|
+
one: aukeratutako proposamena
|
136
|
+
other: aukeratutako proposamenak
|
137
|
+
view: Ikusi
|
141
138
|
sortition_author:
|
142
|
-
deleted:
|
139
|
+
deleted: Ezabatutako parte-hartailea
|
143
140
|
sortition_cancel_author:
|
144
|
-
deleted:
|
141
|
+
deleted: Ezabatutako parte-hartzailea
|
145
142
|
sortitions_count:
|
146
143
|
count:
|
147
|
-
one: 1
|
148
|
-
other: "%{count}
|
144
|
+
one: Zozketa 1
|
145
|
+
other: "%{count} zozketa"
|
149
146
|
statistics:
|
150
147
|
sortitions_count: Zozketak
|
@@ -0,0 +1 @@
|
|
1
|
+
fa:
|
@@ -0,0 +1 @@
|
|
1
|
+
kaa:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -75,6 +75,7 @@ pt-BR:
|
|
75
75
|
index:
|
76
76
|
title: Sorteios
|
77
77
|
new:
|
78
|
+
confirm: Ao pressionar o próximo botão, a plataforma registrará a data e a hora (com precisão de segundos) e, junto com o lançamento de dados, essa informação será usada para gerar uma seleção aleatória. A ação será irreversível, uma vez que o botão é clicado o resultado deste sorteio será publicado, juntamente com os dados inseridos neste formulário e não podem ser modificados, por favor, verifique o conteúdo cuidadosamente
|
78
79
|
create: Criar
|
79
80
|
title: Nova classificação
|
80
81
|
show:
|
data/config/locales/ro-RO.yml
CHANGED
@@ -79,6 +79,7 @@ ro:
|
|
79
79
|
index:
|
80
80
|
title: Trageri la sorți
|
81
81
|
new:
|
82
|
+
confirm: Prin apăsarea butonului următor Decidim va înregistra data şi ora (cu precizie de secunde) şi împreună cu aruncarea zarului, această informaţie va fi folosită pentru a genera o selecţie aleatorie. Acțiunea va fi ireversibilă, odată ce butonul este apăsat, rezultatul acestei trageri la sorți va fi publicat împreună cu datele introduse în acest formular și nu pot fi modificate. Te rugăm să verifici cu atenție conținutul
|
82
83
|
create: Creează
|
83
84
|
title: Tragere la sorți nouă
|
84
85
|
show:
|
data/config/locales/zh-TW.yml
CHANGED
@@ -1 +1,145 @@
|
|
1
|
+
---
|
1
2
|
zh-TW:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
sortition:
|
6
|
+
additional_info: 隨機抽籤資訊
|
7
|
+
decidim_category_id: 你想要在哪些提案類別中進行抽籤
|
8
|
+
decidim_proposals_component_id: 提案集合
|
9
|
+
dice: 擲骰子的結果。擲一顆六面骰子,或尋找其他隨機產生1到6之間的數字的方法,然後在一些證人面前輸入結果的數字。這有助於確保結果的品質和隨機性的保證。
|
10
|
+
target_items: 被選出提案的數量(表示您希望在您之前選擇的提案組中通過抽籤選出的提案數量)
|
11
|
+
title: 標題
|
12
|
+
witnesses: 見證人
|
13
|
+
models:
|
14
|
+
decidim/sortitions/create_sortition_event: 抽籤
|
15
|
+
activerecord:
|
16
|
+
models:
|
17
|
+
decidim/sortitions/sortition:
|
18
|
+
other: 抽籤
|
19
|
+
decidim:
|
20
|
+
components:
|
21
|
+
sortitions:
|
22
|
+
actions:
|
23
|
+
comment: 留言
|
24
|
+
name: 抽籤
|
25
|
+
settings:
|
26
|
+
global:
|
27
|
+
comments_enabled: 啟用評論功能
|
28
|
+
comments_max_length: 評論字數最大長度(若要使用預設值請輸入0)
|
29
|
+
events:
|
30
|
+
sortitions:
|
31
|
+
sortition_created:
|
32
|
+
email_intro: 您正在關注的 "%{participatory_space_title}" 中新增了抽籤 "%{resource_title}"
|
33
|
+
email_outro: 您收到了此通知,是因為您正在關注 "%{participatory_space_title}"。您可以通過前面的鏈接取消關注它。
|
34
|
+
email_subject: '%{participatory_space_title}" 中新增了一個新的抽籤。'
|
35
|
+
notification_title: '%{participatory_space_title}」中已新增了<a href="%{resource_path}">%{resource_title}</a>的抽籤。'
|
36
|
+
sortitions:
|
37
|
+
admin:
|
38
|
+
actions:
|
39
|
+
destroy: 取消選民隨機抽籤
|
40
|
+
edit: 編輯
|
41
|
+
new: 新的抽籤
|
42
|
+
show: 抽籤詳細資料
|
43
|
+
models:
|
44
|
+
sortition:
|
45
|
+
fields:
|
46
|
+
category: 類別
|
47
|
+
created_at: 創建日期
|
48
|
+
decidim_proposals_component: 提案組成
|
49
|
+
dice: 骰子
|
50
|
+
reference: 參考
|
51
|
+
request_timestamp: 抽籤時間
|
52
|
+
seed: 種子碼
|
53
|
+
target_items: 選擇項目
|
54
|
+
title: 標題
|
55
|
+
name:
|
56
|
+
other: 抽籤
|
57
|
+
sortitions:
|
58
|
+
confirm_destroy:
|
59
|
+
confirm_destroy: 您確定要取消此選項嗎?
|
60
|
+
destroy: 取消抽籤
|
61
|
+
title: 取消抽籤
|
62
|
+
create:
|
63
|
+
error: 建立新抽籤時出現問題。
|
64
|
+
success: 排序成功建立
|
65
|
+
destroy:
|
66
|
+
error: 無法取消抽籤。
|
67
|
+
success: 隨機抽籤已成功取消
|
68
|
+
edit:
|
69
|
+
title: 更新抽籤資訊
|
70
|
+
update: 更新
|
71
|
+
form:
|
72
|
+
all_categories: 所有類別
|
73
|
+
select_proposal_component: 選擇提案集
|
74
|
+
title: 提案新抽籤
|
75
|
+
index:
|
76
|
+
title: 抽籤
|
77
|
+
new:
|
78
|
+
confirm: 當您按下「下一步」按鈕時,平台將會記錄日期和時間(秒級精度),並與擲骰子結果一起使用以生成隨機選擇。此操作是不可逆轉的,一旦按下按鈕,抽籤結果將會與此表單中輸入的資料一起發佈,並且無法更改,請仔細檢查內容。
|
79
|
+
create: 建立
|
80
|
+
title: 新的抽籤
|
81
|
+
show:
|
82
|
+
selected_proposals: 已選擇的提案以進行抽籤
|
83
|
+
update:
|
84
|
+
error: 更新抽籤時發生問題。
|
85
|
+
success: 抽籤成功更新
|
86
|
+
admin_log:
|
87
|
+
sortition:
|
88
|
+
create: "%{user_name} 在 %{space_name} 中創建了 %{resource_name} 抽籤"
|
89
|
+
delete: "%{user_name} 在 %{space_name} 中取消了 %{resource_name} 抽籤"
|
90
|
+
update: "%{user_name} 在 %{space_name} 中更新了 %{resource_name} 抽籤"
|
91
|
+
sortitions:
|
92
|
+
count:
|
93
|
+
proposals_count:
|
94
|
+
other: "%{count} 個提案"
|
95
|
+
filters:
|
96
|
+
active: 啟用中
|
97
|
+
all: 全部
|
98
|
+
cancelled: 已取消
|
99
|
+
category: 類別
|
100
|
+
category_prompt: 選擇一個類別
|
101
|
+
search: 搜尋
|
102
|
+
state: 狀態
|
103
|
+
filters_small_view:
|
104
|
+
close_modal: 關閉視窗
|
105
|
+
filter: 篩選
|
106
|
+
filter_by: 篩選條件
|
107
|
+
unfold: 展開
|
108
|
+
linked_sortitions:
|
109
|
+
selected_proposals: 選擇的提案
|
110
|
+
orders:
|
111
|
+
label: '抽籤排序方式:'
|
112
|
+
random: 隨機
|
113
|
+
recent: 最近
|
114
|
+
results_count:
|
115
|
+
count:
|
116
|
+
other: 選擇的提案
|
117
|
+
show:
|
118
|
+
algorithm: 抽籤排序算法
|
119
|
+
any_category: 從所有類別中
|
120
|
+
back: 返回列表
|
121
|
+
cancelled: 取消的抽籤
|
122
|
+
candidate_proposal_ids: 隨機抽籤提案的順序和 ID
|
123
|
+
candidate_proposals_info: '該抽籤是在以下提案中進行的 (%{category_label}),以下是這些提案的 ID (選中的提案以粗體標出) '
|
124
|
+
category: 來自 %{category} 類別
|
125
|
+
dice_result: "(1) 骰子結果"
|
126
|
+
introduction: '本頁面包含了抽籤 %{reference} 的結果。透過這個抽籤,從下面顯示的提案集合中隨機且以等機率隨機選出了 %{target_items} 個結果。除了顯示的結果外,此頁面的資訊提供了最大化保證並重現結果所需的所有資訊。此抽籤質量的關鍵在於雙重隨機性,一方面是由證人驗證的擲骰子結果,另一方面是精確的抽籤時間提供的算法輸入以產生隨機選擇。抽籤的時間種子如此精確(秒級),以至於人類無法控制,從而提供雙重「不可控制」輸入,以保證公平結果。 '
|
127
|
+
mathematical_result: 結果 (1) x (2)
|
128
|
+
proposals_selected_by_sortition: 通過抽籤選中的提案
|
129
|
+
sortition_reproducibility_details: 抽籤可重複性詳情
|
130
|
+
time_seed: "(2) 時間種子"
|
131
|
+
witnesses: 見證人
|
132
|
+
sortition:
|
133
|
+
random_seed: 隨機種子
|
134
|
+
selected_proposals:
|
135
|
+
other: 選中的提案
|
136
|
+
view: 檢視
|
137
|
+
sortition_author:
|
138
|
+
deleted: 已刪除的參與者
|
139
|
+
sortition_cancel_author:
|
140
|
+
deleted: 已刪除的參與者
|
141
|
+
sortitions_count:
|
142
|
+
count:
|
143
|
+
other: "%{count} 個抽籤"
|
144
|
+
statistics:
|
145
|
+
sortitions_count: 抽籤
|
@@ -1,18 +1,29 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class MakeSortitionsAuthorsPolymorphic < ActiveRecord::Migration[5.2]
|
4
|
+
class User < ApplicationRecord
|
5
|
+
self.table_name = :decidim_users
|
6
|
+
self.inheritance_column = nil # disable the default inheritance
|
7
|
+
|
8
|
+
default_scope { where(type: "Decidim::User") }
|
9
|
+
end
|
10
|
+
|
11
|
+
class Sortition < ApplicationRecord
|
12
|
+
include Decidim::HasComponent
|
13
|
+
|
14
|
+
self.table_name = :decidim_sortitions_sortitions
|
15
|
+
end
|
16
|
+
|
4
17
|
def change
|
5
18
|
add_column :decidim_sortitions_sortitions, :decidim_author_type, :string
|
6
19
|
|
7
|
-
|
8
|
-
|
9
|
-
author
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
sortition.author = author
|
15
|
-
sortition.save!
|
20
|
+
Sortition.find_each do |sortition|
|
21
|
+
author = User.find_by(id: sortition.decidim_author_id) if sortition.decidim_author_id.present?
|
22
|
+
author ||= sortition.organization
|
23
|
+
sortition.update!(
|
24
|
+
decidim_author_type: author.is_a?(User) ? author.type : "Decidim::Organization",
|
25
|
+
decidim_author_id: author.id
|
26
|
+
)
|
16
27
|
end
|
17
28
|
|
18
29
|
add_index :decidim_sortitions_sortitions,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-sortitions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.27.
|
19
|
+
version: 0.27.4
|
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.27.
|
26
|
+
version: 0.27.4
|
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.27.
|
33
|
+
version: 0.27.4
|
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.27.
|
40
|
+
version: 0.27.4
|
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.27.
|
47
|
+
version: 0.27.4
|
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.27.
|
54
|
+
version: 0.27.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-proposals
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.27.
|
61
|
+
version: 0.27.4
|
62
62
|
type: :runtime
|
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.27.
|
68
|
+
version: 0.27.4
|
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.27.
|
75
|
+
version: 0.27.4
|
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.27.
|
82
|
+
version: 0.27.4
|
83
83
|
description: This module makes possible to select amont a set of proposal by sortition
|
84
84
|
email:
|
85
85
|
- jsperezg@gmail.com
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- app/views/decidim/sortitions/sortitions/index.js.erb
|
145
145
|
- app/views/decidim/sortitions/sortitions/show.html.erb
|
146
146
|
- config/assets.rb
|
147
|
+
- config/environment.rb
|
147
148
|
- config/locales/am-ET.yml
|
148
149
|
- config/locales/ar-SA.yml
|
149
150
|
- config/locales/ar.yml
|
@@ -166,6 +167,7 @@ files:
|
|
166
167
|
- config/locales/et-EE.yml
|
167
168
|
- config/locales/et.yml
|
168
169
|
- config/locales/eu.yml
|
170
|
+
- config/locales/fa-IR.yml
|
169
171
|
- config/locales/fi-pl.yml
|
170
172
|
- config/locales/fi-plain.yml
|
171
173
|
- config/locales/fi.yml
|
@@ -184,6 +186,7 @@ files:
|
|
184
186
|
- config/locales/it.yml
|
185
187
|
- config/locales/ja.yml
|
186
188
|
- config/locales/ka-GE.yml
|
189
|
+
- config/locales/kaa.yml
|
187
190
|
- config/locales/ko-KR.yml
|
188
191
|
- config/locales/ko.yml
|
189
192
|
- config/locales/lb-LU.yml
|
@@ -249,7 +252,7 @@ homepage: https://github.com/decidim/decidim
|
|
249
252
|
licenses:
|
250
253
|
- AGPL-3.0
|
251
254
|
metadata: {}
|
252
|
-
post_install_message:
|
255
|
+
post_install_message:
|
253
256
|
rdoc_options: []
|
254
257
|
require_paths:
|
255
258
|
- lib
|
@@ -264,8 +267,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
267
|
- !ruby/object:Gem::Version
|
265
268
|
version: '0'
|
266
269
|
requirements: []
|
267
|
-
rubygems_version: 3.
|
268
|
-
signing_key:
|
270
|
+
rubygems_version: 3.2.22
|
271
|
+
signing_key:
|
269
272
|
specification_version: 4
|
270
273
|
summary: Decidim sortitions module
|
271
274
|
test_files: []
|