]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/website_post.py
Removes mutopia-index.py processing
[lilypond.git] / scripts / build / website_post.py
index 91cf384d5b5ade67b072c96b52433e3ddfaa1206..129c1217d325ecfc148eafac80f20e3590fdb9e6 100644 (file)
@@ -11,6 +11,10 @@ import re
 
 ###### Translation data, move out, see create-weblinks-itexi.py
 translations = {
+    'cs': {
+        'English': 'Česky',
+        'Other languages': 'Jiné jazyky',
+        },
     'de': {
         'English': 'Deutsch',
         'Other languages': 'Andere Sprachen',
@@ -39,6 +43,10 @@ translations = {
         'English': 'Nederlands',
         'Other languages': 'Andere talen',
         },
+    'zh': {
+        'English': '中文',
+        'Other languages': '其它语言',
+        },
     }
 
 # needs at least: make -C po or make- C Documentation/po
@@ -145,7 +153,7 @@ for file in html_files:
         lang = ''
         # possibly necessary for automatic language selection
         file_symlink = file.replace(".html", ".en.html")
-        if (not (os.path.exists(file_symlink))):
+        if not os.path.lexists (file_symlink):
             os.symlink (file, file_symlink)
     elif (len(file_split) == 3):
         # it's a translation
@@ -173,10 +181,10 @@ for file in html_files:
             # questionable
             if (not link.startswith("../doc/")):
                 if (link.endswith(".html")):
-                   langlink = addLangExt(link[:-5], lang, "html")
+                    langlink = addLangExt(link[:-5], lang, "html")
                     line = line.replace(link, langlink)
                 if (link.endswith(".pdf")):
-                   langlink = addLangExt(link[:-4], lang, "pdf")
+                    langlink = addLangExt(link[:-4], lang, "pdf")
                     line = line.replace(link, langlink)
         ### add google tracker header
         if (line.find("</head>") >= 0):
@@ -192,10 +200,10 @@ urchinTracker();
         #### add google tracker goals
         if (line.find("href=\"http://download.linuxaudio.org") >= 0):
             # TODO: more ugly hardcoding to make releases hard. :(
-            if (line.find('2.12') >= 0):
-                line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.12\');\" href=')
-            elif (line.find('2.13') >= 0):
-                line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.13\');\" href=')
+            if (line.find('2.14') >= 0):
+                line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.14\');\" href=')
+            elif (line.find('2.15') >= 0):
+                line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.15\');\" href=')
         ### add language selection footer
         if (line.find("<div id=\"verifier_texinfo\">") >= 0):
             outfile.write("<div id=\"footer\">\n")