From 26f180ded1f8d3a279b5c96991810bf0bcc3af4b Mon Sep 17 00:00:00 2001 From: Patrick Nawracay Date: Tue, 4 Jun 2019 10:30:38 +0200 Subject: [PATCH] mgr/dashboard: Improve hints shown when message.xlf is invalid Fixes: http://tracker.ceph.com/issues/40064 Signed-off-by: Patrick Nawracay --- src/pybind/mgr/dashboard/run-frontend-unittests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/run-frontend-unittests.sh b/src/pybind/mgr/dashboard/run-frontend-unittests.sh index fa911776b0ed..5bd90b768cbc 100755 --- a/src/pybind/mgr/dashboard/run-frontend-unittests.sh +++ b/src/pybind/mgr/dashboard/run-frontend-unittests.sh @@ -34,7 +34,7 @@ fi # I18N npm run i18n -i18n_lint=`grep -En " |$| " src/locale/messages.xlf` +i18n_lint=`awk '/ |$| <\/source>/,/<\/context-group>/ {printf "%-4s ", NR; print}' src/locale/messages.xlf` if [[ ! -z $i18n_lint ]]; then echo -e "The following source translations in 'messages.xlf' need to be \ fixed, please check the I18N suggestions in 'HACKING.rst':\n" -- 2.47.3