My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 6: gettext alias is needed
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Nov 2007


 
Reported by mand...@gmail.com, Nov 9, 2007
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#_nolongerinbuiltins


Index: models.py
===================================================================
--- models.py   (revision 14)
+++ models.py   (working copy)
@@ -9,6 +9,7 @@
 import datetime
 from django.contrib.auth.models import User
 from django.conf import settings
+from gettext import gettext as _
 
 class Forum(models.Model):
     """

 
Nov 9, 2007
#1 mand...@gmail.com
Fixed this: Error while importing URLconf 'forum.urls': name '_' is not defined
Nov 17, 2007
#3 canbu...@gmail.com
please do fix as importing gettext_lazy, not gettext
Nov 17, 2007
Project Member #4 rwpoul...@gmail.com
Fixed by importing ugettext_lazy.

Will be committed to svn shortly.
Status: Fixed

Powered by Google Project Hosting