Skip to content

Commit 782784c

Browse files
authored
Fix actions translations (#94)
* Fix actions translations * Add test
1 parent 075d447 commit 782784c

File tree

5 files changed

+52
-28
lines changed

5 files changed

+52
-28
lines changed

config/locales/ca.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ ca:
3737
unanswered_proposals_overdue: Quants dies després una proposta sense resposta es considera vençuda
3838
unanswered_proposals_overdue_help: Aquesta regla afegeix una alerta visual a la llista e propostes. Si no ho vols utilitzar, deixa aquest valor a zero.
3939
reporting_proposals:
40+
actions:
41+
amend: Esmena
42+
comment: Comentar
43+
create: Crear
44+
endorse: Adherir-se
45+
vote: Donar suport
46+
vote_comment: Votar el comentari
47+
withdraw: Retirar
4048
name: Propostes directes
4149
settings:
4250
global:
@@ -172,20 +180,13 @@ ca:
172180
admin_resource: Administra el recurs
173181
reporting_proposals:
174182
actions:
175-
amend: Esmena
176183
answer_proposal: Resposta de la proposta
177-
comment: Comentar
178-
create: Crear
179184
edit_proposal: Edita la proposta
180-
endorse: Adherir-se
181185
import: Importa propostes d'un altre component
182186
new: Nova proposta
183187
participatory_texts: Textos participatius
184188
show: Veure proposta
185189
title: Accions
186-
vote: Donar suport
187-
vote_comment: Votar el comentari
188-
withdraw: Retirar
189190
admin:
190191
actions:
191192
edit_valuators: Edita les avaluadores

config/locales/de.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ de:
3737
unanswered_proposals_overdue: Nach wie vielen Tagen gilt eine nicht beantwortete Meldung als überfällig
3838
unanswered_proposals_overdue_help: Falls keine zeitlichen Hinweise angezeigt werden sollen, wähle hier 0.
3939
reporting_proposals:
40+
actions:
41+
amend: Änderungsvorschlag
42+
comment: Kommentieren
43+
create: Erstellen
44+
endorse: Unterstützung
45+
vote: Abstimmung
46+
vote_comment: Kommentar bewerten
47+
withdraw: Zurückziehen
4048
name: Meldungen
4149
settings:
4250
global:
@@ -172,20 +180,13 @@ de:
172180
admin_resource: Diese Ressource moderieren
173181
reporting_proposals:
174182
actions:
175-
amend: Änderungsvorschlag
176183
answer_proposal: Meldung beantworten
177-
comment: Kommentieren
178-
create: Erstellen
179184
edit_proposal: Meldung bearbeiten
180-
endorse: Unterstützung
181185
import: Meldungen aus einer anderen Komponente importieren
182186
new: Neue Meldung
183187
participatory_texts: Partizipative Texte
184188
show: Meldung anzeigen
185189
title: Aktionen
186-
vote: Abstimmung
187-
vote_comment: Kommentar bewerten
188-
withdraw: Zurückziehen
189190
admin:
190191
actions:
191192
edit_valuators: Experten ändern

config/locales/en.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ en:
5050
unanswered_proposals_overdue_help: This adds a visual alert to the list
5151
of proposals. Leave it to zero to disable this feature.
5252
reporting_proposals:
53+
actions:
54+
amend: Amend
55+
comment: Comment
56+
create: Create
57+
endorse: Endorse
58+
vote: Support
59+
vote_comment: Vote comment
60+
withdraw: Withdraw
5361
name: Reporting proposals
5462
settings:
5563
global:
@@ -235,20 +243,13 @@ en:
235243
admin_resource: Admin this resource
236244
reporting_proposals:
237245
actions:
238-
amend: Amend
239246
answer_proposal: Answer proposal
240-
comment: Comment
241-
create: Create
242247
edit_proposal: Edit proposal
243-
endorse: Endorse
244248
import: Import proposals from another component
245249
new: New proposal
246250
participatory_texts: Participatory texts
247251
show: Show proposal
248252
title: Actions
249-
vote: Support
250-
vote_comment: Vote comment
251-
withdraw: Withdraw
252253
admin:
253254
actions:
254255
edit_valuators: Edit valuators

config/locales/es.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ es:
3737
unanswered_proposals_overdue: Después de cuántos días se considera una propuesta sin respuesta atrasada
3838
unanswered_proposals_overdue_help: Esto añade una alerta visual a la lista de propuestas. Déjala a cero para desactivar esta característica.
3939
reporting_proposals:
40+
actions:
41+
amend: Enmendar
42+
comment: Comentar
43+
create: Crear
44+
endorse: Adherirse
45+
vote: Apoyar
46+
vote_comment: Votar comentario
47+
withdraw: Retirar
4048
name: Propuestas directas
4149
settings:
4250
global:
@@ -172,20 +180,13 @@ es:
172180
admin_resource: Administrar este recurso
173181
reporting_proposals:
174182
actions:
175-
amend: Enmendar
176183
answer_proposal: Responder a la propuesta
177-
comment: Comentar
178-
create: Crear
179184
edit_proposal: Editar propuesta
180-
endorse: Adherirse
181185
import: Importar propuestas de otro componente
182186
new: Nueva propuesta
183187
participatory_texts: Textos participativos
184188
show: Ver propuesta
185189
title: Acciones
186-
vote: Apoyar
187-
vote_comment: Votar comentario
188-
withdraw: Retirar
189190
admin:
190191
actions:
191192
edit_valuators: Editar evaluadores

spec/system/admin/manage_reporting_proposals_component_spec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ def edit_component_path(component)
1212
Decidim::EngineRouter.admin_proxy(component.participatory_space).edit_component_path(component.id)
1313
end
1414

15+
def component_path
16+
Decidim::EngineRouter.admin_proxy(component.participatory_space).components_path(component.id)
17+
end
18+
1519
before do
1620
switch_to_host(organization.host)
1721
login_as user, scope: :user
@@ -62,4 +66,20 @@ def edit_component_path(component)
6266
expect(page).to have_unchecked_field("component_settings_proposal_photo_editing_enabled")
6367
end
6468
end
69+
70+
context "when managing proposals permissions" do
71+
let!(:component) { create(:proposal_component, participatory_space: participatory_process) }
72+
73+
before do
74+
visit component_path
75+
within ".component-#{component.id}" do
76+
click_on "Permissions"
77+
end
78+
end
79+
80+
it "show permissions" do
81+
expect(page).to have_content("Edit permissions")
82+
expect(page).to have_content("Endorse")
83+
end
84+
end
6585
end

0 commit comments

Comments
 (0)