https://github.com/ging/horizon
Revision a5a0544ee24e634e53560ea65abc108be003406c authored by Akihiro Motoki on 22 March 2014, 01:55:14 UTC, committed by Akihiro Motoki on 22 March 2014, 01:59:20 UTC
In run_tests.sh --makemessages, files under openstack/common are excluded and "--ignore=openstack/common" option to manage.py makemessages is used to exclude these files. 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_dashboard/openstack/common, so it works. This works both with Django 1.6 and 1.5. Change-Id: I547be679c2f4ce49bd439b8f629e8720eebdb896 Closes-Bug: #1295920
1 parent 693ac5e
Tip revision: a5a0544ee24e634e53560ea65abc108be003406c authored by Akihiro Motoki on 22 March 2014, 01:55:14 UTC
Make makemessage ignore option work with Django 1.6
Make makemessage ignore option work with Django 1.6
Tip revision: a5a0544
File | Mode | Size |
---|---|---|
.tx | ||
doc | ||
horizon | ||
openstack_dashboard | ||
tools | ||
.gitignore | -rw-r--r-- | 377 bytes |
.gitreview | -rw-r--r-- | 76 bytes |
.mailmap | -rw-r--r-- | 581 bytes |
.pylintrc | -rw-r--r-- | 1.4 KB |
HACKING.rst | -rw-r--r-- | 1.0 KB |
LICENSE | -rw-r--r-- | 9.9 KB |
MANIFEST.in | -rw-r--r-- | 654 bytes |
Makefile | -rw-r--r-- | 588 bytes |
README.rst | -rw-r--r-- | 3.1 KB |
manage.py | -rwxr-xr-x | 838 bytes |
openstack-common.conf | -rw-r--r-- | 204 bytes |
requirements.txt | -rw-r--r-- | 527 bytes |
run_tests.sh | -rwxr-xr-x | 14.1 KB |
setup.cfg | -rw-r--r-- | 1.0 KB |
setup.py | -rwxr-xr-x | 781 bytes |
test-requirements.txt | -rw-r--r-- | 209 bytes |
tox.ini | -rw-r--r-- | 2.7 KB |
Computing file changes ...