From: Michael T. <wa...@ko...> - 2004-12-10 15:52:21
|
Hi Ricardo, The http client should be setting a 'Accepted-Languages' header that contains a list of locale settings preferred by the client. Most clients only set one preferred locale, but the http specification allows a client to specify multiple locales, in order of preference. The web server can then iterate through these locales in order of preference to select the first one that is supported. --Mike On Fri, 2004-12-10 at 09:19, Ricardo Jorge wrote: > Hi, > > I need to customize menus for customers, based on their "prefered language" set in their browsers. > > To test I changed the code from mypage.tcl ( included in TCLHTTPD package ) to present a different header ( menu header ) for each customer using > env(LANG) variable, but it seems to take that info ( current language ) from local machine. I mean, the one tclhttpd is running. > > The menus are beeing changed to the correct "local" language, so msgcat implementation seems to be correct. > > I need a way to get (LANG) or whatever variable name, that shows the language set at the remote browser, not local machine. > > What is the trick ? Did someone else achieve this feature ? Thanks > > > Ricardo Jorge > > > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tclhttpd-users |