Fix Babel to 2.2.0 for now for django translation

Looking at today's django imports for horizon like
https://review.openstack.org/#/c/303695 and
https://review.openstack.org/303807 , a lot of strings are removed
from pot files - which looks wrong. There was just a Babel 2.3.2
release, let's go back to 2.2.0 that does not remove these strings.

We need some more time to investigate this and fixing the version to
2.2.0 will give us this time. I fear the translated strings are already
removed from zanata but we might be able to get them back from git.

Change-Id: I952d842e4406b33257e8d715b7ac774a5f6c4f4f
This commit is contained in:
Andreas Jaeger 2016-04-10 21:40:50 +02:00
parent d5e8aff7ab
commit 81d8c8449f

@ -311,7 +311,10 @@ function extract_messages_django {
# Horizon has these as dependencies but let's be sure.
# TODO(amotoki): Pull required versions from g-r.
$VENV/bin/pip install Babel django-babel
# TODO(jagerandi): Install Babel 2.2.0 for now since 2.3.2 does
# not extract all strings.
$VENV/bin/pip install Babel==2.2.0 django-babel
KEYWORDS="-k gettext_noop -k gettext_lazy -k ngettext_lazy:1,2"
KEYWORDS+=" -k ugettext_noop -k ugettext_lazy -k ungettext_lazy:1,2"
KEYWORDS+=" -k npgettext:1c,2,3 -k pgettext_lazy:1c,2 -k npgettext_lazy:1c,2,3"