2010-02-27, 02:16 PM
I'm playing with multi language system and like to add a feature like this:
(1)a session variable determines the session wise language. I think this is done.
(2)before looking at the system default language, for a guest or a user that not specifies the language preference, look at the request IP and figure out a matching language value to that session variable.
It seems doable since there are some IP -> country database for free...
and practically we only support a few languages and just need a small database for the purpose (is not in the countr/language support list, set it to system default language or English)
Any ideas?
(1)a session variable determines the session wise language. I think this is done.
(2)before looking at the system default language, for a guest or a user that not specifies the language preference, look at the request IP and figure out a matching language value to that session variable.
It seems doable since there are some IP -> country database for free...
and practically we only support a few languages and just need a small database for the purpose (is not in the countr/language support list, set it to system default language or English)
Any ideas?