[ic] redirect, possible?

Stefano Nota interchange-users@lists.akopia.com
Fri May 18 09:13:01 2001


But i don't have many pages for all language,

<a href="[area href="process/locale/en_US/page/@@MV_PAGE@@"]"
class="navigation">english</a>english</a>

I have a link or more like this:
<a href="[area href=index_new arg=1]">Italiano</a>

In the index_new page i get arg and there is a test:
[if session arg == 1]
[then]
	[set mv_locale]it_IT[/set]
[/then]
[/if]
[if session arg == 2]
[then]
	 [set mv_locale]en_US[/set]
[/then]
[/if]
[if session arg == 3]
[then]
	[set mv_locale]fr_FR[/set]
[/then]
[/if]

After setting locale i redirect people.
[bounce href="[area second]"]

It work correctly, what is the problem, i don't want many pages for all
languages

let me know  stefano

-----Messaggio originale-----
Da: interchange-users-admin@developer.akopia.com
[mailto:interchange-users-admin@developer.akopia.com]Per conto di Stefan
Hornburg (Racke)
Inviato: venerd́ 18 maggio 2001 14.50
A: interchange-users@developer.akopia.com
Oggetto: Re: [ic] redirect, possible?


"Stefano Nota" <stefano@register.it> writes:

> No, i used it for internationalization,
>
> I noticed that, when i set locale to a language it takes effect after a
> reload of the page.
> So i set locale in a page which redirect people to the home, and changes
are
> made.

You really should read the documenation on IC locales.
Bouncing is completely unnecessary.

The last Locale setting in catalog.cfg decides which locale is the default.
You may use:

Locale it_IT currency_symbol LIRA

To switch the locales by link, use sth like that:
<a href="[area href="process/locale/en_US/page/@@MV_PAGE@@"]"
class="navigation">english</a>

Bye
        Racke

--
Master of Swiss Web 2001: http://www.zweifel.ch/

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users