From 6caa19dd6e1a26fcb0ce8bee1ec98f0fb274fdf2 Mon Sep 17 00:00:00 2001 From: Akihiro MOTOKI Date: Thu, 12 Sep 2013 18:54:55 +0900 Subject: [PATCH] ./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 --- run_tests.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 1a8f68ca62..a690b332b8 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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))