introduce setting for locale in lectures.py - and set it to german
This commit is contained in:
parent
427f2b3769
commit
a9a4b15481
2 changed files with 3 additions and 2 deletions
|
@ -16,3 +16,4 @@ CURRENT_COURSE_ROOT = CURRENT_COURSE_SYMLINK.resolve()
|
||||||
CURRENT_COURSE_WATCH_FILE = Path('/tmp/current_course').resolve()
|
CURRENT_COURSE_WATCH_FILE = Path('/tmp/current_course').resolve()
|
||||||
ROOT = Path('~/Documents/Kulak/bachelor_3/semester_2').expanduser()
|
ROOT = Path('~/Documents/Kulak/bachelor_3/semester_2').expanduser()
|
||||||
DATE_FORMAT = '%a %d %b %Y %H:%M'
|
DATE_FORMAT = '%a %d %b %Y %H:%M'
|
||||||
|
LOCALE = "de_DE.utf8"
|
||||||
|
|
|
@ -8,10 +8,10 @@ import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
from config import get_week, DATE_FORMAT, CURRENT_COURSE_ROOT
|
from config import get_week, DATE_FORMAT, CURRENT_COURSE_ROOT, LOCALE
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
locale.setlocale(locale.LC_TIME, "nl_BE.utf8")
|
locale.setlocale(locale.LC_TIME, LOCALE)
|
||||||
|
|
||||||
|
|
||||||
def number2filename(n):
|
def number2filename(n):
|
||||||
|
|
Loading…
Reference in a new issue