Don't forget to replace COLON in the title too.

This commit is contained in:
Simon Quigley 2018-11-02 15:42:13 -05:00
parent fb63be2efc
commit abe8636c92

View File

@ -61,7 +61,7 @@ def main():
html = open("l10n-template.html", "r", encoding="utf-8")
htmltext = html.read()
translatedtext = htmltext.replace("POSTCONTENT", md)
translatedtext = translatedtext.replace("TITLE", infoyaml["title"].replace("POUND", "#"))
translatedtext = translatedtext.replace("TITLE", infoyaml["title"].replace("POUND", "#").replace("COLON", ":"))
translatedtext = translatedtext.replace("SLUG", infoyaml["slug"])
l10nfile = open(slugdir + lang + "/index.html", "w")