Re: locales, lang menu and usages
alex black <[email protected]> Fri, 25 Mar 2005 19:06:03 -0800
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
+1 on all > Proposed changes > * current lang and country should be stored into User class and not > directly in session > * on startup, User is restored from session; if no lang, it's > negociated if possible, else default site lang is used; if no country, > if not obtained from negociation, take the default one for the lang. > * add getDefaultLang() and getAvailableLangs() to I18n class, that > will simply take first two chars of i18n.conf values > * when chosen lang/country is not available, translation or format > tries to use default lang/country instead (ehancement: use Negociation > to learn what choices are set in Client, and follow Client list of > locales to find a default lang/country to replace missing ressource). > It's important to have this mechanism when a site is only partially > translated. > * Client should keep a list of preferred locales (AcceptLanguages) > > * LangMenu should still use only langs and not locales. _______________________________________________ dev mailing list dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected] http://lists.binarycloud.com/mailman/listinfo/dev