Add missing ugettext_lazy for string in soc.views.user.profile module.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- 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