[ic] Newbie help - Filters - Update to 5.4 - Sign emails

Kevin Walsh kevin at cursor.biz
Sun Feb 5 10:33:24 EST 2006


"Gert van der Spoel" <gert at 3edge.com> 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 &#163; 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 &#163; as currency symbol ... Here it says &price; .
> What happens if you change &price; to &#163; ? 
> 
That &price; should have been &pound; in the first place. :-)

Mark should change "&#163;" to "&pound;" in the Locale, and then change
"&price;" to "&pound;" in the Filter.  Renaming the filter to "pound2gbp"
would be good too.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


More information about the interchange-users mailing list