Pilsburgh / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gettext alias is needed #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#_nolongerinbuilt
ins

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):
     """

Original issue reported on code.google.com by mand...@gmail.com on 10 Nov 2007 at 12:38

GoogleCodeExporter commented 9 years ago
Fixed this: Error while importing URLconf 'forum.urls': name '_' is not defined

Original comment by mand...@gmail.com on 10 Nov 2007 at 12:49

GoogleCodeExporter commented 9 years ago
see for the caouse
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#_nolongerinbuilt
ins

Original comment by canbu...@gmail.com on 17 Nov 2007 at 12:52

GoogleCodeExporter commented 9 years ago
please do fix as importing gettext_lazy, not gettext

Original comment by canbu...@gmail.com on 17 Nov 2007 at 1:14

GoogleCodeExporter commented 9 years ago
Fixed by importing ugettext_lazy.

Will be committed to svn shortly.

Original comment by rwpoul...@gmail.com on 18 Nov 2007 at 12:24