[interchange-i18n] Passing locale parameters from HTML

Stefan Hornburg Racke racke at linuxia.de
Sun Feb 10 16:55:00 UTC 2002


Michel Matte <michel.matte at sympatico.ca> writes:

> Hi:
> I am trying to pass a language parameter from HTML when I call the
> Interchange application  from an HTML page.   If the page is English I
> have to pass language en_CA (actually en_US will do)  and if it is is
> French I have to pass fr_CA. Then I have to test the value in the
> catalog index page and show the proper menu icons in French or in
> English.

You can switch the locale by calling (replace de_DE with the proper locale)

process/locale/de_DE/page/index

instead of 

index

The locale is then stored in [scratch mv_locale]

Ciao
        Racke

-- 
Think of it !

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info at cobolt.net; Phone: 0041-1-3884400)



More information about the interchange-i18n mailing list