-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding site with default language 'de-at' breaks #411
Comments
^^^ @bloodbare @tisto |
workaround for a successful install: choose 'de' or anything else as long it is not a combined language when adding a site. |
confirmed over here |
The problem is still there in the 5.0b2 (fr-ch) |
Currently we don't have an option to select a combined language. Not sure why yet. |
Right, it only shows when your browser says it's language is something with a '-' in it. @thet |
IMO 5.0 should definitely allow specific locales but for a post-sprint 5.0b3 it's very acceptable :) |
Do we see a good reason not to show the whole list by default? |
It can be tricky for most of the sites to need to choose between different english flavous. |
I've reworked the language selection in #693 . |
With current Plone 5 beta 1 and the merged language control panel, adding a site with a language like 'de-at' breaks and gives the following traceback:
Please note, 'de-at' is selected by default, as reported by my browser.
Products.CMFPlone.browser.admin.AddPloneSite.languages
usesplone.i18n.locales.interfaces.IContentLanguageAvailability
and constructs a list of languages with combined language codes, if the default language as reported by the browser contains a "-".Products.CMFPlone.interfaces.controlpanel.ILanguageSchema.use_combined_language_codes
as a default value of False.plone.app.vocabularies.language.AvailableContentLanguageVocabulary
constructs it's language list viaplone.i18n.utility.LanguageUtility.getAvailableLanguages
according to the settinguse_combined_language_codes
, which is False by default.I guess, we have to set
use_combined_language_codes
to True in CMFPlone/factory, if CMFPlone/admin/AddPloneSite decides to use combined language codes...The text was updated successfully, but these errors were encountered: