committed by
Denis Ledoux
parent
2077c7dff4
commit
052da3e89a
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user