[ic] Re: Locale fixes

Jon Jensen interchange-users@icdevgroup.org
Sat Jan 25 14:40:00 2003


On Sat, 25 Jan 2003, Toni Mueller wrote:

> Using the code
> 
> [item-price]<br>
> [currency locale=de_DE@euro]
> [item-price noformat]
> [/currency]
> 
> should display the price in the default locale (first occurrance), and
> the specified locale (second occurrance). I've tried to say various
> incantations of [setlocale] in front of the first [item-price], but
> could not see any effect. Ie, I changed PriceDivide for fr_FR@euro to
> .8, restarted Interchange and still found the price being the same for
> both fr_FR@euro and de_DE@euro when saying:
> 
> [setlocale fr_FR@euro]
> [item-price]<br>
> [currency locale=de_DE@euro]
> [item-price noformat]
> [/currency]

Are you sure this isn't because [item-price], being a list tag, is 
interpolating before your [setlocale] tags? That's what it looks like to 
me. So all your [item-price] tags get interpolated, then afterwards, 
[setlocale] and [currency] tags operate but have no visible effect since 
the prices are already hard numbers.

Jon