From 430407abbaedfdbf08bc5523a6bd750997837c07 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 29 Dec 2017 11:30:06 +0100 Subject: init russian language --- template.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'template.py') 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() -- cgit v1.2.3