Skip to content

Commit

Permalink
Fix actions translations (#94)
Browse files Browse the repository at this point in the history
* Fix actions translations

* Add test
  • Loading branch information
laurajaime authored Oct 22, 2024
1 parent 075d447 commit 782784c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 28 deletions.
15 changes: 8 additions & 7 deletions config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ ca:
unanswered_proposals_overdue: Quants dies després una proposta sense resposta es considera vençuda
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.
reporting_proposals:
actions:
amend: Esmena
comment: Comentar
create: Crear
endorse: Adherir-se
vote: Donar suport
vote_comment: Votar el comentari
withdraw: Retirar
name: Propostes directes
settings:
global:
Expand Down Expand Up @@ -172,20 +180,13 @@ ca:
admin_resource: Administra el recurs
reporting_proposals:
actions:
amend: Esmena
answer_proposal: Resposta de la proposta
comment: Comentar
create: Crear
edit_proposal: Edita la proposta
endorse: Adherir-se
import: Importa propostes d'un altre component
new: Nova proposta
participatory_texts: Textos participatius
show: Veure proposta
title: Accions
vote: Donar suport
vote_comment: Votar el comentari
withdraw: Retirar
admin:
actions:
edit_valuators: Edita les avaluadores
Expand Down
15 changes: 8 additions & 7 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ de:
unanswered_proposals_overdue: Nach wie vielen Tagen gilt eine nicht beantwortete Meldung als überfällig
unanswered_proposals_overdue_help: Falls keine zeitlichen Hinweise angezeigt werden sollen, wähle hier 0.
reporting_proposals:
actions:
amend: Änderungsvorschlag
comment: Kommentieren
create: Erstellen
endorse: Unterstützung
vote: Abstimmung
vote_comment: Kommentar bewerten
withdraw: Zurückziehen
name: Meldungen
settings:
global:
Expand Down Expand Up @@ -172,20 +180,13 @@ de:
admin_resource: Diese Ressource moderieren
reporting_proposals:
actions:
amend: Änderungsvorschlag
answer_proposal: Meldung beantworten
comment: Kommentieren
create: Erstellen
edit_proposal: Meldung bearbeiten
endorse: Unterstützung
import: Meldungen aus einer anderen Komponente importieren
new: Neue Meldung
participatory_texts: Partizipative Texte
show: Meldung anzeigen
title: Aktionen
vote: Abstimmung
vote_comment: Kommentar bewerten
withdraw: Zurückziehen
admin:
actions:
edit_valuators: Experten ändern
Expand Down
15 changes: 8 additions & 7 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ en:
unanswered_proposals_overdue_help: This adds a visual alert to the list
of proposals. Leave it to zero to disable this feature.
reporting_proposals:
actions:
amend: Amend
comment: Comment
create: Create
endorse: Endorse
vote: Support
vote_comment: Vote comment
withdraw: Withdraw
name: Reporting proposals
settings:
global:
Expand Down Expand Up @@ -235,20 +243,13 @@ en:
admin_resource: Admin this resource
reporting_proposals:
actions:
amend: Amend
answer_proposal: Answer proposal
comment: Comment
create: Create
edit_proposal: Edit proposal
endorse: Endorse
import: Import proposals from another component
new: New proposal
participatory_texts: Participatory texts
show: Show proposal
title: Actions
vote: Support
vote_comment: Vote comment
withdraw: Withdraw
admin:
actions:
edit_valuators: Edit valuators
Expand Down
15 changes: 8 additions & 7 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ es:
unanswered_proposals_overdue: Después de cuántos días se considera una propuesta sin respuesta atrasada
unanswered_proposals_overdue_help: Esto añade una alerta visual a la lista de propuestas. Déjala a cero para desactivar esta característica.
reporting_proposals:
actions:
amend: Enmendar
comment: Comentar
create: Crear
endorse: Adherirse
vote: Apoyar
vote_comment: Votar comentario
withdraw: Retirar
name: Propuestas directas
settings:
global:
Expand Down Expand Up @@ -172,20 +180,13 @@ es:
admin_resource: Administrar este recurso
reporting_proposals:
actions:
amend: Enmendar
answer_proposal: Responder a la propuesta
comment: Comentar
create: Crear
edit_proposal: Editar propuesta
endorse: Adherirse
import: Importar propuestas de otro componente
new: Nueva propuesta
participatory_texts: Textos participativos
show: Ver propuesta
title: Acciones
vote: Apoyar
vote_comment: Votar comentario
withdraw: Retirar
admin:
actions:
edit_valuators: Editar evaluadores
Expand Down
20 changes: 20 additions & 0 deletions spec/system/admin/manage_reporting_proposals_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def edit_component_path(component)
Decidim::EngineRouter.admin_proxy(component.participatory_space).edit_component_path(component.id)
end

def component_path
Decidim::EngineRouter.admin_proxy(component.participatory_space).components_path(component.id)
end

before do
switch_to_host(organization.host)
login_as user, scope: :user
Expand Down Expand Up @@ -62,4 +66,20 @@ def edit_component_path(component)
expect(page).to have_unchecked_field("component_settings_proposal_photo_editing_enabled")
end
end

context "when managing proposals permissions" do
let!(:component) { create(:proposal_component, participatory_space: participatory_process) }

before do
visit component_path
within ".component-#{component.id}" do
click_on "Permissions"
end
end

it "show permissions" do
expect(page).to have_content("Edit permissions")
expect(page).to have_content("Endorse")
end
end
end

0 comments on commit 782784c

Please sign in to comment.