X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=make-news.py;h=50890ec1fd9ff5526c4ed45f45903ea251c69007;hb=664d99721302de12a736dc480a340b209b5720e8;hp=e9ab91e175b77b1b57e86bbd3038e890ef79f1df;hpb=fc837f18ffeafc4d71e77f1cd47c99f3eef1f841;p=phdru.name%2Fphdru.name.git diff --git a/make-news.py b/make-news.py index e9ab91e..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) """) @@ -41,6 +63,7 @@ from rss_20 import rss_20 namespace = { "title": "Oleg Broytmann's Personal Page - News", "baseURL": "http://phd.pp.ru/", + "indexFile": "news.html", "description": "", "lang": lang, "author": "Oleg Broytmann",