PO makemessage ignore pattern does not work with Django 1.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Akihiro Motoki | ||
openstack i18n |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In run_tests.sh --makemessages, files under openstack/common are excluded because they are not actually used in OpenStack dashboard and there is no need to translate at the moment. "--ignore=
However, after the default version of Django is switched to 1.6, "--ignore" option works does not work as previously it does and strings from openstack/common are included in translation strings.
The reason of this is that ignore pattern is checked against basename of each file/directory in Django 1.6.
We need to specify basename in ignore patterns: i.e. --ignore=openstack.
At now we don't have directories named as "openstack" other than openstack_
I am not sure it is a bug or spec change in Django 1.6, but translation deadline for Icehosue is approaching and we need work around ASAP.
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | icehouse-rc1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/82270
Review: https:/