diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-12-29 11:30:06 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-12-29 11:30:06 +0100 |
commit | 430407abbaedfdbf08bc5523a6bd750997837c07 (patch) | |
tree | 90acc86b598e007387e8985123854fcb741ce551 /template.py | |
parent | 407d7d597ae2381029f70c1c59983789741c301b (diff) | |
download | www-430407abbaedfdbf08bc5523a6bd750997837c07.tar.gz www-430407abbaedfdbf08bc5523a6bd750997837c07.tar.bz2 www-430407abbaedfdbf08bc5523a6bd750997837c07.zip |
init russian language
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 @@ #!/usr/bin/env python3 # This file is in the public domain. # -# This script runs the jinga2 templating engine on an input template-file +# This script runs the jinja2 templating engine on an input template-file # using the specified locale for gettext translations, and outputs # the resulting (HTML) ouptut-file. # @@ -25,7 +25,12 @@ env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__ undefined=jinja2.StrictUndefined, autoescape=False) -langs_full = {"en": "English", "fr": "Français", "it": "Italiano", "es": "Español", "de": "Deutsch"} +langs_full = {"en": "English", + "fr": "Français", + "it": "Italiano", + "es": "Español", + "de": "Deutsch", + "ru": "Ру́сский язы́к"} for in_file in glob.glob("*.j2"): name, ext = re.match(r"(.*)\.([^.]+)$", in_file.rstrip(".j2")).groups() |