Skip to content

Commit

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

* Add test
  • Loading branch information
laurajaime authored Nov 20, 2024
1 parent b7bef93 commit 03c063b
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,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
8 changes: 8 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,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
8 changes: 8 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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
8 changes: 8 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,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
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 03c063b

Please sign in to comment.