From: Graham Percival Date: Fri, 5 Mar 2010 18:44:28 +0000 (+0000) Subject: Web build: fix english website generation. X-Git-Tag: release/2.13.16-1~52^2~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6e02421f179f8f9e12375eec1bad004a51cf6076;p=lilypond.git Web build: fix english website generation. --- diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py index 8018f3ad62..a22319ee77 100644 --- a/scripts/build/website_post.py +++ b/scripts/build/website_post.py @@ -44,7 +44,7 @@ def makeFooter(currentLang): if (l == currentLang): continue text += "" text += lang_lookup[l] @@ -88,7 +88,11 @@ for file in html_files: # eventually we want to do this, but I can't get it to work. # waiting for help with apache (?) # line = line.replace(".html", "."+lang) - line = line.replace(".html", "."+lang+".html") + text = "" + if (not (lang=="")): + text += "." + lang + text += ".html" + line = line.replace(".html", text) if (line.find("") >= 0): outfile.write( lang_footer ) outfile.write(line)