[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:
Stephane Wirtel
2008-11-21 22:47:11 +01:00
parent 7b58ad4b44
commit c4668b6175
+1 -1
View File
@@ -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)