aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rebuild_gettext_catalogs.sh6
1 files changed, 3 insertions, 3 deletions
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