[FIX] Use unicode, because there is a warning when the system tries to compare two strings for the language
bzr revid: stephane@tinyerp.com-20081121214711-r806zio10y45gogb
This commit is contained in:
@@ -48,7 +48,7 @@ class ir_translation(osv.osv, Cacheable):
|
||||
lang_ids = lang_obj.search(cr, uid, [('translatable', '=', True)],
|
||||
context=context)
|
||||
langs = lang_obj.browse(cr, uid, lang_ids, context=context)
|
||||
res = [(lang.code, lang.name) for lang in langs]
|
||||
res = [(lang.code, unicode(lang.name,'utf-8')) for lang in langs]
|
||||
for lang_dict in tools.scan_languages():
|
||||
if lang_dict not in res:
|
||||
res.append(lang_dict)
|
||||
|
||||
Reference in New Issue
Block a user