Reputation: 1500
I need set property in LC_MONETARY
in locale pt_BR
.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'pt_BR')
'pt_BR'
>>> value = 1234567.89
>>> locale.currency(value)
'1234567,89 R$'
but normal format of currency is R$ 1.234.567,89
.
I see the doc in https://docs.python.org/2/library/locale.html#locale.LC_MONETARY but not have methods to set p_sign_posn
property?
Upvotes: 2
Views: 359
Reputation: 799300
The property is given in the locale data for the operating system. If you feel that the value is incorrect then you should file a bug with the developer of your OS.
Upvotes: 1