[Mpuls-commits] r4573 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Feb 4 12:51:54 CET 2011
Author: torsten
Date: 2011-02-04 12:51:53 +0100 (Fri, 04 Feb 2011)
New Revision: 4573
Modified:
base/trunk/mpulsweb/model/user.py
Log:
* mpulsweb/model/user.py: Internationalisation of rolenames
Modified: base/trunk/mpulsweb/model/user.py
===================================================================
--- base/trunk/mpulsweb/model/user.py 2011-02-04 10:10:05 UTC (rev 4572)
+++ base/trunk/mpulsweb/model/user.py 2011-02-04 11:51:53 UTC (rev 4573)
@@ -29,6 +29,7 @@
from mpulsweb.lib.security import getDbName
from mpulsweb.lib.db import db
from mpulsweb.lib.base import session
+from mpulsweb.lib.translation import _
log = logging.getLogger(__name__)
@@ -328,13 +329,13 @@
"""
permrole = self.getPermissionRole()
if permrole == 'cm':
- return 'CM'
+ return _('role_user')
elif permrole == 'admin':
- return 'Admin'
+ return _('role_admin')
elif permrole == 'pt':
- return 'PT'
+ return _('role_ptrole')
elif permrole == 'ka':
- return 'Sonder-Admin'
+ return _('role_initialadmin')
else:
return permrole
More information about the Mpuls-commits
mailing list