diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-11-02 13:26:57 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-11-02 13:26:57 +0100 |
commit | 0c1cb7ff53d17d6bd783a15fac39213c7ff031f4 (patch) | |
tree | e95458f6ba26b11c97724624519b05ca75530fc1 /weekly_planner_generator.py | |
parent | 384ea87914e8073667f67d27b47c6799515f4644 (diff) |
generate a planner in a different language when set as the locale
Diffstat (limited to 'weekly_planner_generator.py')
-rwxr-xr-x | weekly_planner_generator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weekly_planner_generator.py b/weekly_planner_generator.py index 52bc091..7f1d64a 100755 --- a/weekly_planner_generator.py +++ b/weekly_planner_generator.py @@ -2,6 +2,7 @@ import argparse import calendar +import locale import logging import os import subprocess @@ -10,6 +11,9 @@ import sys import jinja2 +locale.setlocale(locale.LC_ALL, '') + + def main(): env = jinja2.Environment() loader = jinja2.FileSystemLoader('templates') |