aboutsummaryrefslogtreecommitdiff
path: root/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'template.py')
-rwxr-xr-xtemplate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.py b/template.py
index 91ee0a8e..69488078 100755
--- a/template.py
+++ b/template.py
@@ -42,7 +42,7 @@ for in_file in glob.glob("template/*.j2"):
42 """ 42 """
43 Return URL for the current page in another locale. 43 Return URL for the current page in another locale.
44 """ 44 """
45 return "../" + other_locale + "/" + in_file.rstrip(".j2") 45 return "../" + other_locale + "/" + in_file.replace('template/', '').rstrip(".j2")
46 46
47 def url_localized(filename): 47 def url_localized(filename):
48 return "../" + locale + "/" + filename 48 return "../" + locale + "/" + filename