Merge pull request #5137 from consul/legislation_translations
Allow administrators to override legislation and budget translations
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, :budgets, :layouts, :mailers,
|
||||
:management, :welcome, :machine_learning]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -762,6 +762,8 @@ en:
|
||||
community: "Community"
|
||||
proposals: "Proposals"
|
||||
polls: "Polls"
|
||||
legislation: "Collaborative legislation"
|
||||
budgets: "Budgets"
|
||||
layouts: "Layouts"
|
||||
machine_learning: "AI / Machine Learning"
|
||||
mailers: "Emails"
|
||||
|
||||
@@ -762,6 +762,8 @@ es:
|
||||
community: "Comunidad"
|
||||
proposals: "Propuestas"
|
||||
polls: "Votaciones"
|
||||
legislation: "Legislación colaborativa"
|
||||
budgets: "Presupuestos participativos"
|
||||
layouts: "Plantillas"
|
||||
machine_learning: "IA / Machine Learning"
|
||||
mailers: "Correos"
|
||||
|
||||
@@ -27,6 +27,14 @@ 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"
|
||||
|
||||
within("#information-texts-tabs") { click_link "Budgets" }
|
||||
|
||||
expect(page).to have_content "You have not voted any investment project."
|
||||
|
||||
click_link "Layouts"
|
||||
expect(page).to have_content "Accessibility"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user