Fix Babel version restriction. Onward and upward!
(Fix suggested by simonft... thanks!)
This commit is contained in:
parent
c07bb3123c
commit
023cda0974
@ -42,7 +42,7 @@ def set_available_locales():
|
|||||||
"""Set available locales for which we have translations"""
|
"""Set available locales for which we have translations"""
|
||||||
global AVAILABLE_LOCALES
|
global AVAILABLE_LOCALES
|
||||||
locales=['en', 'en_US'] # these are available without translations
|
locales=['en', 'en_US'] # these are available without translations
|
||||||
for locale in localedata.list():
|
for locale in localedata.locale_identifiers():
|
||||||
if gettext.find('mediagoblin', TRANSLATIONS_PATH, [locale]):
|
if gettext.find('mediagoblin', TRANSLATIONS_PATH, [locale]):
|
||||||
locales.append(locale)
|
locales.append(locale)
|
||||||
AVAILABLE_LOCALES = locales
|
AVAILABLE_LOCALES = locales
|
||||||
|
Loading…
x
Reference in New Issue
Block a user