Sun, 17 Sep 2017 20:47:14 +0300
Kielituki käyttöön. Kauhean monimutkaista koodia tähänkin vaadittiin viime kädessä
service.py | file | annotate | diff | comparison | revisions |
--- a/service.py Fri Sep 15 22:43:33 2017 +0300 +++ b/service.py Sun Sep 17 20:47:14 2017 +0300 @@ -59,7 +59,7 @@ if request.args.get(language_name) is not None: return language_name else: - return 'fi' + return request.accept_languages.best_match(tr.languages) def sign(schedule_entry): from math import ceil