aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-10-13 20:41:37 +0200
committermetamuffin <metamuffin@disroot.org>2024-10-13 20:41:37 +0200
commit377a416f33c995dcd5ff276b96033d07e6fade65 (patch)
treee5efd1e1ab6cd87999cec25a1a8dc81fb318e77d
parent85e7ff9d49785a70a6678f1f75b503e6819afd54 (diff)
downloadhurrycurry-website-377a416f33c995dcd5ff276b96033d07e6fade65.tar
hurrycurry-website-377a416f33c995dcd5ff276b96033d07e6fade65.tar.bz2
hurrycurry-website-377a416f33c995dcd5ff276b96033d07e6fade65.tar.zst
fix locale parser on =
-rw-r--r--translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate.py b/translate.py
index 28c61c6..cdc4086 100644
--- a/translate.py
+++ b/translate.py
@@ -19,7 +19,7 @@ for l in ["en", lang]:
line = line.strip()
if line == "[hurrycurry]": continue
if line == "": continue
- key, value = line.split("=")
+ key, value = line.split("=", 1)
trmap[key.strip()] = value.strip().replace("<","&lt;").replace(">","&gt;")
s = open("index_template.html").read()