Commit 288be519 authored by Jérome Perrin's avatar Jérome Perrin

web: no need initialize web site languages

This is something the webmaster will define.
Also, initialize available languages like this will select a random
default language, which the webmaster might not understand.
parent 7ac1453e
......@@ -6,6 +6,4 @@
context.setContainerLayout('erp5_web_layout')
context.setContentLayout('erp5_web_content_layout')
context.setLayoutConfigurationFormId('WebSection_viewDefaultThemeConfiguration')
language_list = context.Localizer.get_supported_languages()
context.setAvailableLanguageSet(language_list)
context.setStaticLanguageSelection(1)
  • This can cause quite a surprising behaviour sometimes:

    Website.setAvailableLanguageSet.webm

  • So I believe it was better to revert this patch, available languages is something web master should choose.

  • So I believe it was better to revert this patch, available languages is something web master should choose.

    I was talking about reverting 304a00ca

  • ... this commit was bad. Fixed in 0881ff56

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