← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 668642] Re: Translation method wrong usage in account_bank_statement.py

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
Translation method wrong usage in account_bank_statement.py
https://bugs.launchpad.net/bugs/668642
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Confirmed

Bug description:
There are wrong usage of translation method : _('...')

I got fresh code at 2010-10-30.

addons/account/account_bank_statement.py line 333: button_open method

raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name)))

It could be like this :
raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !') % (statement.user_id.name, statement.journal_id.name))

-------------------------
I think there are many same bugs like this. This BUG will making po syntax errors like this :

#. module: account
#: code:addons/account/account_cash_statement.py:0
#, python-format
msgid ""
"User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name)))\n"
"\n"
"        if statement.name and statement.name == '/':\n"
"            number = self.pool.get('ir.sequence"
msgstr ""





References