decidim-sortitions 0.26.7 → 0.26.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb +1 -0
- data/app/views/decidim/sortitions/admin/sortitions/edit.html.erb +1 -0
- 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/config/environment.rb +3 -0
- data/config/locales/cs.yml +1 -1
- data/config/locales/de.yml +1 -1
- data/config/locales/el.yml +5 -0
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +69 -69
- data/config/locales/fi-plain.yml +1 -1
- data/config/locales/fi.yml +20 -20
- data/config/locales/is-IS.yml +1 -3
- data/config/locales/it.yml +1 -1
- data/config/locales/nl.yml +2 -2
- data/config/locales/sk.yml +1 -1
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/th-TH.yml +1 -0
- data/db/migrate/20181017110803_make_sortitions_authors_polymorphic.rb +20 -9
- data/lib/decidim/sortitions/version.rb +1 -1
- metadata +15 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10fd60b0021cf6fc5f18faab53033cc18a09d95f4a38ab7bc1633cc2f2c6b052
|
4
|
+
data.tar.gz: 227bd32b92b29c6da66432e117bf940e6f4d644edc418bd667e698f7994bd5ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb35b82782f555cae97ee67f0b9468577c1303ef4d2f6f59ff6c079d5c1ddc5295d9b95a737d8e474a452cfdb19d41fb4b213a3a9c28923f549cce57934c89b3
|
7
|
+
data.tar.gz: 698f0b1b82810d59f57ddf9bb955ace4fcc48224babbfe3c2e44648e222dc98a518fc7f7856f2ecff1fbfaf822f81679abc94f1a276d90728977da85fa63a9f4
|
data/config/locales/cs.yml
CHANGED
@@ -134,7 +134,7 @@ cs:
|
|
134
134
|
candidate_proposals_info: 'Losování bylo provedeno mezi následujícími návrhy (%{category_label}), s následujícími ID (označené tučně vybrané návrhy) '
|
135
135
|
category: z kategorie %{category}
|
136
136
|
dice_result: "(1) Výsledek hodu kostkou"
|
137
|
-
introduction:
|
137
|
+
introduction: "Tato stránka obsahuje výsledky losování %{reference}. Prostřednictvím tohoto losování bylo vybráno %{target_items} výsledků náhodně a se stejným rozdělením pravděpodobnosti ze souboru návrhů zobrazených níže. \n\nSpolu s výsledky informace zobrazené na této stránce poskytují všechny informace potřebné pro maximalizaci záruk a reprodukci výsledků. Klíčem ke kvalitě tohoto losování je dvojitá náhodnost, kterou poskytuje hod kostkou (ověřený svědky) a přesný čas výběru, který poskytuje vstup pro algoritmus, který generuje náhodný výběr. \n\nČasový základ pro losování je tak přesný (na sekundy), že není možné ovládat lidi, a tak lze poskytnout dvojitý \"nekontrolovatelný\" vstup, který zaručí spravedlivý výsledek. "
|
138
138
|
mathematical_result: Výsledek (1) x (2)
|
139
139
|
proposals_selected_by_sortition: Návrhy vybrané losováním
|
140
140
|
sortition_reproducibility_details: Detaily reprodukovatelnosti losování
|
data/config/locales/de.yml
CHANGED
@@ -67,7 +67,7 @@ de:
|
|
67
67
|
error: Die Sortierung kann nicht abgebrochen werden.
|
68
68
|
success: Die Sortierung wurde erfolgreich abgebrochen
|
69
69
|
edit:
|
70
|
-
title:
|
70
|
+
title: Informationen zur Sortierung aktualisieren
|
71
71
|
update: Aktualisieren
|
72
72
|
form:
|
73
73
|
all_categories: Alle Kategorien
|
data/config/locales/el.yml
CHANGED
@@ -19,10 +19,13 @@ el:
|
|
19
19
|
decidim:
|
20
20
|
components:
|
21
21
|
sortitions:
|
22
|
+
actions:
|
23
|
+
comment: Σχόλιο
|
22
24
|
name: Κληρώσεις
|
23
25
|
settings:
|
24
26
|
global:
|
25
27
|
comments_enabled: Τα σχόλια ενεργοποιήθηκαν
|
28
|
+
comments_max_length: Μέγιστο μέγεθος σχολίων (Αφήστε το 0 για την προκαθορισμένη τιμή)
|
26
29
|
events:
|
27
30
|
sortitions:
|
28
31
|
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-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -71,7 +71,7 @@ es:
|
|
71
71
|
update: Actualizar
|
72
72
|
form:
|
73
73
|
all_categories: Todas las categorias
|
74
|
-
select_proposal_component:
|
74
|
+
select_proposal_component: Selecciona el conjunto de propuestas
|
75
75
|
title: Nuevo sorteo para propuestas
|
76
76
|
index:
|
77
77
|
title: Sorteos
|
data/config/locales/eu.yml
CHANGED
@@ -2,149 +2,149 @@ eu:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
sortition:
|
5
|
-
additional_info:
|
6
|
-
decidim_category_id:
|
7
|
-
decidim_proposals_component_id:
|
8
|
-
dice:
|
9
|
-
target_items:
|
5
|
+
additional_info: Zozketari buruzko informazioa
|
6
|
+
decidim_category_id: Zozketatu nahi duzun proposamen taldearen kategoriak
|
7
|
+
decidim_proposals_component_id: Proposamen taldea
|
8
|
+
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
|
9
|
+
target_items: Aukeratu nahi duzun proposamen kopurua (adierazitako proposamen taldetik zozketaren bidez aukeratu nahi duzun proposamen kopurua ezarri)
|
10
10
|
title: Izenburua
|
11
11
|
witnesses: Lekukoak
|
12
12
|
models:
|
13
|
-
decidim/sortitions/create_sortition_event:
|
13
|
+
decidim/sortitions/create_sortition_event: Zozketa
|
14
14
|
activerecord:
|
15
15
|
models:
|
16
16
|
decidim/sortitions/sortition:
|
17
|
-
one:
|
18
|
-
other:
|
17
|
+
one: Zozketa
|
18
|
+
other: Zozketak
|
19
19
|
decidim:
|
20
20
|
components:
|
21
21
|
sortitions:
|
22
22
|
actions:
|
23
23
|
comment: Egin iruzkina
|
24
|
-
name:
|
24
|
+
name: Zozketak
|
25
25
|
settings:
|
26
26
|
global:
|
27
27
|
comments_enabled: Iruzkinak gaituta
|
28
|
-
comments_max_length: Iruzkinen gehieneko luzera (utzi 0
|
28
|
+
comments_max_length: Iruzkinen gehieneko luzera (utzi 0 lehenetsitako konfigurazioari eusteko)
|
29
29
|
events:
|
30
30
|
sortitions:
|
31
31
|
sortition_created:
|
32
|
-
email_intro: '"%{resource_title}"
|
33
|
-
email_outro:
|
34
|
-
email_subject:
|
35
|
-
notification_title: <a href="%{resource_path}">%{resource_title}</a>
|
32
|
+
email_intro: '"%{resource_title}" zozketa jarraitzen ari zaren "%{participatory_space_title}" espazioan gehitu da.'
|
33
|
+
email_outro: Jakinarazpen hau jaso duzu "%{participatory_space_title}" jarraitzen ari zarelako. Aurreko estekan sartu jarraitzeari uzteko.
|
34
|
+
email_subject: Beste zozketa bat gehitu da %{participatory_space_title} espaziora
|
35
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> zozketa %{participatory_space_title} espaziora gehitu da
|
36
36
|
sortitions:
|
37
37
|
admin:
|
38
38
|
actions:
|
39
|
-
destroy:
|
39
|
+
destroy: Zozketa bertan behera utzi
|
40
40
|
edit: Editatu
|
41
|
-
new:
|
42
|
-
show:
|
41
|
+
new: Beste zozketa bat
|
42
|
+
show: Zozketaren xehetasunak
|
43
43
|
models:
|
44
44
|
sortition:
|
45
45
|
fields:
|
46
46
|
category: Kategoria
|
47
47
|
created_at: Sortze data
|
48
|
-
decidim_proposals_component:
|
49
|
-
dice:
|
48
|
+
decidim_proposals_component: Proposamenen osagaia
|
49
|
+
dice: Dadoa
|
50
50
|
reference: Erreferentzia
|
51
|
-
request_timestamp:
|
52
|
-
seed:
|
53
|
-
target_items:
|
51
|
+
request_timestamp: Zozketa-denbora
|
52
|
+
seed: Hazia
|
53
|
+
target_items: Aukeratzeko itemak
|
54
54
|
title: Izenburua
|
55
55
|
name:
|
56
|
-
one:
|
57
|
-
other:
|
56
|
+
one: Zozketa
|
57
|
+
other: Zozketak
|
58
58
|
sortitions:
|
59
59
|
confirm_destroy:
|
60
|
-
confirm_destroy: Ziur al zaude hau
|
61
|
-
destroy:
|
62
|
-
title:
|
60
|
+
confirm_destroy: Ziur al zaude zozketa hau bertan behera utzi nahi duzula?
|
61
|
+
destroy: Zozketa bertan behera utzi
|
62
|
+
title: Zozketa bertan behera uztea
|
63
63
|
create:
|
64
|
-
error:
|
65
|
-
success:
|
64
|
+
error: Arazo bat gertatu da zozketa berri bat sortzean.
|
65
|
+
success: Zozketa ondo sortu da
|
66
66
|
destroy:
|
67
|
-
error:
|
68
|
-
success:
|
67
|
+
error: Zozketa ezin da bertan behera utzi.
|
68
|
+
success: Zozketa bertan behera utzi da
|
69
69
|
edit:
|
70
|
-
title: Eguneratu
|
71
|
-
update:
|
70
|
+
title: Eguneratu zozketari buruzko informazioa
|
71
|
+
update: Eguneratu
|
72
72
|
form:
|
73
73
|
all_categories: Kategoria guztiak
|
74
74
|
select_proposal_component: Aukeratu proposamenen multzoa
|
75
|
-
title:
|
75
|
+
title: Beste proposamenen zozketa bat
|
76
76
|
index:
|
77
|
-
title:
|
77
|
+
title: Zozketak
|
78
78
|
new:
|
79
|
-
confirm:
|
79
|
+
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
80
|
create: Sortu
|
81
|
-
title:
|
81
|
+
title: Beste zozketa bat
|
82
82
|
show:
|
83
|
-
selected_proposals:
|
83
|
+
selected_proposals: Zozketatzeko aukeratutako proposamenak
|
84
84
|
update:
|
85
|
-
error:
|
86
|
-
success:
|
85
|
+
error: Arazo bat sortu da zozketa eguneratzean.
|
86
|
+
success: Zozketa zuzen eguneratu da
|
87
87
|
admin_log:
|
88
88
|
sortition:
|
89
|
-
create: "%{user_name} %{resource_name}
|
90
|
-
delete: "%{user_name} %{resource_name}
|
91
|
-
update: "%{user_name} %{resource_name}
|
89
|
+
create: "%{user_name} k %{resource_name} zozketa sortu du %{space_name} espazioan"
|
90
|
+
delete: "%{user_name} k %{resource_name} zozketa bertan behera utzi du %{space_name} espazioan"
|
91
|
+
update: "%{user_name} k %{resource_name} zozketa eguneratu du %{space_name} espazioan"
|
92
92
|
sortitions:
|
93
93
|
count:
|
94
94
|
proposals_count:
|
95
|
-
one: 1
|
95
|
+
one: proposamen 1
|
96
96
|
other: "%{count} proposamen"
|
97
97
|
filters:
|
98
98
|
active: Aktiboak
|
99
|
-
all:
|
99
|
+
all: Guztiak
|
100
100
|
cancelled: Bertan behera
|
101
101
|
category: Kategoria
|
102
102
|
category_prompt: Aukeratu kategoria bat
|
103
103
|
search: Bilatu
|
104
|
-
state:
|
104
|
+
state: Egoera
|
105
105
|
filters_small_view:
|
106
|
-
close_modal: Itxi
|
107
|
-
filter:
|
108
|
-
filter_by: Iragazi arabera
|
106
|
+
close_modal: Itxi leihoa
|
107
|
+
filter: Iragazkia
|
108
|
+
filter_by: Iragazi honen arabera
|
109
109
|
unfold: Zabaldu
|
110
110
|
linked_sortitions:
|
111
111
|
selected_proposals: Aukeratutako proposamenak
|
112
112
|
orders:
|
113
|
-
label: '
|
114
|
-
random:
|
115
|
-
recent:
|
113
|
+
label: 'Zozketak honen arabera ordenatu:'
|
114
|
+
random: Ausaz
|
115
|
+
recent: Berrienak
|
116
116
|
results_count:
|
117
117
|
count:
|
118
118
|
one: hautatutako proposamena
|
119
119
|
other: hautatutako proposamenak
|
120
120
|
show:
|
121
|
-
algorithm:
|
122
|
-
any_category: kategoria
|
121
|
+
algorithm: Zozketaren algoritmoaren kodea
|
122
|
+
any_category: kategoria guztienak
|
123
123
|
back: Itzuli zerrendara
|
124
|
-
cancelled:
|
125
|
-
candidate_proposal_ids:
|
126
|
-
candidate_proposals_info: '
|
124
|
+
cancelled: Bertan behera utzitako zozketak
|
125
|
+
candidate_proposal_ids: Zozketako proposamenen hurrenkera eta IDak
|
126
|
+
candidate_proposals_info: 'Zozketa (%{category_label}) proposamenen artean egin da, honako IDekin (letra lodiz hautatutako proposamenak) '
|
127
127
|
category: '%{category} kategoriatik'
|
128
|
-
dice_result: "(1)
|
129
|
-
introduction: 'Orrialde honek %{reference}
|
128
|
+
dice_result: "(1) Dadoen emaitza"
|
129
|
+
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
130
|
mathematical_result: Emaitza (1) x (2)
|
131
|
-
proposals_selected_by_sortition:
|
132
|
-
sortition_reproducibility_details:
|
131
|
+
proposals_selected_by_sortition: Zozketa bidez aukeratutako proposamenak
|
132
|
+
sortition_reproducibility_details: Zozketaren errepikagarritasunaren xehetasunak
|
133
133
|
time_seed: "(2) Denbora hazia"
|
134
134
|
witnesses: Lekukoak
|
135
135
|
sortition:
|
136
|
-
random_seed:
|
136
|
+
random_seed: Ausazkotasun hazia
|
137
137
|
selected_proposals:
|
138
|
-
one:
|
139
|
-
other:
|
140
|
-
view:
|
138
|
+
one: aukeratutako proposamena
|
139
|
+
other: aukeratutako proposamenak
|
140
|
+
view: Ikusi
|
141
141
|
sortition_author:
|
142
|
-
deleted:
|
142
|
+
deleted: Ezabatutako parte-hartailea
|
143
143
|
sortition_cancel_author:
|
144
|
-
deleted:
|
144
|
+
deleted: Ezabatutako parte-hartzailea
|
145
145
|
sortitions_count:
|
146
146
|
count:
|
147
|
-
one: 1
|
148
|
-
other: "%{count}
|
147
|
+
one: Zozketa 1
|
148
|
+
other: "%{count} zozketa"
|
149
149
|
statistics:
|
150
150
|
sortitions_count: Zozketak
|
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
@@ -2,26 +2,26 @@ fi:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
sortition:
|
5
|
-
additional_info:
|
6
|
-
decidim_category_id:
|
7
|
-
decidim_proposals_component_id:
|
5
|
+
additional_info: Satunnaisvalinnan tiedot
|
6
|
+
decidim_category_id: Ehdotusten aihepiirit, joiden perusteella haluat tehdä satunnaisvalinnan
|
7
|
+
decidim_proposals_component_id: Ehdotusten joukko
|
8
8
|
dice: Noppaheiton tulos. Heitä kuusisivuista noppaa tai etsi toinen tapa luoda satunnaisesti numero 1-6, ja kirjoita tähän tuloksena saatu luku muutamien todistajien edessä. Tämä auttaa takamaan tuloksen satunnaisuuden
|
9
|
-
target_items: Valittavien ehdotusten määrä (ilmoittaa niiden ehdotusten lukumäärän, jotka haluat valita arpomalla kustakin aiemmin valitsemastasi
|
9
|
+
target_items: Valittavien ehdotusten määrä (ilmoittaa niiden ehdotusten lukumäärän, jotka haluat valita arpomalla kustakin aiemmin valitsemastasi ehdotusjoukosta)
|
10
10
|
title: Otsikko
|
11
11
|
witnesses: Todistajat
|
12
12
|
models:
|
13
|
-
decidim/sortitions/create_sortition_event:
|
13
|
+
decidim/sortitions/create_sortition_event: Satunnaisvalinta
|
14
14
|
activerecord:
|
15
15
|
models:
|
16
16
|
decidim/sortitions/sortition:
|
17
|
-
one:
|
18
|
-
other:
|
17
|
+
one: Satunnaisvalinta
|
18
|
+
other: Satunnaisvalinnat
|
19
19
|
decidim:
|
20
20
|
components:
|
21
21
|
sortitions:
|
22
22
|
actions:
|
23
23
|
comment: Kommentoi
|
24
|
-
name:
|
24
|
+
name: Satunnaisvalinnat
|
25
25
|
settings:
|
26
26
|
global:
|
27
27
|
comments_enabled: Kommentointi sallittu
|
@@ -31,15 +31,15 @@ fi:
|
|
31
31
|
sortition_created:
|
32
32
|
email_intro: Satunnaisvalinta "%{resource_title}" on lisätty kohteeseen "%{participatory_space_title}" jota sinä seuraat.
|
33
33
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat kohdetta "%{participatory_space_title}". Voit lopettaa seuraamisen edellä esitetyn linkin kautta.
|
34
|
-
email_subject: Uusi
|
35
|
-
notification_title:
|
34
|
+
email_subject: Uusi satunnaisvalinta lisättiin kohteeseen %{participatory_space_title}
|
35
|
+
notification_title: Satunnaisvalinta <a href="%{resource_path}">%{resource_title}</a> on lisätty kohteeseen %{participatory_space_title}
|
36
36
|
sortitions:
|
37
37
|
admin:
|
38
38
|
actions:
|
39
|
-
destroy: Peruuta
|
39
|
+
destroy: Peruuta satunnaisvalinta
|
40
40
|
edit: Muokkaa
|
41
|
-
new: Uusi
|
42
|
-
show:
|
41
|
+
new: Uusi satunnaisvalinta
|
42
|
+
show: Satunnaisvalinnan tarkemmat tiedot
|
43
43
|
models:
|
44
44
|
sortition:
|
45
45
|
fields:
|
@@ -53,13 +53,13 @@ fi:
|
|
53
53
|
target_items: Valittavat kohteet
|
54
54
|
title: Otsikko
|
55
55
|
name:
|
56
|
-
one:
|
57
|
-
other:
|
56
|
+
one: Satunnaisvalinta
|
57
|
+
other: Satunnaisvalinnat
|
58
58
|
sortitions:
|
59
59
|
confirm_destroy:
|
60
|
-
confirm_destroy: Haluatko varmasti peruuttaa tämän
|
61
|
-
destroy: Peruuta
|
62
|
-
title:
|
60
|
+
confirm_destroy: Haluatko varmasti peruuttaa tämän satunnaisvalinnan?
|
61
|
+
destroy: Peruuta satunnaisvalinta
|
62
|
+
title: Satunnaisvalinnan peruuttaminen
|
63
63
|
create:
|
64
64
|
error: Uuden satunnaisvalinnan luonti epäonnistui.
|
65
65
|
success: Satunnaisvalinnan luonti onnistui
|
@@ -122,7 +122,7 @@ fi:
|
|
122
122
|
any_category: kaikista aihepiireistä
|
123
123
|
back: Takaisin listaan
|
124
124
|
cancelled: Peruttu satunnaisvalinta
|
125
|
-
candidate_proposal_ids:
|
125
|
+
candidate_proposal_ids: Satunnaisvalinnan ehdotusten järjestys ja tunnukset
|
126
126
|
candidate_proposals_info: 'Satunnaisvalinta tehtiin seuraavien ehdotusten (%{category_label}) välillä, seuraavilla tunnuksilla (lihavoituna valitut ehdotukset) '
|
127
127
|
category: aihepiiristä %{category}
|
128
128
|
dice_result: "(1) Noppatulos"
|
@@ -147,4 +147,4 @@ fi:
|
|
147
147
|
one: 1 satunnaisvalinta
|
148
148
|
other: "%{count} satunnaisvalintaa"
|
149
149
|
statistics:
|
150
|
-
sortitions_count:
|
150
|
+
sortitions_count: Satunnaisvalintaa
|
data/config/locales/is-IS.yml
CHANGED
@@ -27,6 +27,7 @@ is-IS:
|
|
27
27
|
actions:
|
28
28
|
destroy: Hætta við flokkunina
|
29
29
|
edit: Breyta
|
30
|
+
new: Ný flokkun
|
30
31
|
show: Uppsetningarupplýsingar
|
31
32
|
models:
|
32
33
|
sortition:
|
@@ -40,9 +41,6 @@ is-IS:
|
|
40
41
|
seed: Fræ
|
41
42
|
target_items: Atriði til að velja
|
42
43
|
title: Titill
|
43
|
-
name:
|
44
|
-
one: Flokkun
|
45
|
-
other: Flokkanir
|
46
44
|
sortitions:
|
47
45
|
confirm_destroy:
|
48
46
|
confirm_destroy: Ertu viss um að þú viljir hætta við þessa flokkun?
|
data/config/locales/it.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/sk.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
sq:
|
@@ -0,0 +1 @@
|
|
1
|
+
th:
|
@@ -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.26.
|
4
|
+
version: 0.26.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-21 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.26.
|
19
|
+
version: 0.26.9
|
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.26.
|
26
|
+
version: 0.26.9
|
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.26.
|
33
|
+
version: 0.26.9
|
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.26.
|
40
|
+
version: 0.26.9
|
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.26.
|
47
|
+
version: 0.26.9
|
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.26.
|
54
|
+
version: 0.26.9
|
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.26.
|
61
|
+
version: 0.26.9
|
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.26.
|
68
|
+
version: 0.26.9
|
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.26.
|
75
|
+
version: 0.26.9
|
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.26.
|
82
|
+
version: 0.26.9
|
83
83
|
description: This module makes possible to select amont a set of proposal by sortition
|
84
84
|
email:
|
85
85
|
- jsperezg@gmail.com
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- app/views/decidim/sortitions/sortitions/index.js.erb
|
146
146
|
- app/views/decidim/sortitions/sortitions/show.html.erb
|
147
147
|
- config/assets.rb
|
148
|
+
- config/environment.rb
|
148
149
|
- config/locales/am-ET.yml
|
149
150
|
- config/locales/ar-SA.yml
|
150
151
|
- config/locales/ar.yml
|
@@ -211,9 +212,11 @@ files:
|
|
211
212
|
- config/locales/sk.yml
|
212
213
|
- config/locales/sl.yml
|
213
214
|
- config/locales/so-SO.yml
|
215
|
+
- config/locales/sq-AL.yml
|
214
216
|
- config/locales/sr-CS.yml
|
215
217
|
- config/locales/sv.yml
|
216
218
|
- config/locales/sw-KE.yml
|
219
|
+
- config/locales/th-TH.yml
|
217
220
|
- config/locales/ti-ER.yml
|
218
221
|
- config/locales/tr-TR.yml
|
219
222
|
- config/locales/uk.yml
|