[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] If Locale Statement
Try this:
Insert this two words (red-us and black-us) into your locale.asc file.
And finally
use this codes. e.g.
<img src="money/[L]iamgeus[/L].gif" border=0 alt="US" width=25 height=25>
What will happen?
If the user is in English mode, you get
<img src="money/red-us.gif" border=0 alt="US" width=25 height=25>
otherwise, you get
<img src="money/black-us.gif" border=0 alt="US" width=25 height=25>
An example, see
https://www.buchonline.net/cgi-bin/bol/ord/infobasket
and go to the link "English" or "Deutsch" to switch the language mode.
Good luck!
Joachim
On 13 Sep, Victor Nolton wrote:
> ****** 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]
>
> Ven's News: http://www.pragakhan.com/news.html
>
> Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
> AOL: WebmstrVen Praga Khan's Official Website ICQ: 8321393
> http://www.pragakhan.com
> Lords of Acid Official Website
> http://www.lordsofacid.com
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen