- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- February 2004
- Status:
- offline
- last visit:
- 15.02.04
- Posts:
- 4
Hi,
is it possible to automaticly activate a specific language.
If using my national web-address www.oratool.de i want to activate the german language, if using the international www.oratool.com i want to use the english language.
Any ideas ?
Greetings and thanks
Jens -
- rank:
-
Professional
- registered:
- September 2003
- Status:
- offline
- last visit:
- 11.04.08
- Posts:
- 3055
You can change the language dynamically by reloading the page with:
Code
&newlang=en
tacked on to the URL (or ? if there are no other parameters)...
You could perhaps, in the themeheader of your theme, use a PHP environment variable to check what URL is being accessed, and reload the page in that language (using the PHP env variable plus the appended desired language) if it is already not set to the language in question. There's a pnAPI function call "getlanguage" or something to that effect to find out what language is being used...
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info...
