[FIX]portal,share : fixed the translation issue of share document wizard

bzr revid: mma@tinyerp.com-20121108100319-qfukxayiz7siic39
This commit is contained in:
Hardik Ansodariya (OpenERP) 2012-11-08 15:33:19 +05:30 committed by Mayur Maheshwari (OpenERP)
parent b0c77208d5
commit 7c92b8ba00
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ class share_wizard_portal(osv.TransientModel):
def _user_type_selection(self, cr, uid, context=None):
selection = super(share_wizard_portal, self)._user_type_selection(cr, uid, context=context)
selection.extend([('existing','Users you already shared with'),
('groups','Existing Groups (e.g Portal Groups)')])
selection.extend([('existing',_('Users you already shared with')),
('groups',_('Existing Groups (e.g Portal Groups)'))])
return selection
_columns = {

View File

@ -74,7 +74,7 @@ class share_wizard(osv.TransientModel):
def _user_type_selection(self, cr, uid, context=None):
"""Selection values may be easily overridden/extended via inheritance"""
return [('embedded', 'Direct link or embed code'), ('emails','Emails'), ]
return [('embedded', _('Direct link or embed code')), ('emails',_('Emails')), ]
"""Override of create() to auto-compute the action name"""
def create(self, cr, uid, values, context=None):