aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-02-20 21:36:09 +0000
committerng0 <ng0@n0.is>2019-02-20 21:36:09 +0000
commitdb297a7a76b5eded06a2ba5aebcd78cf9927e500 (patch)
tree65e166e96e30f6d62469b732752e499bb3a78c6f
parent89affcbc95630adf83dd339d069422001680664c (diff)
downloadwww-db297a7a76b5eded06a2ba5aebcd78cf9927e500.tar.gz
www-db297a7a76b5eded06a2ba5aebcd78cf9927e500.zip
fix template
-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