[Zope] dtml-var "fmt" question

Michel Pelletier michel@digicool.com
Thu, 22 Jul 1999 10:14:44 -0400


> -----Original Message-----
> From: Jens Vagelpohl [mailto:tommymi@concentric.net]
> Sent: Thursday, July 22, 1999 8:34 AM
> To: Zope@Zope. Org
> Subject: [Zope] dtml-var "fmt" question
> 
> 
> hi everyone,
> 
> maybe someone has done this before and could advise me: i 
> want to format a
> floating point variable so it comes out using the european 
> decimal point
> notation. so instead of 12.5 i would like it to say 12,5 etc.
> 
> the DTML guide offers some nice built-in formats (like 
> "dollars-and-cents"),
> i wonder if someone had an idea about maybe doing a 
> "euros-and-cents" one,
> with the right decimal punctuation and a euro sign ;)
> 

I would suggest looking at the C format string option ala printf.

http://www.zope.org/Documentation/Guides/DTML/DTML-HTML/DTML.5.1.html

If you want a euros-and-cents format, you'll have to submit a patch.
However you might want to talk to some of the internationalization guys
in the community first.

-Michel

> Jens Vagelpohl
> 
> 
> 
> P.S.: at this point i wonder why i ever wrote static HTML... :P
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>