From 763ea64342dbc90207393e43dc1168324e20a1e3 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 29 Mar 2011 15:51:42 +0200 Subject: [PATCH] add calls to tools.translate._ bzr revid: rco@openerp.com-20110329135142-0cn6lnbjz4zbkv39 --- addons/portal/portal.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/portal/portal.py b/addons/portal/portal.py index 6519a436a6a..c614148fcc6 100644 --- a/addons/portal/portal.py +++ b/addons/portal/portal.py @@ -20,6 +20,7 @@ ############################################################################## from osv import osv, fields +from tools.translate import _ import random class portal(osv.osv): @@ -29,16 +30,16 @@ class portal(osv.osv): 'name': fields.char(string='Name', size=64, required=True), 'menu_id': fields.many2one('ir.actions.actions', required=True, string='Menu Action', - help="What replaces the standard menu for the portal's users"), + help=_("What replaces the standard menu for the portal's users")), 'user_ids': fields.one2many('res.users', 'portal_id', string='Users', - help='The set of users associated to this portal'), + help=_('The set of users associated to this portal')), 'group_ids': fields.many2many('res.groups', 'res_portals_groups_rel', 'pid', 'gid', string='Groups', - help='Users of this portal automatically belong to those groups'), + help=_('Users of this portal automatically belong to those groups')), } _sql_constraints = [ - ('unique_name', 'UNIQUE(name)', 'Portals must have different names.') + ('unique_name', 'UNIQUE(name)', _('Portals must have different names.')) ] def copy(self, cr, uid, id, defaults, context=None): @@ -173,7 +174,7 @@ class users(osv.osv): _inherit = 'res.users' _columns = { 'portal_id': fields.many2one('res.portal', string='Portal', - help='If given, the portal defines customized menu and access rules'), + help=_('If given, the portal defines customized menu and access rules')), } def default_get(self, cr, uid, fields, context=None):