diff options
author | Sebastian Silva <sebastian@somosazucar.org> | 2013-05-26 20:26:37 (GMT) |
---|---|---|
committer | Sebastian Silva <sebastian@somosazucar.org> | 2013-05-26 20:26:37 (GMT) |
commit | 172250c8a48f93a1356e70b1f23fecf5bb2c3627 (patch) | |
tree | d2ff1e6755d2f0dd744ed3041f098d794c959a19 | |
parent | cc3057d0c31b2e7a151bd451c48ed9fec121b7a8 (diff) |
Fix glitch for locales in plugin
-rw-r--r-- | sugar_network_webui/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network_webui/app.py b/sugar_network_webui/app.py index 1b07af6..4ad8e02 100644 --- a/sugar_network_webui/app.py +++ b/sugar_network_webui/app.py @@ -70,7 +70,7 @@ def event_stream(): @babel.localeselector def get_locale(): global WWW - if 'localhost' in request.host: + if ('localhost' in request.host) or ('127.0.0.1' in request.host): # we're probably embedded, get locale from env lang = locale.getdefaultlocale()[0].split('_')[0] logging.debug('Locale from env: %s' % lang) |