Skip to content

Commit

Permalink
[FIX] lang: Add grouping when loading translation
Browse files Browse the repository at this point in the history
Closes odoo#10669
  • Loading branch information
Thomas Groutars authored and beledouxdenis committed Jan 29, 2016
1 parent 2077c7d commit 052da3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openerp/addons/base/res/res_lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ def fix_datetime_format(format):
format = format.replace(pattern, replacement)
return str(format)

conv = locale.localeconv()
lang_info = {
'code': lang,
'iso_code': iso_lang,
'name': lang_name,
'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:
Expand Down

0 comments on commit 052da3e

Please sign in to comment.