Just that there was quite some discussion about this on this list last
week ... :)

I think what is needed is the ability to specify the thousands separator
and the decimal point, as these vary from country to country.

Probably these should be defined in the USE statement. In my module
MySQL::DateFormat one can specify a pre-configured locale such as 'us' or
'eu' using the 'format' parameter to the constructor. Perhaps there would
be a place for such trickery in this package?

I'll have a look at the module and see if I can come up with a patch.

- nick

~~~~~~~~~~~~~~~~~~~~   
Nick Tonkin   {|8^)>


On Mon, 29 Jul 2002, Tatsuhiko Miyagawa wrote:

> At Fri, 26 Jul 2002 06:35:50 -0700 (PDT),
> Nick Tonkin wrote:
>  
> > So did you provide for localization?
> 
> Currently nothing. But patches are always welcome ;)
> 
> > > NAME
> > >     Template::Plugin::Comma - TT Plugin to commify numbers
> > > 
> > > SYNOPSIS
> > >       [% USE Comma %]
> > > 
> > >       [% FILTER comma -%]
> > >       This item costs 10000 dollar.
> > >       [%- END %]
> > > 
> > >       # Output:
> > >       # This item costs 10,000 dollar.
> > > 
> > >       This item costs [% item.price | comma %] dollar.
> > > 
> > >       # Output:
> > >       # This item costs 10,000 dollar.
> 
> -- 
> Tatsuhiko Miyagawa <[EMAIL PROTECTED]>
> 


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to