Allow administrators to override legislation translations
Now administrators can override default legislation translations through the administration panel.
This commit is contained in:
@@ -8,6 +8,7 @@ module SiteCustomizationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def information_texts_tabs
|
def information_texts_tabs
|
||||||
[:basic, :debates, :community, :proposals, :polls, :layouts, :mailers, :management, :welcome, :machine_learning]
|
[:basic, :debates, :community, :proposals, :polls, :legislation, :layouts, :mailers, :management,
|
||||||
|
:welcome, :machine_learning]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -762,6 +762,7 @@ en:
|
|||||||
community: "Community"
|
community: "Community"
|
||||||
proposals: "Proposals"
|
proposals: "Proposals"
|
||||||
polls: "Polls"
|
polls: "Polls"
|
||||||
|
legislation: "Collaborative legislation"
|
||||||
layouts: "Layouts"
|
layouts: "Layouts"
|
||||||
machine_learning: "AI / Machine Learning"
|
machine_learning: "AI / Machine Learning"
|
||||||
mailers: "Emails"
|
mailers: "Emails"
|
||||||
|
|||||||
@@ -762,6 +762,7 @@ es:
|
|||||||
community: "Comunidad"
|
community: "Comunidad"
|
||||||
proposals: "Propuestas"
|
proposals: "Propuestas"
|
||||||
polls: "Votaciones"
|
polls: "Votaciones"
|
||||||
|
legislation: "Legislación colaborativa"
|
||||||
layouts: "Plantillas"
|
layouts: "Plantillas"
|
||||||
machine_learning: "IA / Machine Learning"
|
machine_learning: "IA / Machine Learning"
|
||||||
mailers: "Correos"
|
mailers: "Correos"
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ describe "Admin custom information texts", :admin do
|
|||||||
|
|
||||||
expect(page).to have_content "Results"
|
expect(page).to have_content "Results"
|
||||||
|
|
||||||
|
within("#information-texts-tabs") { click_link "Collaborative legislation" }
|
||||||
|
|
||||||
|
expect(page).to have_content "Help with collaborative legislation"
|
||||||
|
|
||||||
click_link "Layouts"
|
click_link "Layouts"
|
||||||
expect(page).to have_content "Accessibility"
|
expect(page).to have_content "Accessibility"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user