[IMP] crm: use %s pattern for variables in translations instead of {}, updated pot file
bzr revid: mat@openerp.com-20140107165840-pxc0rd5ezdnmzip7
This commit is contained in:
parent
cde05c203b
commit
aefcacf1f3
|
@ -1061,13 +1061,13 @@ class crm_lead(base_stage, format_address, osv.osv):
|
|||
def schedule_phonecall_send_note(self, cr, uid, ids, phonecall_id, action, context=None):
|
||||
phonecall = self.pool.get('crm.phonecall').browse(cr, uid, [phonecall_id], context=context)[0]
|
||||
if action == 'log':
|
||||
message = _('Logged a call for {date}. {description}')
|
||||
message = _('Logged a call for %(date)s. %(description)s')
|
||||
else:
|
||||
message = _('Scheduled a call for {date}. {description}')
|
||||
message = _('Scheduled a call for %(date)s. %(description)s')
|
||||
phonecall_date = datetime.strptime(phonecall.date, tools.DEFAULT_SERVER_DATETIME_FORMAT)
|
||||
phonecall_usertime = fields.datetime.context_timestamp(cr, uid, phonecall_date, context=context).strftime(tools.DEFAULT_SERVER_DATETIME_FORMAT)
|
||||
html_time = "<time datetime='%s+00:00'>%s</time>" % (phonecall.date, phonecall_usertime)
|
||||
message = message.format(date=html_time, description=phonecall.description)
|
||||
message = message % dict(date=html_time, description=phonecall.description)
|
||||
return self.message_post(cr, uid, ids, body=message, context=context)
|
||||
|
||||
def log_meeting(self, cr, uid, ids, meeting_subject, meeting_date, duration, context=None):
|
||||
|
|
|
@ -6,8 +6,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-01-07 15:37+0000\n"
|
||||
"PO-Revision-Date: 2014-01-07 15:37+0000\n"
|
||||
"POT-Creation-Date: 2014-01-07 16:56+0000\n"
|
||||
"PO-Revision-Date: 2014-01-07 16:56+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -632,6 +632,12 @@ msgstr ""
|
|||
msgid "Partner Segmentation"
|
||||
msgstr ""
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm_lead.py:1064
|
||||
#, python-format
|
||||
msgid "Logged a call for %(date)s. %(description)s"
|
||||
msgstr ""
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.lead,company_currency:0
|
||||
msgid "Currency"
|
||||
|
@ -2680,12 +2686,6 @@ msgstr ""
|
|||
msgid "Unassigned"
|
||||
msgstr ""
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm_lead.py:1064
|
||||
#, python-format
|
||||
msgid "Logged a call for {date}. {description}"
|
||||
msgstr ""
|
||||
|
||||
#. module: crm
|
||||
#: selection:crm.opportunity2phonecall,action:0
|
||||
#: selection:crm.phonecall2phonecall,action:0
|
||||
|
@ -2814,7 +2814,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: code:addons/crm/crm_lead.py:1066
|
||||
#, python-format
|
||||
msgid "Scheduled a call for {date}. {description}"
|
||||
msgid "Scheduled a call for %(date)s. %(description)s"
|
||||
msgstr ""
|
||||
|
||||
#. module: crm
|
||||
|
|
Loading…
Reference in New Issue