MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] If Locale Statement



>******    message to minivend-users from Victor Nolton <ven@pragakhan.com>
>******
>
>I haven't seen any informaiton on this in the docs or found anything
>in the archives about this.
>
>I have small graphic images for each locale setup (to allow user to
>click on). If the user is in English mode as a default. I would like
>an alternate image to be displayed so they see what locale they are
>in.
>
>so for english I have a red dollar sign logo and a black one. When
>they are using english the logo will be the red one. If they select a
>different local, I would like it to change to black.
>
>Does anyone know any condition statements for locale to do this.?
>
>[if locale eq en_US]
><img src="money/red-us.gif" border=0 alt="US" width=25 height=25>
>[else]
>[page process/locale/en_US/page/index]<img src="money/black-us.gif"
>border=0 alt="US" width=25 height=25>[/page]
>[/else]
>[/if]
>

Try to use an entry in the locale db for this.

If this does not work, use some unique key in the locale-db and make a
literal comparison, e.g.

in locale.asc:
code	en_US	de_DE	fr_FR
cur_loc	en	de	fr

in page.html:
[if explicit [L]cur_loc[/L] eq en]

should then work.

Frank

--
Frank Miedreich
Max-Planck-Institut fuer psychologische  Forschung
Leopoldstr. 24   80802 Muenchen   +49 89 38602-237




Search for: Match: Format: Sort by: