adapt to new flask.ext.babel