[login form] fix bad login field label by using pgettext stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 30 Jun 2010 12:27:48 +0200
branchstable
changeset 5838 68187d50968e
parent 5837 67c722b36f7c
child 5839 53cbdc5e0426
[login form] fix bad login field label by using pgettext
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Sat Jun 26 08:44:47 2010 +0200
+++ b/web/views/basetemplates.py	Wed Jun 30 12:27:48 2010 +0200
@@ -481,7 +481,7 @@
         if cw.vreg.config['allow-email-login']:
             label = cw._('login or email')
         else:
-            label = cw._('login')
+            label = cw.pgettext('CWUser', 'login')
         form.field_by_name('__login').label = label
         self.w(form.render(table_class='', display_progress_div=False))
         cw.html_headers.add_onload('jQuery("#__login:visible").focus()')