Mercurial > xmpp-account-manager
diff build_website.py @ 56:010b905a74d4
Update translation strings
- prepend i18n loading for all "templates"
- add some strings
- commit the po files to the repo
author | mathieui |
---|---|
date | Sun, 24 May 2020 11:27:10 +0200 |
parents | 78f3f79c911b |
children | d5cfc04b9718 |
line wrap: on
line diff
--- a/build_website.py +++ b/build_website.py @@ -72,7 +72,7 @@ def generate_pages(language): ] for file_to_localize in files: with open(file_to_localize) as template_file: - template = Template(template_file.read()) + template = Template('{% load i18n %}' + template_file.read()) rendered = template.render(Context({'AVAILABLE_LANGUAGES': AVAILABLE_LANGUAGES})) filename = path.join(target_dir, file_to_localize)