./run_tests.sh --makemessages update English PO files only
Closes-Bug: #1224388 We don't need to update PO files of all languages. PO files of languages other than English should be update by importing translations from Transifex. This commit changes "run_tests.sh --makemessages" only updates English PO files. This makes a patch updating PO files shorter and helps reviewers to check it. Change-Id: I5410a06b0bcb0f42c5a0853f95a3fe2087519d51
This commit is contained in:
parent
6198031f30
commit
6caa19dd6e
@ -330,13 +330,16 @@ function run_tests_all {
|
||||
}
|
||||
|
||||
function run_makemessages {
|
||||
echo -n "horizon: "
|
||||
cd horizon
|
||||
${command_wrapper} $root/manage.py makemessages --all --no-obsolete
|
||||
${command_wrapper} $root/manage.py makemessages -l en --no-obsolete
|
||||
HORIZON_PY_RESULT=$?
|
||||
${command_wrapper} $root/manage.py makemessages -d djangojs --all --no-obsolete
|
||||
echo -n "horizon javascript: "
|
||||
${command_wrapper} $root/manage.py makemessages -d djangojs -l en --no-obsolete
|
||||
HORIZON_JS_RESULT=$?
|
||||
echo -n "openstack_dashboard: "
|
||||
cd ../openstack_dashboard
|
||||
${command_wrapper} $root/manage.py makemessages --all --ignore=openstack/common/* --no-obsolete
|
||||
${command_wrapper} $root/manage.py makemessages -l en --ignore=openstack/common/* --no-obsolete
|
||||
DASHBOARD_RESULT=$?
|
||||
cd ..
|
||||
exit $(($HORIZON_PY_RESULT || $HORIZON_JS_RESULT || $DASHBOARD_RESULT))
|
||||
|
Loading…
Reference in New Issue
Block a user