c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00207
[Bug 660506] [NEW] Useless _('...') in _constraints messages (v. 6.0)
Public bug reported:
There are some useless _('...') in _constraints and _sql_constraints
messages (v. 6.0) that could be removed. I suppose that the English
texts extracted from this messages to create .pot files will be wrong if
_('...') are no removed.
$ grep -r " _constraints" * -A 1|grep "_("
account/account.py- (_check_percent, _('Percentages for Payment
Term Line must be between 0 and 1, Example: 0.02 for 2% '),
['value_amount']),
marketing_campaign/marketing_campaign.py- (_check_model, _('Model
of filter must be same as resource model of Campaign '),
['ir_filter_id,campaign_id']),
marketing_campaign/marketing_campaign.py- (_check_campaign,
_('The To/From Activity of transition must be of the same Campaign '),
['activity_from_id,activity_to_id']),
product/pricelist.py- (_check_recursion, _('Error ! You cannot
assign the Main Pricelist as Other Pricelist in PriceList Item!'),
['base_pricelist_id'])
project/project.py- (_check_recursion, _('Error ! You cannot
create recursive tasks.'), ['parent_ids'])
$ grep -r "sql_constraints" * -A 1|grep "_("
base/res/res_user.py- ('login_key', 'UNIQUE (login)', _('You can
not have two users with the same login !'))
email_template/email_template.py- ('name', 'unique (name)',
_('The template name must be unique !'))
stock/stock.py- ('name_ref_uniq', 'unique (name, ref)', _('The
combination of serial number and internal reference must be unique !')),
** Affects: openobject-addons
Importance: Undecided
Status: New
--
Useless _('...') in _constraints messages (v. 6.0)
https://bugs.launchpad.net/bugs/660506
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.
Status in OpenObject Addons Modules: New
Bug description:
There are some useless _('...') in _constraints and _sql_constraints messages (v. 6.0) that could be removed. I suppose that the English texts extracted from this messages to create .pot files will be wrong if _('...') are no removed.
$ grep -r " _constraints" * -A 1|grep "_("
account/account.py- (_check_percent, _('Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2% '), ['value_amount']),
marketing_campaign/marketing_campaign.py- (_check_model, _('Model of filter must be same as resource model of Campaign '), ['ir_filter_id,campaign_id']),
marketing_campaign/marketing_campaign.py- (_check_campaign, _('The To/From Activity of transition must be of the same Campaign '), ['activity_from_id,activity_to_id']),
product/pricelist.py- (_check_recursion, _('Error ! You cannot assign the Main Pricelist as Other Pricelist in PriceList Item!'), ['base_pricelist_id'])
project/project.py- (_check_recursion, _('Error ! You cannot create recursive tasks.'), ['parent_ids'])
$ grep -r "sql_constraints" * -A 1|grep "_("
base/res/res_user.py- ('login_key', 'UNIQUE (login)', _('You can not have two users with the same login !'))
email_template/email_template.py- ('name', 'unique (name)', _('The template name must be unique !'))
stock/stock.py- ('name_ref_uniq', 'unique (name, ref)', _('The combination of serial number and internal reference must be unique !')),
Follow ups
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Jay (OpenERP), 2010-11-02
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: ksa(OpenERP), 2010-10-28
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Olivier Dony (OpenERP), 2010-10-26
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Numérigraphe, 2010-10-22
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Numérigraphe, 2010-10-22
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Numérigraphe, 2010-10-20
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Olivier Dony (OpenERP), 2010-10-20
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Jordi Esteve (www.zikzakmedia.com), 2010-10-20
-
[Bug 660506] Re: Useless _('...') in _constraints messages (v. 6.0)
From: Numérigraphe, 2010-10-20
-
[Bug 660506] [NEW] Useless _('...') in _constraints messages (v. 6.0)
From: Jordi Esteve (www.zikzakmedia.com), 2010-10-14
References