1.2. 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*]
-
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, the pricing and currency-specific locale keys and Interchange configuration directives are modified to that locale. If there are no arguments, it 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]
[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.