Add missing ugettext_lazy for string in soc.views.user.profile module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 18 Oct 2008 17:49:46 +0000
changeset 384 45d6a1b492d6
parent 383 8a8820544caa
child 385 6d410bf49a82
Add missing ugettext_lazy for string in soc.views.user.profile module. Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/views/user/profile.py
--- a/app/soc/views/user/profile.py	Sat Oct 18 17:27:53 2008 +0000
+++ b/app/soc/views/user/profile.py	Sat Oct 18 17:49:46 2008 +0000
@@ -107,10 +107,10 @@
     # not logged in, and no link name, so request that the user sign in 
     return simple.requestLogin(request, page, template, context,
         # TODO(tlarsen): /user/profile could be a link to a help page instead
-        login_message_fmt='To create a new'
+        login_message_fmt=ugettext_lazy('To create a new'
                           ' <a href="/user/profile">User Profile</a>'
                           ' or modify an existing one, you must first'
-                          ' <a href="%(sign_in)s">sign in</a>.')
+                          ' <a href="%(sign_in)s">sign in</a>.'))
 
   if (not id) and link_name:
     # not logged in, so show read-only public profile for link_name user