Skip to content

Commit

Permalink
./run_tests.sh --makemessages update English PO files only
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amotoki committed Sep 12, 2013
1 parent 6198031 commit 6caa19d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions run_tests.sh
Expand Up @@ -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))
Expand Down

0 comments on commit 6caa19d

Please sign in to comment.