[dev] Questioning Horde_Currencies

Jan Schneider jan at horde.org
Wed May 2 12:51:50 UTC 2007


Hi,

I'm questioning the usefulness of Horde_Currencies in it's current  
state. IMO it has a flawed design, because it mixes currencies with  
locale specific number formatting. But that doesn't work because  
currency *formatting* is based on the locale and is completely  
independent from the actual currency *name*.

A few examples:
I might charge Euro to a German client like "1.000,00 €" and to a US  
client like "€1,000.00".
At the same time I might charge US Dollar to a German client like  
"1.000,00 $" and not like "$1,000.00".

This means that currency formatting should be according to the current  
locale, or in the context of an invoice, in the recipient's locale.  
The actual currency to be used is determined by completely different  
means.

This leaves only the exchange rates as some added value in  
Horde_Currencies, but due to their nature they don't belong to a  
static table at all.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list