Hello,

The bug reported here and its duplicate(lp:797272) has two problems...

1: The translations are missing as per comment #2
2: Having look at the case given in (lp:797272) the code written is something 
like this in crm_lead.py at line 304.

 self.history(cr, uid, ids, _("Changed Stage to: %s") % stage_obj.name,
details=_("Changed Stage to: %s") % stage_obj.name)

note here the 4th argument value " _("Changed Stage to: %s") %
stage_obj.name" its passed like this... which is the cause of the bug
even if the translations are availble in the respective *.po files. The
value is translated before replacing the value of "%s" by
stage_obj.name.

So for the 1st part the *.po files needs to be updated where as for the 2nd 
part I request the addons team to change in the modules where this sort of code 
effect few eg: crm, project etc they are the modules which has history to be 
maintained.. the changes to be done is to assign the value before 
translation... i.e
something like:
msg = "Changed Stage to: %s") % stage_obj.name
self.history(cr, uid, ids,msg, details=msg)

@ community team : can you please add the bug to addons project too

Correct me if I am missing something !

Thanks !

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/707984

Title:
  [V6][project_mailgate] Terms in history are not entirely translated

Status in OpenERP Server:
  Confirmed

Bug description:
  Hi,

  All is in the summary.
  In project_mailgate module, the terms in history are not entirely translated.

  V6.0.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/707984/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to