Forums / General Questions / Setting the language from a page outside Zen cart

Setting the language from a page outside Zen cart

Locked

Views: 966

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Jun 2008, 11:46 PM
#1
renebeau avatar

renebeau

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

Setting the language from a page outside Zen cart

Hi there,

I'm trying to set the language from a page outside Zen cart. But even if I set $_SESSION['language'] in index.php to the value I need the next page will come up in the default language.

Is there a way to set the language in one point to last for that session?

Thanks in advance,
René

21 Jun 2008, 12:36 AM
#2
trac_nez avatar

trac_nez

New Zenner

Join Date:
Jun 2008
Posts:
20
Plugin Contributions:
0

Re: Setting the language from a page outside Zen cart

In the link to the page, insert the parameter '&language=cn', where cn would be the name of the language, in this case Chinese. The language will last until the user asks for a different language.

21 Jun 2008, 3:08 PM
#3
renebeau avatar

renebeau

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

Re: Setting the language from a page outside Zen cart

Trac Nez:

In the link to the page, insert the parameter '&language=cn', where cn would be the name of the language, in this case Chinese. The language will last until the user asks for a different language.

Oh stupid me. I tried 'french' and not 'fr'...
Thanks to your hint it works now.

Thanks again, René