From 0c1cb7ff53d17d6bd783a15fac39213c7ff031f4 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 2 Nov 2021 13:26:57 +0100 Subject: generate a planner in a different language when set as the locale --- weekly_planner_generator.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'weekly_planner_generator.py') 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') -- cgit v1.2.3