Commit f2361768 authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! web: no need initialize web site languages

Tests asserts that size have all languages available, so let's be
compatible and just set the default language to the current selected
one at site creation.
parent 52597061
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
context.setContainerLayout('erp5_web_layout') context.setContainerLayout('erp5_web_layout')
context.setContentLayout('erp5_web_content_layout') context.setContentLayout('erp5_web_content_layout')
context.setLayoutConfigurationFormId('WebSection_viewDefaultThemeConfiguration') context.setLayoutConfigurationFormId('WebSection_viewDefaultThemeConfiguration')
# At least one available language is required localizer = context.getPortalObject().Localizer
context.setAvailableLanguageSet([context.Localizer.get_selected_language()]) context.setAvailableLanguageSet(localizer.get_supported_languages())
context.setDefaultAvailableLanguage(localizer.get_selected_language())
context.setStaticLanguageSelection(1) context.setStaticLanguageSelection(1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment