Module: check_mk
Branch: master
Commit: e7dac4164c0aef549f31b437b336a7035e68757f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e7dac4164c0aef…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 20 20:49:23 2015 +0100
localization: Fixed issue not resetting language when switching back to default language
---
web/htdocs/i18n.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/web/htdocs/i18n.py b/web/htdocs/i18n.py
index a83a356..f7a5c30 100644
--- a/web/htdocs/i18n.py
+++ b/web/htdocs/i18n.py
@@ -123,9 +123,7 @@ def localize(lang, **kwargs):
if translation:
translation.install(unicode = True)
else:
- # Fallback to non localized multisite
- # I'd prefer to fallback to multisite default language but can not import
config module here
- __builtin__.current_language = None
+ unlocalize() # Fallback to non localized multisite
else:
unlocalize()