"Gert van der Spoel" <suppressed> wrote:
> Mark Halliday writes:
> > I have set the Locale to en_GB using the guide on the
> > net. I have set the currency symbol to £ which
> > works in the HTML pages, but I cannot get the filter
> > below to work in the text email produced by
> > mail_receipt.
> >
> > [snip]
> >
> > CodeDef price2gbp Filter
> > CodeDef price2gbp Routine <<EOR
> > sub {
> > my $val = shift;
> >
> > $val =~ s/&price;\s*/GBP /g;
> > return $val;
> > }
> > EOR
> >
> Above you say £ as currency symbol ... Here it says &price; .
> What happens if you change &price; to £ ?
>
That &price; should have been £ in the first place. :-)
Mark should change "£" to "£" in the Locale, and then change
"&price;" to "£" in the Filter. Renaming the filter to "pound2gbp"
would be good too.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ suppressed
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.