summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/support/language.py2
-rw-r--r--service/test/unit/resources/test_login_resource.py2
-rw-r--r--service/test/unit/support/test_language.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/service/pixelated/support/language.py b/service/pixelated/support/language.py
index 4999bc04..cd455f89 100644
--- a/service/pixelated/support/language.py
+++ b/service/pixelated/support/language.py
@@ -21,4 +21,4 @@ def parse_accept_language(all_headers):
for language in accepted_languages:
if language in languages:
return language
- return 'pt-BR'
+ return 'en-US'
diff --git a/service/test/unit/resources/test_login_resource.py b/service/test/unit/resources/test_login_resource.py
index e33b5618..03d61758 100644
--- a/service/test/unit/resources/test_login_resource.py
+++ b/service/test/unit/resources/test_login_resource.py
@@ -231,7 +231,7 @@ class TestLoginPOST(unittest.TestCase):
d = self.web.get(self.request)
def assert_login_setup_service_for_user(_):
- mock_user_bootstrap_setup.assert_called_once_with(self.user_auth, self.password, 'pt-BR')
+ mock_user_bootstrap_setup.assert_called_once_with(self.user_auth, self.password, 'en-US')
d.addCallback(assert_login_setup_service_for_user)
return d
diff --git a/service/test/unit/support/test_language.py b/service/test/unit/support/test_language.py
index 23983b53..b84f3a23 100644
--- a/service/test/unit/support/test_language.py
+++ b/service/test/unit/support/test_language.py
@@ -33,8 +33,8 @@ class TestParseAcceptLanguage(unittest.TestCase):
parsed_language = parse_accept_language(all_headers)
self.assertEqual('en-US', parsed_language)
- def test_parse_pt_br_as_default(self):
+ def test_parse_en_us_as_default(self):
all_headers = {
'accept-language': 'de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3'}
parsed_language = parse_accept_language(all_headers)
- self.assertEqual('pt-BR', parsed_language)
+ self.assertEqual('en-US', parsed_language)