aboutsummaryrefslogtreecommitdiffstats
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
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
-rwxr-xr-xcheck_for_translation_work.sh10
-rw-r--r--translation_projects.dat2
2 files changed, 6 insertions, 6 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 ''
diff --git a/translation_projects.dat b/translation_projects.dat
index a8070c2c..ba03f24e 100644
--- a/translation_projects.dat
+++ b/translation_projects.dat
@@ -1,4 +1,4 @@
-# database for script check_for_translation_work.sh 2016-07-05 19:36:00 UTC filip
+# database for script check_for_translation_work.sh 2016-11-06 22:32:00 UTC filip
# GIT ADDRESSES
# Repositories of resources for Cauldron and the next released version of Mageia