Use flask_babel in CONTRIBUTING (#869)

Instead of deprecated flask.ext.babelpkg
This commit is contained in:
Riccardo Magliocchetti 2016-08-02 08:02:41 +02:00 committed by Maxime Beauchemin
parent 55afda3a7e
commit e36bc2477a
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ meets these guidelines:
We use [Babel](http://babel.pocoo.org/en/latest/) to translate Caravel. The We use [Babel](http://babel.pocoo.org/en/latest/) to translate Caravel. The
key is to instrument the strings that need translation using key is to instrument the strings that need translation using
`from flask.ext.babelpkg import lazy_gettext as _`. Once this is imported in `from flask_babel import lazy_gettext as _`. Once this is imported in
a module, all you have to do is to `_("Wrap your strings")` using the a module, all you have to do is to `_("Wrap your strings")` using the
underscore `_` "function". underscore `_` "function".