diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-02 02:35:04 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-02 02:46:50 +0100 |
commit | 826919c97c3fa61f46bef2e2a3708a16f956cfce (patch) | |
tree | 2129269ee9dd36efe33ca5bade1af87fc885b5f5 /mediagoblin/mg_globals.py | |
parent | e4e7fbeeaaf9dc344237453b768d760460290a21 (diff) | |
download | mediagoblin-826919c97c3fa61f46bef2e2a3708a16f956cfce.tar.lz mediagoblin-826919c97c3fa61f46bef2e2a3708a16f956cfce.tar.xz mediagoblin-826919c97c3fa61f46bef2e2a3708a16f956cfce.zip |
en_US is always available
We were using "en" as fallback only when no preferred language matched.
This is obviously bad. Always insert en_US as available locale, so we
can match it with the accept_languages.
Don't set available_locales as mg_global, per discussion with paroneaya,
make it a global var in translate.py
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/mg_globals.py')
-rw-r--r-- | mediagoblin/mg_globals.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mediagoblin/mg_globals.py b/mediagoblin/mg_globals.py index 646fbdbd..356a944d 100644 --- a/mediagoblin/mg_globals.py +++ b/mediagoblin/mg_globals.py @@ -45,8 +45,6 @@ workbench_manager = None # A thread-local scope thread_scope = threading.local() -# a list of translated locales -available_locales = None # gettext (this will be populated on demand with gettext.Translations) thread_scope.translations = None |