[ic] What's wrong with this syntax ?

José Mª Revuelto interchange-users@interchange.redhat.com
Tue Apr 23 12:21:01 2002


> -----Mensaje original-----
> De: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]En nombre de Lyn
> St George
> Enviado el: martes, 23 de abril de 2002 11:43
> Para: interchange-users@interchange.redhat.com
> Asunto: RE: [ic] What's wrong with this syntax ?
>
>
> On Tue, 23 Apr 2002 07:05:30 +0200, José Mª Revuelto wrote:
>
> >> I´ve tried Price: <b>[item-price]<b> equal to [setlocale
> >es_ES][calc][item-price noformat=1]*166.386[/calc][setlocale],
> but has not
> >the right effect. It show:" $5.99 equal to 996.65214" and locale es_ES is
> >set to currency_symbol=Ptas and frac_digits=0. Is that code right?
>
> No. The 'noformat=1' removes all currency formatting ($ signs etc)
> so that the [calc] will work. You then need to replace the
> currency formatting as well as setting the locale:
>
> [setlocale es_ES][currency][calc][item-price noformat=1]
> *166.386[/calc][/currency][setlocale]
>
> (from memory, the 'frac_digits=0' should be right)
>
Oh my God! Finally it works. Thanks a lot.

> Aren't you required to show Euros now in Spain?
>
Yes, but people is still thinking on spanish pesetas. If you refer to the
dollar symbol y wrote up before, was for better knowledge. The real exit is:
"5.99 € equal to 997 Ptas">
> -
> Cheers
> Lyn St George
> +-----------------------------------------------------------------
> ----------------
> + http://www.zolotek.net .. eCommerce hosting, consulting
> + http://www.os2docs.org .. some 'How To' stuff ...
> +-----------------------------------------------------------------
> -----------------
>
>