introduce setting for locale in lectures.py - and set it to german

This commit is contained in:
Maximilian Keßler 2021-09-16 12:05:44 +02:00
parent 427f2b3769
commit a9a4b15481
2 changed files with 3 additions and 2 deletions

View file

@ -16,3 +16,4 @@ CURRENT_COURSE_ROOT = CURRENT_COURSE_SYMLINK.resolve()
CURRENT_COURSE_WATCH_FILE = Path('/tmp/current_course').resolve()
ROOT = Path('~/Documents/Kulak/bachelor_3/semester_2').expanduser()
DATE_FORMAT = '%a %d %b %Y %H:%M'
LOCALE = "de_DE.utf8"

View file

@ -8,10 +8,10 @@ import re
import subprocess
from config import get_week, DATE_FORMAT, CURRENT_COURSE_ROOT
from config import get_week, DATE_FORMAT, CURRENT_COURSE_ROOT, LOCALE
# TODO
locale.setlocale(locale.LC_TIME, "nl_BE.utf8")
locale.setlocale(locale.LC_TIME, LOCALE)
def number2filename(n):