python-babel / flask-babel

i18n and l10n support for Flask based on Babel and pytz
https://python-babel.github.io/flask-babel/
Other
444 stars 159 forks source link

localeselector decorator fails unless init_app has been called #56

Closed ThiefMaster closed 10 years ago

ThiefMaster commented 10 years ago

This smells like a bug since the failure is caused by the is None check to avoid calling it multiple times. IMHO these two assignments should be moved from init_app to __init__.

    self.locale_selector_func = None
    self.timezone_selector_func = None
ThiefMaster commented 10 years ago

Ok, apparently this is a dup of #39