]> git.parisson.com Git - telemeta.git/commitdiff
add element type to RSS feed, fix RSS title trans
authoryomguy <yomguy@parisson.com>
Fri, 29 Apr 2011 17:44:50 +0000 (19:44 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 29 Apr 2011 17:44:50 +0000 (19:44 +0200)
telemeta/web/base.py

index 77e1efe65f96f394d2114c59b58c3e375dc23944..d7100fc9af7e1ce9441d7c161633a849e0c512df 100644 (file)
@@ -1054,6 +1054,7 @@ class WebView(object):
                             title = str(element.public_id)
                         else:
                             title = element.title
+                        title = element.element_type + ' : ' + title
                         
                 rss_item_list.append(RSSItem(
                         title = title,
@@ -1063,7 +1064,7 @@ class WebView(object):
                         pubDate = revision.time,)
                         )
                         
-        rss = RSS2(title = organization + ' - Telemeta - last changes',
+        rss = RSS2(title = organization + ' - Telemeta - ' + ugettext('Last changes'),
                             link = rss_host,
                             description = ' '.join([subject.decode('utf-8') for subject in subjects]),
                             lastBuildDate = str(date_now),