[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/security/browser/auth.py
Login/Logout labels are translatable again.
Dmitry Vasiliev
dima at hlabs.spb.ru
Fri Mar 11 08:39:14 EST 2005
Log message for revision 29440:
Login/Logout labels are translatable again.
Changed:
U Zope3/trunk/src/zope/app/security/browser/auth.py
-=-
Modified: Zope3/trunk/src/zope/app/security/browser/auth.py
===================================================================
--- Zope3/trunk/src/zope/app/security/browser/auth.py 2005-03-11 13:24:56 UTC (rev 29439)
+++ Zope3/trunk/src/zope/app/security/browser/auth.py 2005-03-11 13:39:13 UTC (rev 29440)
@@ -119,7 +119,7 @@
redirect = ViewPageTemplateFile('redirect.pt')
-class LoginLogout:
+class LoginLogout(object):
def __init__(self, context, request):
self.context = context
@@ -132,5 +132,6 @@
else:
page = '@@logout.html'
label = _('[Logout]')
- return '<a href="%s?nextURL=%s">%s</a>' % (
- page, urllib.quote(self.request.getURL()), label)
+ return u'<a href="%s?nextURL=%s">%s</a>' % (
+ page, urllib.quote(self.request.getURL()),
+ translate(label, context=self.request))
More information about the Zope3-Checkins
mailing list