Ticket #10691: comments.feed.translation.diff
File comments.feed.translation.diff, 1.1 KB (added by , 16 years ago) |
---|
-
django/contrib/comments/feeds.py
2 2 from django.contrib.syndication.feeds import Feed 3 3 from django.contrib.sites.models import Site 4 4 from django.contrib import comments 5 from django.utils.translation import ugettext_lazy as _ 5 6 6 7 class LatestCommentFeed(Feed): 7 8 """Feed of latest comments on the current site.""" … … 9 10 def title(self): 10 11 if not hasattr(self, '_site'): 11 12 self._site = Site.objects.get_current() 12 return u"%s comments"% self._site.name13 return _("%s comments") % self._site.name 13 14 14 15 def link(self): 15 16 if not hasattr(self, '_site'): … … 19 20 def description(self): 20 21 if not hasattr(self, '_site'): 21 22 self._site = Site.objects.get_current() 22 return u"Latest comments on %s"% self._site.name23 return _("Latest comments on %s") % self._site.name 23 24 24 25 def items(self): 25 26 qs = comments.get_model().objects.filter(