[FIX] mail: fixed some translation issues.
Document created text was not translatable Subtype was fetched without context, therefore not translated Removed odd override of _t introduced in mail_followers at revision 7885 bzr revid: tde@openerp.com-20130408092447-3ri41v6xluuj0wha
This commit is contained in:
parent
eb3ffc52ed
commit
8b97805621
|
@ -248,7 +248,7 @@ class mail_thread(osv.AbstractModel):
|
|||
|
||||
# automatic logging unless asked not to (mainly for various testing purpose)
|
||||
if not context.get('mail_create_nolog'):
|
||||
self.message_post(cr, uid, thread_id, body='Document created', context=context)
|
||||
self.message_post(cr, uid, thread_id, body=_('Document created'), context=context)
|
||||
return thread_id
|
||||
|
||||
def write(self, cr, uid, ids, values, context=None):
|
||||
|
@ -368,7 +368,7 @@ class mail_thread(osv.AbstractModel):
|
|||
posted = False
|
||||
for subtype in subtypes:
|
||||
try:
|
||||
subtype_rec = self.pool.get('ir.model.data').get_object(cr, uid, subtype.split('.')[0], subtype.split('.')[1])
|
||||
subtype_rec = self.pool.get('ir.model.data').get_object(cr, uid, subtype.split('.')[0], subtype.split('.')[1], context=context)
|
||||
except ValueError, e:
|
||||
_logger.debug('subtype %s not found, giving error "%s"' % (subtype, e))
|
||||
continue
|
||||
|
|
|
@ -148,8 +148,6 @@ openerp_mail_followers = function(session, mail) {
|
|||
}).then(self.proxy('display_generic'));
|
||||
},
|
||||
_format_followers: function(count){
|
||||
// TDE note: why redefining _t ?
|
||||
function _t(str) { return str; }
|
||||
var str = '';
|
||||
if(count <= 0){
|
||||
str = _t('No followers');
|
||||
|
|
Loading…
Reference in New Issue