← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 675655] Re: Several messages to translate are not correctly enclosed in _('.....')

 

Hello Jordi,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons
/ssi-dev-addons1

Soon it will be merged into main addons.

Thanks for notifying us.


** Changed in: openobject-addons
       Status: In Progress => Fix Released

-- 
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/675655

Title:
  Several messages to translate are not correctly enclosed in _('.....')

Status in OpenObject Addons Modules:
  Fix Released

Bug description:
  In several modules there are messages to translate that are not correctly enclosed in _('.....'), so when they are extracted to .pot files, they include a lot of Python code.

You can find some of them with these commands:

$ grep -r "_('.*' %" *
$ grep -r "_(\".*\" %" *

account/wizard/account_move_journal.py:                raise osv.except_osv(_('Configuration Error !'), _('Can\'t find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\Financial Accounting\Accounts\Journals.' % (context.get('journal_type'))))
account_analytic_plans/wizard/account_crossovered_analytic.py:            raise osv.except_osv(_('User Error'),_('There are no Analytic lines related to Account %s' % name))
caldav/calendar.py:                raise osv.except_osv(_('Warning !'), _('Please provide proper configuration of "%s" in Calendar Lines' % (name)))
hr_holidays/hr_holidays.py:                        raise osv.except_osv(_('Warning!'),_('You cannot validate leaves for %s while available leaves are less than asked leaves.' %(record.employee_id.name)))
hr_holidays/hr_holidays.py:                        raise osv.except_osv(_('Warning!'),_('You cannot validate leaves for %s while available leaves are less than asked leaves.' %(record.category_id.name)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll/hr_payroll.py:                        raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Error !'), _('Please define bank account for the %s employee' % (slip.employee_id.name)))
hr_payroll/hr_payroll.py:                        raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Error !'), _('Please check configuration of %s, payroll head is missing' % (hday.holiday_status_id.name)))
hr_payroll/hr_payroll.py:                    raise osv.except_osv(_('Variable Error !'), _('Variable Error: %s ' % (e)))
hr_payroll_account/hr_payroll_account.py:                raise osv.except_osv(_('Integrity Error !'), _('Please defined bank account for %s !' % (slip.employee_id.name)))
hr_payroll_account/hr_payroll_account.py:                raise osv.except_osv(_('Integrity Error !'), _('Please defined partner in bank account for %s !' % (slip.employee_id.name)))
mrp/mrp.py:                raise osv.except_osv(_('Invalid action !'), _('Cannot delete Production Order(s) which are in %s State!' % s['state']))
point_of_sale/wizard/pos_open_statement.py:                raise osv.except_osv(_('Message'), _('You can not open a Cashbox for "%s".\nPlease close its related cash register.' %(journal.name)))
project_scrum/project_scrum.py:                raise osv.except_osv(_('Error !'), _(' Email Not send to the scrum master %s!' % meeting_id.sprint_id.scrum_master_id.name))
project_scrum/project_scrum.py:                raise osv.except_osv(_('Error !'), _(' Email Not send to the product owner %s!' % meeting_id.sprint_id.product_owner_id.name))
stock/product.py:        if not account_variation_id: raise osv.except_osv(_('Error!'), _('Variation Account is not specified for Product Category: %s' % (product_obj.categ_id.name)))
stock/stock.py:                assert partial_data, _('Do not Found Partial data of Stock Move Line :%s' %(move.id))
stock/stock.py:            assert partial_data, _('Do not Found Partial data of Stock Move Line :%s' %(move.id))

audittrail/audittrail.py:        assert field_id, _("'%s' field does not exist in '%s' model" %(field_name, model.model))
audittrail/audittrail.py:            assert field_id, _("'%s' field does not exist in '%s' model" %(line['name'], model.model))
audittrail/audittrail.py:        assert model_id, _("'%s' Model does not exist..." %(model))
email_template/email_template_mailbox.py:                                 _("Error sending mail: %s" % str(e)))





References