Re: [Cppcms-users] Getting to feature freeze for CppCMS 1.0.0
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-09-05 04:55:19
|
> Hello, > > Glad to hear 1.0.0 will soon arrive. > > I would like to have if possible, the possibility to get the accepted > languages sent by a browser as an ordered collection (depending of the > priority given for each languages), that would ease the selection of the > language in which to display the website, and permit easy fallback to a > less prefered language. > You mean this (Accept-Language)? http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 Actually I think it would be good idea to add parsing of this type of header like foo;q=0.3 bar;q=0.2 to ordered collection in general. It would be useful for many other Accept* headers like Accept-Encoding or Accept-Charset and so on. Ok... I'll take a look on it, but this is something that does not really requires incompatible changes in API, just need a small parser. So I can schedule it for 1.1.x version (unless somebody sends me a patch with such parser) Artyom |