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
|
||||
|
||||
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
|
||||
|
||||
@@ -762,6 +762,7 @@ en:
|
||||
community: "Community"
|
||||
proposals: "Proposals"
|
||||
polls: "Polls"
|
||||
legislation: "Collaborative legislation"
|
||||
layouts: "Layouts"
|
||||
machine_learning: "AI / Machine Learning"
|
||||
mailers: "Emails"
|
||||
|
||||
@@ -762,6 +762,7 @@ es:
|
||||
community: "Comunidad"
|
||||
proposals: "Propuestas"
|
||||
polls: "Votaciones"
|
||||
legislation: "Legislación colaborativa"
|
||||
layouts: "Plantillas"
|
||||
machine_learning: "IA / Machine Learning"
|
||||
mailers: "Correos"
|
||||
|
||||
@@ -27,6 +27,10 @@ describe "Admin custom information texts", :admin do
|
||||
|
||||
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"
|
||||
expect(page).to have_content "Accessibility"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user