diff --git a/blogthon.cgi b/blogthon.cgi index 4cec664..c8c5a61 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -109,6 +109,13 @@ if not os.path.exists(plugins_dir): try: style = configuration.get('look', 'style') except: errorpage('"style" is missing in configuration!') +try: language = configuration.get('look', 'language') +except: errorpage('"language" is missing in configuration!') +if language == "de" or language == "at": + locale = ("Seiten", "Monate", "Links", "Keine Kommentare", "Kommentare", "Alle Einträge anzeigen...", "Name", "Text", "Absenden") +else: + locale = ("pages", "months", "links", "no comments", "comments", "View all entries...", "name", "text", "commit") + try: entries_per_page = configuration.getint('look', 'entries_per_page') except: errorpage('"entries_per_page" is missing in configuration!') @@ -346,7 +353,7 @@ else: staticpages_list = glob.glob(staticpages_dir + '*') staticpages_list.sort() print '
' - print '
pages
' + print '
' + locale[0] + '
' print '
' print '