decidim-accountability 0.26.9 → 0.27.0.rc1
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/accountability/highlighted_results_for_component_cell.rb +13 -1
- data/app/commands/decidim/accountability/admin/create_imported_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/create_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/create_status.rb +6 -3
- data/app/commands/decidim/accountability/admin/create_timeline_entry.rb +11 -7
- data/app/commands/decidim/accountability/admin/destroy_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/update_imported_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/update_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/update_status.rb +6 -3
- data/app/commands/decidim/accountability/admin/update_timeline_entry.rb +9 -5
- data/app/controllers/decidim/accountability/admin/statuses_controller.rb +5 -3
- data/app/controllers/decidim/accountability/admin/timeline_entries_controller.rb +5 -3
- data/app/controllers/decidim/accountability/results_controller.rb +12 -12
- data/app/forms/decidim/accountability/admin/result_form.rb +2 -2
- data/app/forms/decidim/accountability/admin/timeline_entry_form.rb +2 -1
- data/app/helpers/decidim/accountability/breadcrumb_helper.rb +2 -2
- data/app/models/decidim/accountability/result.rb +9 -5
- data/app/models/decidim/accountability/status.rb +6 -2
- data/app/models/decidim/accountability/timeline_entry.rb +6 -0
- data/app/permissions/decidim/accountability/admin/permissions.rb +1 -7
- data/app/presenters/decidim/accountability/admin_log/status_presenter.rb +38 -0
- data/app/presenters/decidim/accountability/admin_log/timeline_entry_presenter.rb +37 -0
- data/app/services/decidim/accountability/results_calculator.rb +10 -6
- data/app/views/decidim/accountability/admin/import_results/new.html.erb +3 -8
- data/app/views/decidim/accountability/admin/results/edit.html.erb +0 -1
- data/app/views/decidim/accountability/admin/results/index.html.erb +1 -2
- data/app/views/decidim/accountability/admin/results/new.html.erb +0 -1
- data/app/views/decidim/accountability/admin/statuses/edit.html.erb +0 -1
- data/app/views/decidim/accountability/admin/statuses/index.html.erb +0 -1
- data/app/views/decidim/accountability/admin/statuses/new.html.erb +0 -1
- data/app/views/decidim/accountability/admin/timeline_entries/_form.html.erb +5 -1
- data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +3 -3
- data/app/views/decidim/accountability/results/_home_categories.html.erb +2 -2
- data/app/views/decidim/accountability/results/_nav_breadcrumb.html.erb +3 -3
- data/app/views/decidim/accountability/results/_results_leaf.html.erb +3 -3
- data/app/views/decidim/accountability/results/_results_parent.html.erb +1 -1
- data/app/views/decidim/accountability/results/_scope_filters.html.erb +3 -3
- data/app/views/decidim/accountability/results/_search.html.erb +1 -1
- data/app/views/decidim/accountability/results/_show_leaf.html.erb +2 -2
- data/app/views/decidim/accountability/results/_timeline.html.erb +8 -2
- data/app/views/decidim/accountability/results/home.html.erb +3 -1
- data/app/views/decidim/accountability/versions/show.html.erb +3 -1
- data/app/views/decidim/participatory_spaces/_result.html.erb +2 -2
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +24 -41
- data/config/locales/bg.yml +3 -1
- data/config/locales/ca.yml +13 -23
- data/config/locales/cs.yml +13 -23
- data/config/locales/da.yml +3 -1
- data/config/locales/de.yml +13 -23
- data/config/locales/el.yml +3 -2
- data/config/locales/en.yml +12 -23
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +13 -23
- data/config/locales/es-PY.yml +13 -23
- data/config/locales/es.yml +13 -23
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +52 -72
- data/config/locales/fi-plain.yml +13 -23
- data/config/locales/fi.yml +19 -29
- data/config/locales/fr-CA.yml +13 -23
- data/config/locales/fr.yml +13 -23
- data/config/locales/ga-IE.yml +2 -0
- data/config/locales/gl.yml +3 -1
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +12 -32
- data/config/locales/id-ID.yml +1 -1
- data/config/locales/is-IS.yml +3 -2
- data/config/locales/it.yml +3 -1
- data/config/locales/ja.yml +14 -24
- data/config/locales/ko.yml +1 -14
- data/config/locales/lb.yml +3 -1
- data/config/locales/lt.yml +13 -23
- data/config/locales/lv.yml +3 -1
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +2 -1
- data/config/locales/no.yml +11 -9
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +13 -2
- data/config/locales/pt-BR.yml +4 -26
- data/config/locales/pt.yml +3 -1
- data/config/locales/ro-RO.yml +9 -8
- data/config/locales/ru.yml +1 -1
- data/config/locales/si-LK.yml +2 -1
- data/config/locales/sk.yml +2 -1
- data/config/locales/sl.yml +2 -1
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -1
- data/config/locales/sv.yml +5 -23
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +3 -25
- data/config/locales/uk.yml +1 -1
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +2 -1
- data/config/locales/zh-TW.yml +1 -267
- data/db/migrate/20220331150008_add_title_to_timeline_entries.rb +7 -0
- data/db/migrate/20220331150155_move_legacy_description_to_title_of_timeline_entries.rb +13 -0
- data/lib/decidim/accountability/component.rb +2 -1
- data/lib/decidim/accountability/test/factories.rb +1 -0
- data/lib/decidim/accountability/version.rb +1 -1
- data/lib/decidim/api/timeline_entry_type.rb +1 -0
- metadata +28 -34
- data/app/services/decidim/accountability/result_search.rb +0 -48
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -15
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -89
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -212
- data/config/locales/th-TH.yml +0 -1
data/config/locales/pt.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -49,6 +50,8 @@ pt:
|
|
49
50
|
import_results:
|
50
51
|
new:
|
51
52
|
import: Importar
|
53
|
+
info: "<p>Recomendamos que siga os seguintes passos:</p><ol><li>Crie os Estados para os Resultados que deseja adicionar (<a href='%{link_new_status}' target='_blank'>hiperligação</a>)</li><li>Crie pelo menos um Resultado de forma manual através deste painel de Administrador (<a href='%{link_new_result}' target='_blank'>link</a>) antes de usar Importar, para obter uma melhor compreensão do formato e daquilo que terá de preencher.</li><li>Transfira a Exportação com o formato CSV (%{link_export_csv})</li><li>Faça as alterações localmente. Apenas poderá alterar as seguintes colunas do CSV:</li></ol><ul><li><b>categoria/id:</b> ID para a Categoria</li><li><b>âmbito/id:</b> ID para o Âmbito</li><li><b>principal/id:</b> ID do principal (para os Resultados relacionados). Opcional</li><li><b>título/I18N:</b> Título no idioma X</li><li><b>descrição/I18N:</b> Descrição no idioma X</li><li><b>data_início:</b> data na qual o resultado inicia a execução (formato AAAA-MM-DD)</li><li><b>data_fim:</b> data na qual o resultado termina a execução (formato AAAA-MM-DD)</li><li><b>estado/id:</b> ID do Estado para este resultado</li><li><b>progresso:</b> Percentagem (de 0 a 100) da execução</li><li><b>ids_propostas:</b> ID interna das propostas relacionadas (separado por vírgula). Automaticamente convertido para <span class='attribute-name'>url_proposta</span></li></ul>"
|
54
|
+
link: hiperligação
|
52
55
|
title: Importar resultados do CSV
|
53
56
|
imports:
|
54
57
|
create:
|
@@ -156,7 +159,6 @@ pt:
|
|
156
159
|
progress: Progresso
|
157
160
|
timeline_entry:
|
158
161
|
fields:
|
159
|
-
description: Descrição
|
160
162
|
entry_date: Data
|
161
163
|
result_m:
|
162
164
|
executed: Executado
|
data/config/locales/ro-RO.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ro:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -12,7 +13,7 @@ ro:
|
|
12
13
|
proposals: Propuneri incluse
|
13
14
|
start_date: Data de început
|
14
15
|
title: Titlu
|
15
|
-
updated_at:
|
16
|
+
updated_at: Actualizat la
|
16
17
|
status:
|
17
18
|
description: Descriere
|
18
19
|
key: Cheie
|
@@ -35,7 +36,7 @@ ro:
|
|
35
36
|
actions:
|
36
37
|
attachment_collections: Dosare
|
37
38
|
attachments: Atașamente
|
38
|
-
confirm_destroy:
|
39
|
+
confirm_destroy: Sigur dorești să ștergi acest %{name}?
|
39
40
|
destroy: Ștergere
|
40
41
|
edit: Editare
|
41
42
|
import_csv: Importă CSV
|
@@ -49,12 +50,13 @@ ro:
|
|
49
50
|
results: Rezultate
|
50
51
|
import_results:
|
51
52
|
new:
|
52
|
-
download_export: Descarcați Export cu format CSV
|
53
53
|
import: Importă
|
54
|
+
info: "<p>Vă recomandăm să urmați aceste etape:</p><ol><li>Creați statutele pentru rezultatele pe care doriți să le adăugați (<a href='%{link_new_status}' target='_blank'>link</a>)</li><li>Creați manual cel puțin un rezultat prin acest panou de administrare (<a href='%{link_new_result}' target='_blank'>link</a>) înainte de a folosi funcția Importare, pentru a înțelege mai bine formatul și ceea ce trebuie completat.</li><li>Descărcați exportul cu format CVS (%{link_export_csv})</li><li>Efectuați modificările local. Puteți modifica numai următoarele coloane din CSV:</li></ol><ul><li><b>category/id:</b> ID-ul categoriei</li><li><b>scope/id:</b> ID-ul domeniului</li><li><b>parent/id:</b> ID-ul elementului părinte (pentru rezultatele corelate). Opțional</li><li><b>title/I18N:</b> Titlu în limba X </li><li><b>description/I18N:</b> Descriere în limba X</li><li><b>start_date:</b> data la care rezultatul începe executarea (format YYYY-MM-DD)</li><li><b>end_date:</b> data la care rezultatul încheie executarea (format YYYY-MM-DD)</li><li><b>status/id:</b> ID-ul Statutului pentru acest rezultat</li><li><b>progres:</b> Procent (de la 0 la 100) de executare</li><li><b>proposals_ids:</b> ID-ul intern al propunerilor înrudite (separate prin virgulă). Este automat convertit în <span class='attribute-name'>proposal_url</span></li></ul>"
|
55
|
+
link: link
|
54
56
|
title: Importați rezultate de la CSV
|
55
57
|
imports:
|
56
58
|
create:
|
57
|
-
success:
|
59
|
+
success: Fişierul a început importul. Veţi primi un e-mail în următoarele câteva minute cu rezultatul importului
|
58
60
|
models:
|
59
61
|
result:
|
60
62
|
name: Rezultat
|
@@ -143,7 +145,7 @@ ro:
|
|
143
145
|
fields:
|
144
146
|
category: Categorie
|
145
147
|
created_at: Creat
|
146
|
-
end_date: Dată de
|
148
|
+
end_date: Dată de sfârşit
|
147
149
|
id: ID
|
148
150
|
progress: Progres
|
149
151
|
scope: Domeniu de interes
|
@@ -158,7 +160,6 @@ ro:
|
|
158
160
|
progress: Progres
|
159
161
|
timeline_entry:
|
160
162
|
fields:
|
161
|
-
description: Descriere
|
162
163
|
entry_date: Dată
|
163
164
|
result_m:
|
164
165
|
executed: Executat
|
@@ -225,12 +226,12 @@ ro:
|
|
225
226
|
events:
|
226
227
|
accountability:
|
227
228
|
proposal_linked:
|
228
|
-
email_intro: 'Propunerea "%{proposal_title}" a fost inclusă într-un rezultat. O
|
229
|
+
email_intro: 'Propunerea "%{proposal_title}" a fost inclusă într-un rezultat. O puteţi vedea de pe această pagină:'
|
229
230
|
email_outro: Ai primit această notificare deoarece urmărești „%{proposal_title}”. Poți anula aceste notificări de la link-ul anterior.
|
230
231
|
email_subject: O actualizare la %{proposal_title}
|
231
232
|
notification_title: Propunerea <a href="%{proposal_path}">%{proposal_title}</a> a fost inclusă în rezultatul <a href="%{resource_path}">%{resource_title}</a>.
|
232
233
|
result_progress_updated:
|
233
|
-
email_intro: 'Rezultatul "%{resource_title}", care include propunerea "%{proposal_title}", este acum %{progress}% complet. Îl
|
234
|
+
email_intro: 'Rezultatul "%{resource_title}", care include propunerea "%{proposal_title}", este acum %{progress}% complet. Îl puteţi vedea de pe această pagină:'
|
234
235
|
email_outro: Ai primit această notificare deoarece urmărești „%{proposal_title}” și această propunere este inclusă în rezultatul „%{resource_title}”. Poți înceta să primești notificări urmând link-ul anterior.
|
235
236
|
email_subject: O actualizare la progresul %{resource_title}
|
236
237
|
notification_title: Rezultatul <a href="%{resource_path}">%{resource_title}</a>, care include propunerea <a href="%{proposal_path}">%{proposal_title}</a>, este acum %{progress}% complet.
|
data/config/locales/ru.yml
CHANGED
data/config/locales/si-LK.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
si:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -33,6 +34,7 @@ si:
|
|
33
34
|
import_results:
|
34
35
|
new:
|
35
36
|
import: ආයාත කරන්න
|
37
|
+
link: සබැඳිය
|
36
38
|
models:
|
37
39
|
result:
|
38
40
|
name: ප්රතිඵලය
|
@@ -56,7 +58,6 @@ si:
|
|
56
58
|
models:
|
57
59
|
timeline_entry:
|
58
60
|
fields:
|
59
|
-
description: සවිස්තරය
|
60
61
|
entry_date: දිනය
|
61
62
|
results:
|
62
63
|
show:
|
data/config/locales/sk.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sk:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -48,6 +49,7 @@ sk:
|
|
48
49
|
import_results:
|
49
50
|
new:
|
50
51
|
import: Importovať
|
52
|
+
link: odkaz
|
51
53
|
title: Importovať výsledky zo súboru CSV
|
52
54
|
imports:
|
53
55
|
create:
|
@@ -151,7 +153,6 @@ sk:
|
|
151
153
|
progress: Postup
|
152
154
|
timeline_entry:
|
153
155
|
fields:
|
154
|
-
description: Popis
|
155
156
|
entry_date: Dátum
|
156
157
|
result_m:
|
157
158
|
view: Zobraziť
|
data/config/locales/sl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sl:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -41,6 +42,7 @@ sl:
|
|
41
42
|
import_results:
|
42
43
|
new:
|
43
44
|
import: Uvozi
|
45
|
+
link: povezava
|
44
46
|
title: Uvozi postavke iz CSV datoteke
|
45
47
|
models:
|
46
48
|
result:
|
@@ -96,7 +98,6 @@ sl:
|
|
96
98
|
progress: Napredek
|
97
99
|
timeline_entry:
|
98
100
|
fields:
|
99
|
-
description: Opis
|
100
101
|
entry_date: Datum
|
101
102
|
results:
|
102
103
|
filters:
|
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sv:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -21,6 +22,7 @@ sv:
|
|
21
22
|
timeline_entry:
|
22
23
|
description: Beskrivning
|
23
24
|
entry_date: Datum
|
25
|
+
title: Titel
|
24
26
|
models:
|
25
27
|
decidim/accountability/proposal_linked_event: Förslag som ingår i ett resultat
|
26
28
|
decidim/accountability/result_progress_updated_event: Uppdaterat resultatutvecklingen
|
@@ -48,29 +50,9 @@ sv:
|
|
48
50
|
results: Resultat
|
49
51
|
import_results:
|
50
52
|
new:
|
51
|
-
download_export: Ladda ner exporten som CSV
|
52
53
|
import: Importera
|
53
|
-
info:
|
54
|
-
|
55
|
-
<ol>
|
56
|
-
<li><a href='%{link_new_status}' target='_blank'>Skapa statusarna för de resultat</a> som du vill lägga till</li>
|
57
|
-
<li><a href='%{link_new_result}' target='_blank'>Skapa minst ett resultat manuellt</a> via denna administratörspanel innan du använder Import, för att få en bättre förståelse för formatet och vad du behöver fylla i.</li>
|
58
|
-
<li>%{link_export_csv}</li>
|
59
|
-
<li>Genomför ändringarna lokalt. Du kan endast ändra följande kolumner i CSV-filen:
|
60
|
-
<ul>
|
61
|
-
<li><b>category/id:</b> ID för kategorin</li>
|
62
|
-
<li><b>scope/id:</b> ID för tillämpningsområdet</li>
|
63
|
-
<li><b>parent/id:</b> ID för överordnad (för relaterade resultat). Alternativ</li>
|
64
|
-
<li><b>title/I18N:</b> Titel på X språk</li>
|
65
|
-
<li><b>description/I18N:</b> Beskrivning av X språk</li>
|
66
|
-
<li><b>start_date:</b> datum då resultatet börjar genomföras (format ÅÅÅÅ-MM-DD)</li>
|
67
|
-
<li><b>end_date:</b> datum då resultatet slutar genomföras (format ÅÅÅÅ-MM-DD)</li>
|
68
|
-
<li><b>status/id:</b> ID för statusen för detta resultat</li>
|
69
|
-
<li><b>progress:</b> Procent (från 0 till 100) av genomförandet</li>
|
70
|
-
<li><b>proposals_ids:</b>internt ID för relaterade förslag (kommaseparerade). Omvandlas automatiskt till <span class='attribute-name'>proposal_url</span></li>
|
71
|
-
</ul>
|
72
|
-
</li>
|
73
|
-
</ol>
|
54
|
+
info: "<p>Vi rekommenderar att du följer dessa steg:</p><ol><li>Skapa statusar för de resultat som du vill lägga till (<a href='%{link_new_status}' target='_blank'>länk</a>)</li><li>Skapa minst ett resultat manuellt genom denna Admin panel (<a href='%{link_new_result}' target='_blank'>länk</a>) innan du använder Importera, för att ha en bättre förståelse för formatet och vad du behöver för att fylla i.</li><li>Ladda ner exporten med CSV-format (%{link_export_csv})</li><li>Gör ändringarna lokalt. Du kan bara ändra följande kolumner i CSV:</li></ol><ul><li><b>kategori/id:</b> ID för kategorin</li><li><b>omfattning/id:</b> ID för omfattningen</li><li><b>förälder/id:</b> ID för föräldern (för relaterade resultat). Valfri</li><li><b>title/I18N:</b> Titel på X språk</li><li><b>beskrivning/I18N:</b> Beskrivning på X språk</li><li><b>start_date:</b> datum när resultatet startar exekvering (format YYYY-MM-DD)</li><li><b>end_date:</b> datum när resultatet slutar exekvering (format YYYY-MM-DD)</li><li><b>status/id:</b> ID för status för detta resultat</li><li><b>fortskrider:</b> Procent (från 0 till 100) av exekveringen</li><li><b>förslag_ids:</b> internt ID för de relaterade förslagen (separerade med komma). Det konverteras automatiskt till <span class='attribute-name'>proposal_url</span></li></ul>"
|
55
|
+
link: länk
|
74
56
|
title: Importera resultat från CSV
|
75
57
|
imports:
|
76
58
|
create:
|
@@ -178,8 +160,8 @@ sv:
|
|
178
160
|
progress: Behandling
|
179
161
|
timeline_entry:
|
180
162
|
fields:
|
181
|
-
description: Beskrivning
|
182
163
|
entry_date: Datum
|
164
|
+
title: Titel
|
183
165
|
result_m:
|
184
166
|
executed: Utfört
|
185
167
|
view: Visa
|
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
tr:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -32,8 +33,6 @@ tr:
|
|
32
33
|
decidim:
|
33
34
|
accountability:
|
34
35
|
actions:
|
35
|
-
attachment_collections: Klasörler
|
36
|
-
attachments: Ekler
|
37
36
|
confirm_destroy: Bu %{name}silmek istediğinize emin misiniz?
|
38
37
|
destroy: silmek
|
39
38
|
edit: Düzenle
|
@@ -48,29 +47,9 @@ tr:
|
|
48
47
|
results: Sonuçlar
|
49
48
|
import_results:
|
50
49
|
new:
|
51
|
-
download_export: ' İhracat i CSV formatında indirin '
|
52
50
|
import: İçe aktar
|
53
|
-
info:
|
54
|
-
|
55
|
-
<ol>
|
56
|
-
<li><a herf='%{link_new_status}'
|
57
|
-
target='_bank`>eklemek istediğniz sonuçlar için durumlar oluşturun</a>istediğnizi ekleyiniz</li><li><a herf=%{link_new_result}`target=`_blank`>manuell olarak en az bir sonuç oluşturun</a> İçe aktarmayı kullanmadan önce, formatı ve doldurmanız gerekenleri daha iyi anlamak için bu yönetici paneli uygulayın </li><li>%{link_export_csv}<li>
|
58
|
-
<li>değişiklikleri yerel olarak yapın. CSV` nin yalnızca aşağıdaki sütunlarını değiştirebilirsiniz:
|
59
|
-
<ul>
|
60
|
-
<li><b>kategori/ID:</b>kategorisinin kimliği</li>
|
61
|
-
<li><><b>kapsam/kimlik:</b>kapsam kimliği</li>
|
62
|
-
<li><b>ebeveyn/ID:</b>ebeveyin kimliği(ilgili sonuçlar için).isteğe bağlı</li>
|
63
|
-
<li><b>başlık/en:</b>başlık inglizce olarak.Bu platformunuzdaki dil yapılandırmasına bağlı dır.<li>
|
64
|
-
<li><b>açıklama/en:</b>ingluzce olarak açıklama. Bu platformunuza bağlı olarak dır</li>
|
65
|
-
<li><b>başlangıç_tarihi:</b>sonucun yürütme ye başladığı tarih(format YYYY-AA-GG)</li>
|
66
|
-
<li><b>bitiş_tarihi:</b>sonucun yürütmeyi bitirdiği tarih(format YYY-AA-GG)<li>
|
67
|
-
<li><b>durum/kimlik:</b>bu sonuç için durumun kimliği<li>
|
68
|
-
<li><b>ilerleme:</b>yürütme yüzdesı(0'dan 100'e)<li>
|
69
|
-
<li><b>fikir_önerisi:</b>ilgılı tekliflerin dahili kimliği(virgüle ayrılmış ). Otomatik olarak biçimine dönüşüyor<span class='atttibute-name'>proposal_url</span>
|
70
|
-
</li>
|
71
|
-
</ul>
|
72
|
-
</li>
|
73
|
-
</ol>
|
51
|
+
info: "<p>Bu adımları izlemenizi tavsiye ederiz:</p><ol><li>Eklemek istediğiniz Sonuçlar için Statüleri oluşturun (<a href='%{link_new_status}' target='_blank'>bağlantı</a>)</li><li>Biçimi ve neleri doldurmanız gerektiğini daha iyi anlamak için İçe Aktar'ı kullanmadan önce bu Yönetici paneli (<a href='%{link_new_result}' target='_blank'>bağlantı</a>) aracılığıyla yeniden en az bir Sonuç oluşturun. </li><li>Dışa aktarımı CSV formatında indirin (%{link_export_csv})</li><li>Değişiklikleri yerel olarak yapın. CSV'nin yalnızca aşağıdaki sütunlarını değiştirebilirsiniz:</li></ol><ul><li><b>category/id:</b> Kategori ID</li><li><b>scope/id:</b> Kapsam ID </li><li><b>parent/id:</b> Üst ID (ilgili Sonuçlar için). İsteğe bağlı</li><li><b>title/I18N:</b> X dilinde başlık</li><li><b>description/I18N:</b> X dilinde açıklama</li><li><b>start_date:</b> sonucun uygulamaya başladığı tarih (biçim YYYY-AA-GG)</li><li><b>end_date:</b> sonucun yürütmeyi bitirdiği tarih (biçim YYYY-AA-GG)</li><li><b>status/id:</b> Durum ID</li><li><b>progress:</b> Yürütme yüzdesi (0'dan 100'e)</li><li><b>proposals_ids:</b> İlgili tekliflerin ID'leri (virgülle ayrılmış). Otomatik olarak <span class='attribute-name'>proposal_url</span>'e dönüştürülür</li></ul>"
|
52
|
+
link: bağlantı
|
74
53
|
title: Sonuçları CSV'den içe aktar
|
75
54
|
imports:
|
76
55
|
create:
|
@@ -178,7 +157,6 @@ tr:
|
|
178
157
|
progress: İlerleme
|
179
158
|
timeline_entry:
|
180
159
|
fields:
|
181
|
-
description: Açıklama
|
182
160
|
entry_date: tarih
|
183
161
|
result_m:
|
184
162
|
executed: Yürütüldü
|
data/config/locales/uk.yml
CHANGED
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
zh-CN:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -45,6 +46,7 @@ zh-CN:
|
|
45
46
|
import_results:
|
46
47
|
new:
|
47
48
|
import: 导入
|
49
|
+
link: 链接
|
48
50
|
title: 从 CSV 导入结果
|
49
51
|
imports:
|
50
52
|
create:
|
@@ -143,7 +145,6 @@ zh-CN:
|
|
143
145
|
progress: 进展情况
|
144
146
|
timeline_entry:
|
145
147
|
fields:
|
146
|
-
description: 描述
|
147
148
|
entry_date: 日期
|
148
149
|
results:
|
149
150
|
count:
|
data/config/locales/zh-TW.yml
CHANGED
@@ -1,268 +1,2 @@
|
|
1
|
+
---
|
1
2
|
zh-TW:
|
2
|
-
activemodel:
|
3
|
-
attributes:
|
4
|
-
result:
|
5
|
-
decidim_accountability_status_id: 狀態
|
6
|
-
decidim_category_id: 類別
|
7
|
-
decidim_scope_id: 範圍
|
8
|
-
description: 說明
|
9
|
-
end_date: 結束日期
|
10
|
-
progress: 進度
|
11
|
-
project_ids: 包含的專案
|
12
|
-
proposals: 包含的建議
|
13
|
-
start_date: 開始日期
|
14
|
-
title: 標題
|
15
|
-
updated_at: 更新時間
|
16
|
-
status:
|
17
|
-
description: 說明
|
18
|
-
key: 金鑰
|
19
|
-
name: 名稱
|
20
|
-
progress: 進度
|
21
|
-
timeline_entry:
|
22
|
-
description: 說明
|
23
|
-
entry_date: 日期
|
24
|
-
models:
|
25
|
-
decidim/accountability/proposal_linked_event: 在結果的建議
|
26
|
-
decidim/accountability/result_progress_updated_event: 結果程序已更新
|
27
|
-
activerecord:
|
28
|
-
models:
|
29
|
-
decidim/accountability/result:
|
30
|
-
other: 結果
|
31
|
-
decidim:
|
32
|
-
accountability:
|
33
|
-
actions:
|
34
|
-
attachment_collections: 資料夾
|
35
|
-
attachments: 附件
|
36
|
-
confirm_destroy: 確定要刪除 %{name} ?
|
37
|
-
destroy: 刪除
|
38
|
-
edit: 編輯
|
39
|
-
import_csv: 匯入CSV
|
40
|
-
new: 新增 %{name}
|
41
|
-
preview: 預覽
|
42
|
-
timeline_entries: 專案評估
|
43
|
-
title: 操作
|
44
|
-
admin:
|
45
|
-
exports:
|
46
|
-
result_comments: 評論
|
47
|
-
results: 結果
|
48
|
-
import_results:
|
49
|
-
new:
|
50
|
-
download_export: 匯出成 CSV
|
51
|
-
import: 匯入
|
52
|
-
info: |
|
53
|
-
<p>建議依照下面步驟:</p>
|
54
|
-
<ol>
|
55
|
-
<li><a href='%{link_new_status}' target='_blank'>為結果建立狀態</a> 到你想要新增的</li>
|
56
|
-
<li>在管理介面匯入前 <a href='%{link_new_result}' target='_blank'>至少手動建立一個結果</a> ,這樣才能確認要填寫的資料格式。</li>
|
57
|
-
<li>%{link_export_csv}</li>
|
58
|
-
<li>在自己電腦編輯,只能夠異動下面欄位:
|
59
|
-
<ul>
|
60
|
-
<li><b>category/id:</b> 類別代號</li>
|
61
|
-
<li><b>scope/id:</b> 範圍代號</li>
|
62
|
-
<li><b>parent/id:</b> 上一層代號 (相關結果),選擇性的</li>
|
63
|
-
<li><b>title/en:</b> 英文標題,這要看你的平台語言設定。</li>
|
64
|
-
<li><b>description/en:</b> 英文介紹,這要看你的平台語言設定。</li>
|
65
|
-
<li><b>start_date:</b> 結果開始執行的日期 (格式 YYYY-MM-DD)</li>
|
66
|
-
<li><b>end_date:</b> 結果結束執行的日期 (格式 YYYY-MM-DD)</li>
|
67
|
-
<li><b>status/id:</b> 這個結果的狀態代號</li>
|
68
|
-
<li><b>progress:</b> 這次執行的比率 ( 0 到 100) </li>
|
69
|
-
<li><b>proposals_ids:</b> 相關建議的內部代號 (半形逗點分隔),會自動轉換為 <span class='attribute-name'>proposal_url</span></li>
|
70
|
-
</ul>
|
71
|
-
</li>
|
72
|
-
</ol>
|
73
|
-
title: 從 CSV 匯入結果
|
74
|
-
imports:
|
75
|
-
create:
|
76
|
-
success: 檔案開始匯入,執行完成後會寄發 email 說明匯入結果
|
77
|
-
models:
|
78
|
-
result:
|
79
|
-
name: 結果
|
80
|
-
status:
|
81
|
-
name: 狀態
|
82
|
-
timeline_entry:
|
83
|
-
name: 輸入時間線
|
84
|
-
results:
|
85
|
-
create:
|
86
|
-
invalid: 建立結果時發生錯誤
|
87
|
-
success: 結果成功建立
|
88
|
-
destroy:
|
89
|
-
success: 結果成功刪除
|
90
|
-
edit:
|
91
|
-
title: 編輯結果
|
92
|
-
update: 更新結果
|
93
|
-
index:
|
94
|
-
title: 結果
|
95
|
-
new:
|
96
|
-
create: 建立結果
|
97
|
-
title: 新增結果
|
98
|
-
update:
|
99
|
-
invalid: 更新結果時發生錯誤
|
100
|
-
success: 結果成功更新
|
101
|
-
shared:
|
102
|
-
subnav:
|
103
|
-
statuses: 狀態
|
104
|
-
statuses:
|
105
|
-
create:
|
106
|
-
invalid: 建立狀態時發生錯誤
|
107
|
-
success: 狀態成功建立
|
108
|
-
destroy:
|
109
|
-
success: 狀態成功刪除
|
110
|
-
edit:
|
111
|
-
title: 編輯狀態
|
112
|
-
update: 更新狀態
|
113
|
-
index:
|
114
|
-
title: 狀態
|
115
|
-
new:
|
116
|
-
create: 新增狀態
|
117
|
-
title: 新狀態
|
118
|
-
update:
|
119
|
-
invalid: 更新狀態時發生錯誤
|
120
|
-
success: 狀態成功更新
|
121
|
-
timeline_entries:
|
122
|
-
create:
|
123
|
-
invalid: 建立資料時發生錯誤
|
124
|
-
success: 資料成功建立
|
125
|
-
destroy:
|
126
|
-
success: 資料成功刪除
|
127
|
-
edit:
|
128
|
-
title: 編輯資料
|
129
|
-
update: 更新資料
|
130
|
-
index:
|
131
|
-
title: 專案時程資料
|
132
|
-
new:
|
133
|
-
create: 建立資料
|
134
|
-
title: 新資料
|
135
|
-
update:
|
136
|
-
invalid: 更新資料時發生錯誤
|
137
|
-
success: 資料成功更新
|
138
|
-
admin_log:
|
139
|
-
result:
|
140
|
-
create: "%{user_name} 建立結果 %{resource_name} 在 %{space_name}"
|
141
|
-
delete: "%{user_name} 刪除了 %{resource_name} 在 %{space_name} 的結果"
|
142
|
-
update: "%{user_name} 更新了 %{resource_name} 在 %{space_name} 的結果"
|
143
|
-
value_types:
|
144
|
-
parent_presenter:
|
145
|
-
not_found: '資料庫中找不到上一層 (ID: %{id})'
|
146
|
-
content_blocks:
|
147
|
-
highlighted_results:
|
148
|
-
dates: 日期
|
149
|
-
results: 結果
|
150
|
-
unspecified: 未指定
|
151
|
-
import_mailer:
|
152
|
-
import:
|
153
|
-
errors: 錯誤
|
154
|
-
errors_present: 匯入結果時發生錯誤
|
155
|
-
row_number: 列
|
156
|
-
subject: 結果匯入成功
|
157
|
-
success: 結果匯入成功,在管理介面可以檢視。
|
158
|
-
last_activity:
|
159
|
-
new_result_at_html: "<span>在 %{link} 有新的結果</span>"
|
160
|
-
models:
|
161
|
-
result:
|
162
|
-
fields:
|
163
|
-
category: 類別
|
164
|
-
created_at: 建立時間
|
165
|
-
end_date: 結束日期
|
166
|
-
id: 編號
|
167
|
-
progress: 進度
|
168
|
-
scope: 範圍
|
169
|
-
start_date: 開始日期
|
170
|
-
status: 狀態
|
171
|
-
title: 標題
|
172
|
-
status:
|
173
|
-
fields:
|
174
|
-
description: 說明
|
175
|
-
key: 金鑰
|
176
|
-
name: 名稱
|
177
|
-
progress: 進度
|
178
|
-
timeline_entry:
|
179
|
-
fields:
|
180
|
-
description: 說明
|
181
|
-
entry_date: 日期
|
182
|
-
result_m:
|
183
|
-
executed: 已執行
|
184
|
-
view: 檢視
|
185
|
-
results:
|
186
|
-
count:
|
187
|
-
results_count:
|
188
|
-
other: "%{count} 個結果"
|
189
|
-
filters:
|
190
|
-
all: 全部
|
191
|
-
scopes: 範圍
|
192
|
-
home:
|
193
|
-
categories_label: 類別
|
194
|
-
subcategories_label: 子類別
|
195
|
-
home_header:
|
196
|
-
global_status: 全域執行狀態
|
197
|
-
nav_breadcrumb:
|
198
|
-
global: 全域執行
|
199
|
-
search:
|
200
|
-
search: 搜尋操作
|
201
|
-
show:
|
202
|
-
stats:
|
203
|
-
attendees: 與會者
|
204
|
-
back_to_resource: 返回至結果
|
205
|
-
comments: 評論
|
206
|
-
contributions: 貢獻
|
207
|
-
last_edited_by: 最後編輯者
|
208
|
-
last_updated_at: 更新時間
|
209
|
-
meetings: 會議
|
210
|
-
proposals: 提案
|
211
|
-
votes: 支援
|
212
|
-
timeline:
|
213
|
-
title: 專案評估
|
214
|
-
admin:
|
215
|
-
filters:
|
216
|
-
results:
|
217
|
-
category_id_eq:
|
218
|
-
label: 類別
|
219
|
-
scope_id_eq:
|
220
|
-
label: 範圍
|
221
|
-
status_id_eq:
|
222
|
-
label: 狀態
|
223
|
-
components:
|
224
|
-
accountability:
|
225
|
-
actions:
|
226
|
-
comment: 評論
|
227
|
-
name: 問責
|
228
|
-
settings:
|
229
|
-
global:
|
230
|
-
categories_label: 類別名稱
|
231
|
-
comments_enabled: 已啟用留言
|
232
|
-
comments_max_length: 留言字數上限 (0 表示使用預設)
|
233
|
-
display_progress_enabled: 顯示進度
|
234
|
-
heading_leaf_level_results: 專案名稱
|
235
|
-
heading_parent_level_results: 結果名稱
|
236
|
-
intro: 介紹
|
237
|
-
scope_id: 範圍
|
238
|
-
scopes_enabled: 啟用的範圍
|
239
|
-
subcategories_label: 子類別名稱
|
240
|
-
step:
|
241
|
-
comments_blocked: 留言已封鎖
|
242
|
-
events:
|
243
|
-
accountability:
|
244
|
-
proposal_linked:
|
245
|
-
email_intro: '提案 "%{proposal_title}" 已經包含在結果,可以在這個頁面檢視:'
|
246
|
-
email_outro: 收到這個提醒是因為訂閱了 "%{proposal_title}" ,透過上面連結可以停止訂閱。
|
247
|
-
email_subject: '%{proposal_title} 的更新'
|
248
|
-
notification_title: 這個提案 <a href="%{proposal_path}">%{proposal_title}</a> 已經包含在 <a href="%{resource_path}">%{resource_title}</a> 結果
|
249
|
-
result_progress_updated:
|
250
|
-
email_intro: '這個結果 "%{resource_title}" 包含提案 "%{proposal_title}" 現在完成 %{progress}% ,可以透過網頁檢視:'
|
251
|
-
email_outro: 收到這個通知表示正在訂閱 "%{proposal_title}" ,而這個提案包含在結果 "%{resource_title}" ,透過下面連結可以停止接收通知。
|
252
|
-
email_subject: '%{resource_title} 的更新進度'
|
253
|
-
notification_title: 這個結果 <a href="%{resource_path}">%{resource_title}</a> 包含提案 <a href="%{proposal_path}">%{proposal_title}</a>,現在完成 %{progress}% 。
|
254
|
-
metrics:
|
255
|
-
results:
|
256
|
-
description: 產生的結果數量
|
257
|
-
object: 結果
|
258
|
-
title: 結果
|
259
|
-
participatory_spaces:
|
260
|
-
highlighted_results:
|
261
|
-
see_all: 檢視所有結果 (%{count})
|
262
|
-
resource_links:
|
263
|
-
included_projects:
|
264
|
-
result_project: 這個結果包含的專案
|
265
|
-
included_proposals:
|
266
|
-
result_proposal: 這個結果包含的提案
|
267
|
-
statistics:
|
268
|
-
results_count: 結果
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class MoveLegacyDescriptionToTitleOfTimelineEntries < ActiveRecord::Migration[6.1]
|
4
|
+
class TimelineEntry < ApplicationRecord
|
5
|
+
self.table_name = :decidim_accountability_timeline_entries
|
6
|
+
end
|
7
|
+
|
8
|
+
def up
|
9
|
+
TimelineEntry.find_each do |timeline_entry|
|
10
|
+
timeline_entry.update!(title: timeline_entry.description, description: nil)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -159,7 +159,8 @@ Decidim.register_component(:accountability) do |component|
|
|
159
159
|
rand(0..5).times do |i|
|
160
160
|
child_result.timeline_entries.create!(
|
161
161
|
entry_date: child_result.start_date + i.days,
|
162
|
-
|
162
|
+
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
163
|
+
description: Decidim::Faker::Localized.paragraph(sentence_count: 1)
|
163
164
|
)
|
164
165
|
end
|
165
166
|
|