Skip to content
Permalink
Browse files

wsgi: no need to have a custom default for the UI language

The wsgi tests set no explicit HTTP_ACCEPT_LANGUAGE and we still get the
English UI, that's good enough.

With this, finally we can require good test coverage for the
web-specific code as well.

Tested-by: Travis
  • Loading branch information
vmiklos authored and Travis CI committed Feb 10, 2020
1 parent 9fdedf5 commit c9d7b9918a57d7d044a7880085f807cb75fe354a
Showing with 1 addition and 3 deletions.
  1. +1 −1 Makefile
  2. +0 −2 wsgi.py
@@ -28,12 +28,12 @@ PYTHON_SAFE_OBJECTS = \
validator.py \
version.py \
webframe.py \
wsgi.py \

PYTHON_OBJECTS = \
$(PYTHON_TEST_OBJECTS) \
$(PYTHON_SAFE_OBJECTS) \
cron.py \
wsgi.py \

# These are valid.
YAML_SAFE_OBJECTS = \
@@ -732,8 +732,6 @@ def our_application(
util.set_locale(config)

language = util.setup_localization(environ)
if not language:
language = "hu"

relations = areas.Relations(util.get_abspath("data"), util.get_workdir(config))

0 comments on commit c9d7b99

Please sign in to comment.
You can’t perform that action at this time.