From 6e02421f179f8f9e12375eec1bad004a51cf6076 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Fri, 5 Mar 2010 18:44:28 +0000 Subject: [PATCH] Web build: fix english website generation. --- scripts/build/website_post.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.2