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 199ab49..917a4db 100644 (file)
@@ -121,4 +121,4 @@ def get_closest(*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)