diff options
Diffstat (limited to 'template.py')
-rwxr-xr-x | template.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/template.py b/template.py index e0e3dacc..005239d0 100755 --- a/template.py +++ b/template.py | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | # | 3 | # |
4 | # This script runs the jinga2 templating engine on an input template-file | 4 | # This script runs the jinja2 templating engine on an input template-file |
5 | # using the specified locale for gettext translations, and outputs | 5 | # using the specified locale for gettext translations, and outputs |
6 | # the resulting (HTML) ouptut-file. | 6 | # the resulting (HTML) ouptut-file. |
7 | # | 7 | # |
@@ -25,7 +25,12 @@ env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__ | |||
25 | undefined=jinja2.StrictUndefined, | 25 | undefined=jinja2.StrictUndefined, |
26 | autoescape=False) | 26 | autoescape=False) |
27 | 27 | ||
28 | langs_full = {"en": "English", "fr": "Français", "it": "Italiano", "es": "Español", "de": "Deutsch"} | 28 | langs_full = {"en": "English", |
29 | "fr": "Français", | ||
30 | "it": "Italiano", | ||
31 | "es": "Español", | ||
32 | "de": "Deutsch", | ||
33 | "ru": "Ру́сский язы́к"} | ||
29 | 34 | ||
30 | for in_file in glob.glob("*.j2"): | 35 | for in_file in glob.glob("*.j2"): |
31 | name, ext = re.match(r"(.*)\.([^.]+)$", in_file.rstrip(".j2")).groups() | 36 | name, ext = re.match(r"(.*)\.([^.]+)$", in_file.rstrip(".j2")).groups() |