From 74dae3c909c07fa8c1861e2645922f96fdc985aa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 19 Mar 2006 13:30:23 +0000 Subject: [PATCH] Added links and icons for RSS and Atom feeds. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@40 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- make-news.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/make-news.py b/make-news.py index 4f132f7..50890ec 100755 --- a/make-news.py +++ b/make-news.py @@ -1,4 +1,5 @@ #! /usr/local/bin/python -O +# -*- coding: koi8-r -*- __version__ = "$Revision$"[11:-2] __revision__ = "$Id$"[5:-2] @@ -28,6 +29,27 @@ for item in news_items: new_text.append("""\

+ +

+""") + +if lang == "en": + new_text.append("""\ +News are also available in +Atom 1.0 +and RSS 2.0 +formats. +""") + +elif lang == "ru": + new_text.append("""\ +îÏ×ÏÓÔÅ×ÁÑ ÌÅÎÔÁ × ÆÏÒÍÁÔÁÈ +Atom 1.0 RSS 2.0 . +""") + +new_text.append("""\ +

#end def $phd_pp_ru.respond(self) """) -- 2.39.2