Allow administrators to override budgets translations
This commit is contained in:
@@ -8,7 +8,7 @@ module SiteCustomizationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def information_texts_tabs
|
def information_texts_tabs
|
||||||
[:basic, :debates, :community, :proposals, :polls, :legislation, :layouts, :mailers, :management,
|
[:basic, :debates, :community, :proposals, :polls, :legislation, :budgets, :layouts, :mailers,
|
||||||
:welcome, :machine_learning]
|
:management, :welcome, :machine_learning]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -763,6 +763,7 @@ en:
|
|||||||
proposals: "Proposals"
|
proposals: "Proposals"
|
||||||
polls: "Polls"
|
polls: "Polls"
|
||||||
legislation: "Collaborative legislation"
|
legislation: "Collaborative legislation"
|
||||||
|
budgets: "Budgets"
|
||||||
layouts: "Layouts"
|
layouts: "Layouts"
|
||||||
machine_learning: "AI / Machine Learning"
|
machine_learning: "AI / Machine Learning"
|
||||||
mailers: "Emails"
|
mailers: "Emails"
|
||||||
|
|||||||
@@ -763,6 +763,7 @@ es:
|
|||||||
proposals: "Propuestas"
|
proposals: "Propuestas"
|
||||||
polls: "Votaciones"
|
polls: "Votaciones"
|
||||||
legislation: "Legislación colaborativa"
|
legislation: "Legislación colaborativa"
|
||||||
|
budgets: "Presupuestos participativos"
|
||||||
layouts: "Plantillas"
|
layouts: "Plantillas"
|
||||||
machine_learning: "IA / Machine Learning"
|
machine_learning: "IA / Machine Learning"
|
||||||
mailers: "Correos"
|
mailers: "Correos"
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ describe "Admin custom information texts", :admin do
|
|||||||
|
|
||||||
expect(page).to have_content "Help with 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"
|
click_link "Layouts"
|
||||||
expect(page).to have_content "Accessibility"
|
expect(page).to have_content "Accessibility"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user