fix: forNumber use location

This commit is contained in:
hplattner 2012-03-08 20:47:44 +01:00
parent d09ec9f469
commit 7476928fb9

View file

@ -54,7 +54,7 @@ def formatDate(dt=None, type='date', variant='medium', lang='de'):
def formatNumber(num, type='decimal', lang='de'):
loc = locales.getLocale(lang)
fmt = de.numbers.getFormatter(type)
fmt = loc.numbers.getFormatter(type)
return fmt.format(num)