From ceea1d62fbf46a80c3757ce03c37c053be04b15d Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Mon, 17 Mar 2014 15:28:02 +0000 Subject: small improvement in error management --- tools/rebuild_gettext_catalogs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh index 1367871ff..50a9e4cd6 100755 --- a/tools/rebuild_gettext_catalogs.sh +++ b/tools/rebuild_gettext_catalogs.sh @@ -49,7 +49,6 @@ do mv ./langs/en/$resource.tmp ./langs/en/$resource.pot rm ./langs/en/$resource.copy else - rm ./langs/en/$resource.copy rm ./langs/en/$resource.pot if [ -f ./langs/en/$resource.copy ]; then mv ./langs/en/$resource.copy ./langs/en/$resource.pot @@ -75,11 +74,12 @@ do echo merging $directory/$resource.po msgmerge --quiet --no-wrap $directory/$resource.po ./langs/en/$resource.pot > $directory/$resource.tmp msgmerge_error_level=$? # catch msgmerge error level - mv $directory/$resource.tmp $directory/$resource.po -# msgfmt --statistics --verbose -c $directory/$resource.po -o /dev/null # usefull for debuging (msgctxt "/web/en/ or msgctxt "en/) if [ $msgmerge_error_level -gt 0 ]; then errors[$directory/$resource]=60 echo "$directory"/$resource.po could not be created succesfully + else + mv $directory/$resource.tmp $directory/$resource.po +# msgfmt --statistics --verbose -c $directory/$resource.po -o /dev/null # usefull for debuging (msgctxt "/web/en/ or msgctxt "en/) fi fi fi -- cgit v1.2.1