[geeklog-devel] International number formatting

Blaine Lang devel at portalparts.com
Thu Jul 17 09:27:35 EDT 2008


We have a COM_numberFormat function that uses defines in config.php or 
the config table
  $_CONF['thousand_separator'] = ",";  // could be ' , . etc.
  $_CONF['decimal_separator']  = ".";  // could be , . etc.

There is not an user defined option to set these but a site supporting 
multiple regions would want to be have it change depending on region. If 
we assume that a user selecting Italian wants to see numbers formatted 
in the European format, then the decimal separator is a comma.

How are sites handling this now?
Are they setting these defines in the language file and over-riding the 
default in the config.php??

Blaine



More information about the geeklog-devel mailing list