result = super(ir_translation, self).unlink(cursor, user, ids, context=context)
return result
+ def _get_import_cursor(self, cr, uid, context=None):
+ """ Return a cursor-like object for fast inserting translations
+ """
- if context is None:
- context = {}
+ return ir_translation_import_cursor(cr, uid, self, context=context)
+
ir_translation()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
tools.trans_load(cr, f, lang, verbose=False, context=context2)
elif iso_lang != 'en':
logger.warning('module %s: no translation for language %s', mod.name, iso_lang)
- tools.trans_update_res_ids(cr)
- # tools.trans_update_res_ids(cr)
def check(self, cr, uid, ids, context=None):
logger = logging.getLogger('init')