Site Language Selection
Posted: Tue Jul 04, 2006 7:17 pm
Hello,
I want my site to support multiple languages (English, French, German, Chinese, and etc.)
I am planning to create a language file for each language at ...
/language/en.lang
/language/fr.lang
/language/jp.lang
How do I allow visitors to select a language to display the site in?
English is the default. When someone clicks on French (French flag or "French"), the site will read the /language/fr.lang file and display the site in French. I want the language to stay intact while visitor goes through each page, unless the visitor selects a different language.
---------------
The above is enough for me for now. However, if you are able to help me go even futhur, it would be great.
Default language by IP:
I want to use Maxmind GeoIP to locate the visitor and display the default language by IP. For instance, if the user is from China (by IP), then the default site language is Chinese (not English). If the visitor is from France (by IP), the default site language is French (not English).
I want my site to support multiple languages (English, French, German, Chinese, and etc.)
I am planning to create a language file for each language at ...
/language/en.lang
/language/fr.lang
/language/jp.lang
How do I allow visitors to select a language to display the site in?
English is the default. When someone clicks on French (French flag or "French"), the site will read the /language/fr.lang file and display the site in French. I want the language to stay intact while visitor goes through each page, unless the visitor selects a different language.
---------------
The above is enough for me for now. However, if you are able to help me go even futhur, it would be great.
Default language by IP:
I want to use Maxmind GeoIP to locate the visitor and display the default language by IP. For instance, if the user is from China (by IP), then the default site language is Chinese (not English). If the visitor is from France (by IP), the default site language is French (not English).