summaryrefslogtreecommitdiff
path: root/weekly_planner_generator.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-11-02 13:26:57 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-11-02 13:26:57 +0100
commit0c1cb7ff53d17d6bd783a15fac39213c7ff031f4 (patch)
treee95458f6ba26b11c97724624519b05ca75530fc1 /weekly_planner_generator.py
parent384ea87914e8073667f67d27b47c6799515f4644 (diff)
generate a planner in a different language when set as the locale
Diffstat (limited to 'weekly_planner_generator.py')
-rwxr-xr-xweekly_planner_generator.py4
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')