Re: [PHP-I18N] Encoding detection

2001-03-20 Thread Atanas Vassilev
You've been quite helpful for which I thank you very much! I found an article in phpbuilder.com introducing NCTLS - a class that checks the preferred languages and looks for a language file untill it finds a match - now I have it up and running ;-) There's one more issue that bothers me... : On m

Re: [PHP-I18N] Encoding detection

2001-03-19 Thread Gustav Foseid
Atanas Vassilev: > I formed my include like this: > include "lang_".$HTTP_ACCEPT_LANGUAGE.".INC"; This will not work properly. Firts of all, youmight get a request from someone having another language set in their preferences. You can also have more than one language set, in my requests HTTP_ACCE

Re: [PHP-I18N] Encoding detection

2001-03-19 Thread Atanas Vassilev
Thanks for your timely cooperation. In fact following the direction you gave me I found out that $HTTP_ACCEPT_LANGUAGE was what would work even better Something strange happened though: I formed my include like this: include "lang_".$HTTP_ACCEPT_LANGUAGE.".INC"; So, I have 2 files - lang_bg.in

Re: [PHP-I18N] Encoding detection

2001-03-18 Thread Gustav Foseid
Atanas Vassilev: > I need a way to detect default browser encoding so that i can set a > variable for language and present the whole site in different > languages based on encoding. I know encoding does not determine > language but I only have to switch between german and bulgarian so in > my case

[PHP-I18N] Encoding detection

2001-03-18 Thread Atanas Vassilev
Hello everyone, I'm new to this list and I guess this question might already have been asked but all my searches led me to nothing... I need a way to detect default browser encoding so that i can set a variable for language and present the whole site in different languages based on encoding. I k