committed by
Denis Ledoux
parent
2077c7dff4
commit
052da3e89a
@@ -85,6 +85,7 @@ class lang(osv.osv):
|
|||||||
format = format.replace(pattern, replacement)
|
format = format.replace(pattern, replacement)
|
||||||
return str(format)
|
return str(format)
|
||||||
|
|
||||||
|
conv = locale.localeconv()
|
||||||
lang_info = {
|
lang_info = {
|
||||||
'code': lang,
|
'code': lang,
|
||||||
'iso_code': iso_lang,
|
'iso_code': iso_lang,
|
||||||
@@ -92,8 +93,9 @@ class lang(osv.osv):
|
|||||||
'translatable': 1,
|
'translatable': 1,
|
||||||
'date_format' : fix_datetime_format(locale.nl_langinfo(locale.D_FMT)),
|
'date_format' : fix_datetime_format(locale.nl_langinfo(locale.D_FMT)),
|
||||||
'time_format' : fix_datetime_format(locale.nl_langinfo(locale.T_FMT)),
|
'time_format' : fix_datetime_format(locale.nl_langinfo(locale.T_FMT)),
|
||||||
'decimal_point' : fix_xa0(str(locale.localeconv()['decimal_point'])),
|
'decimal_point' : fix_xa0(str(conv['decimal_point'])),
|
||||||
'thousands_sep' : fix_xa0(str(locale.localeconv()['thousands_sep'])),
|
'thousands_sep' : fix_xa0(str(conv['thousands_sep'])),
|
||||||
|
'grouping' : str(conv.get('grouping', [])),
|
||||||
}
|
}
|
||||||
lang_id = False
|
lang_id = False
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user