[FIX] lang: Add grouping when loading translation

Closes #10669
This commit is contained in:
Thomas Groutars
2016-01-29 18:47:20 +01:00
committed by Denis Ledoux
parent 2077c7dff4
commit 052da3e89a
+4 -2
View File
@@ -85,6 +85,7 @@ class lang(osv.osv):
format = format.replace(pattern, replacement)
return str(format)
conv = locale.localeconv()
lang_info = {
'code': lang,
'iso_code': iso_lang,
@@ -92,8 +93,9 @@ class lang(osv.osv):
'translatable': 1,
'date_format' : fix_datetime_format(locale.nl_langinfo(locale.D_FMT)),
'time_format' : fix_datetime_format(locale.nl_langinfo(locale.T_FMT)),
'decimal_point' : fix_xa0(str(locale.localeconv()['decimal_point'])),
'thousands_sep' : fix_xa0(str(locale.localeconv()['thousands_sep'])),
'decimal_point' : fix_xa0(str(conv['decimal_point'])),
'thousands_sep' : fix_xa0(str(conv['thousands_sep'])),
'grouping' : str(conv.get('grouping', [])),
}
lang_id = False
try: