Browse files

marked strings for translation [pinax task #657]

  • Loading branch information...
1 parent bfd104d commit 315381cbbff5704f500765ae660942a96f43b6e3 @paltman paltman committed with jezdez Apr 24, 2010
Showing with 8 additions and 6 deletions.
  1. +6 −5 flag/models.py
  2. +2 −1 flag/views.py
View
11 flag/models.py
@@ -5,14 +5,15 @@
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
+from django.utils.translation import ugettext_lazy as _
STATUS = (
- ("1", "flagged"),
- ("2", "flag rejected by moderator"),
- ("3", "creator notified"),
- ("4", "content removed by creator"),
- ("5", "content removed by moderator"),
+ ("1", _("flagged")),
+ ("2", _("flag rejected by moderator")),
+ ("3", _("creator notified")),
+ ("4", _("content removed by creator")),
+ ("5", _("content removed by moderator")),
)
View
3 flag/views.py
@@ -3,6 +3,7 @@
from django.contrib.auth.decorators import login_required
from django.contrib.contenttypes.models import ContentType
+from django.utils.translation import ugettext_lazy as _
from flag.models import add_flag
@@ -27,7 +28,7 @@ def flag(request):
creator = None
add_flag(request.user, content_type, object_id, creator, comment)
- request.user.message_set.create(message="You have added a flag. A moderator will review your submission shortly.")
+ request.user.message_set.create(message=_("You have added a flag. A moderator will review your submission shortly."))
if next:
return HttpResponseRedirect(next)

0 comments on commit 315381c

Please sign in to comment.