View Single Post
Old 03-19-2003, 01:24 AM  
rossiya2
Confirmed User
 
Join Date: Nov 2002
Posts: 287
I had to support multiple languages and detect dialect preferences of the surfer. The Russian Apache server can do this without additional programming. I haven't tried the vanilla Apache for such situations. But it seems that the following variable's language setting can be used with a filesmatch directive using the httpd.conf file alone:

'HTTP_USER_AGENT'

Contents of the User_Agent: header from the current request, if there is one. This is a string denoting the user agent being which is accessing the page. A typical example is: Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586). Among other things, you can use this value with get_browser() to tailor your page's output to the capabilities of the user agent.

My chatbot is http://www.cologroup.net/html/chat/frame2.html
rossiya2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote