locale pt_BR
Euler Taveira de Oliveira
euler@timbira.com
Tue Oct 24 02:10:00 GMT 2006
Antonio Prado escreveu:
> Locale pt_BR groups through the property grouping?
>
This is not a glibc bug.
> I am trying to format one string using locale but I am not having
> success with the property grouping.
>
> >>>locale.setlocale(locale.LC_ALL, '')
> 'pt_BR.UTF-8'
>
> >>>locale.format("%.2f", 12345678.1, True)
> '12345678,10'
>
> It would have:
> '12.345.678,10'
>
>
> I use Python and Linux/Ubuntu.
>
What's your Python version? 2.4? Try 2.5 [1], locale.currency()
function.
[1] http://docs.python.org/lib/module-locale.html
--
Euler Taveira de Oliveira
http://www.timbira.com/
More information about the Libc-locales
mailing list