Index  Up  >>  


Setting the locale

The locale could be set to fr_FR (French for France) in one of two ways:

[setlocale locale=locale* currency=locale* persist=1*]
This tag is for new-style tags only and will not work for [old].

Immediately sets the locale to locale, and will cause it to persist in future user pages if the persist is set to a non-zero, non-blank value. If the currency attribute is set, modifies the pricing and currency-specific locale keys and MiniVend configuration directives to that locale. If there are no arguments, sets it back to the user's default locale as defined in the scratch variables mv_locale and mv_currency.

This allows:

    Dollar Pricing:

    [setlocale en_US]
    [item-list]
    [item-code]: [item-price]<BR>
    [/item-list]

    Franc Pricing:

    [setlocale fr_FR]
    [item-list]
    [item-code]: [item-price]<BR>
    [/item-list]

    [comment] Return to the user's default locale [/comment]
    [setlocale]

This tag is only available in new mode (``NewTags Yes'' or [new]).

[page process/locale/fr_FR/page/catalog]
This is the same as [page catalog], except when the link is followed it will set the locale to fr_FR before displaying the page. This is persistent.

[page process/locale/fr_FR/currency/en_US/page/catalog]
This is the same as [page catalog], except when the link is followed it will set the locale to fr_FR and the pricing/number display to the locale en_US before displaying the page. This is persistent.

Once the locale is persistently set for a user, it is in effect for the duration of their session.


Index  Up  >>