]> git.ipfire.org Git - collecty.git/commitdiff
locale: Fix fallback to default locale
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Oct 2015 23:57:15 +0000 (00:57 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Oct 2015 23:57:15 +0000 (00:57 +0100)
A typo caused an exception.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/locales.py

index 199ab4918c00044e90014e4b40976c9a01fec2a4..917a4db7f8775c0456259719a2558b7d59561c3a 100644 (file)
@@ -121,4 +121,4 @@ def get_closest(*langs):
                                pass
 
 def get(*langs):
                                pass
 
 def get(*langs):
-       return get_closest(*langs) or _locale.get(DEFAULT_LOCALE, None)
+       return get_closest(*langs) or _locales.get(DEFAULT_LOCALE, None)