aboutsummaryrefslogtreecommitdiffstats
path: root/check_for_translation_work.sh
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-11-06 23:33:52 +0100
committerfilip <filip.komar@gmail.com>2016-11-06 23:33:52 +0100
commite237a9faa3bf0169d75c42d4d208f5f951b9e865 (patch)
treef1996bb72def7f875ddd1945544a024bf9101727 /check_for_translation_work.sh
parentc6a82e3f41f901e480e8e212d1c082bd740a8473 (diff)
downloadtools-e237a9faa3bf0169d75c42d4d208f5f951b9e865.tar
tools-e237a9faa3bf0169d75c42d4d208f5f951b9e865.tar.gz
tools-e237a9faa3bf0169d75c42d4d208f5f951b9e865.tar.bz2
tools-e237a9faa3bf0169d75c42d4d208f5f951b9e865.tar.xz
tools-e237a9faa3bf0169d75c42d4d208f5f951b9e865.zip
fix comparing for empty translations
and date fix for script and db
Diffstat (limited to 'check_for_translation_work.sh')
-rwxr-xr-xcheck_for_translation_work.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh
index 0396057b..ac130dfe 100755
--- a/check_for_translation_work.sh
+++ b/check_for_translation_work.sh
@@ -7,7 +7,7 @@
#
# Filip Komar, 2012 - 2016
# Remco Rijnders, 2012
-# $Id: check_for_translation_work.sh 2016-07-06 20:39:00 UTC filip $
+# $Id: check_for_translation_work.sh 2016-11-06 22:32:00 UTC filip $
#
# Please see git for a list of changes to this script.
#
@@ -108,10 +108,10 @@ color_for_differences=31
#create_a_working_copy_of_po_file=no
# check for any language file without any translated string
-# check_for_empty_translations=1
+# check_for_empty_translations=no
# delete all language files without any translated string
-# delete_empty_translations=1
+# delete_empty_translations=no
EOF
@@ -299,14 +299,14 @@ do
if [ $? -ne 0 ]; then
echo "Pot file not found in $git_directory/${translate_projects_po[$translate_project_name_po]}/. Please report that on our mailing list." | tee -a "$logfile"_this_run.log
fi
- if [ $check_for_empty_translations -eq 1 ]; then
+ if [ "$check_for_empty_translations" == "yes" ]; then
for filename in *.po
do
msgattrib $filename --translated | grep . >> /dev/null
if [ $? -eq 1 ]; then
msgfmt --statistics --verbose -o /dev/null $filename
echo "Filename $filename has no translated strings."
- if [ $delete_empty_translations -eq 1 ]; then
+ if [ "$delete_empty_translations" == "yes" ]; then
rm $filename
fi
echo ''