aboutsummaryrefslogtreecommitdiffstats
path: root/check_for_translation_work.sh
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2013-11-09 20:42:22 +0100
committerfilip <filip.komar@gmail.com>2013-11-09 20:42:22 +0100
commitc729e8575090f47284a6440acce4ebf1b324c62d (patch)
treef9c70e2ae1f1782b8d7e08f34258dd87066e4295 /check_for_translation_work.sh
parent81bcbd35f2861358e258b166011abbefe6adcf5a (diff)
downloadtools-c729e8575090f47284a6440acce4ebf1b324c62d.tar
tools-c729e8575090f47284a6440acce4ebf1b324c62d.tar.gz
tools-c729e8575090f47284a6440acce4ebf1b324c62d.tar.bz2
tools-c729e8575090f47284a6440acce4ebf1b324c62d.tar.xz
tools-c729e8575090f47284a6440acce4ebf1b324c62d.zip
mageiawelcome added + some fixes
separate NEWS file mageiawelcome added small bugfix for and English only in list_of_resources_for_translation.txt
Diffstat (limited to 'check_for_translation_work.sh')
-rwxr-xr-xcheck_for_translation_work.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh
index 41bd0deb..4a3ec638 100755
--- a/check_for_translation_work.sh
+++ b/check_for_translation_work.sh
@@ -7,7 +7,7 @@
#
# Filip Komar, 2012, 2013
# Remco Rijnders, 2012
-# $Id: check_for_translation_work.sh 2013-11-06 21:49:00 UTC filip $
+# $Id: check_for_translation_work.sh 2013-11-09 19:57:00 UTC filip $
#
# Please see git for a list of changes to this script.
#
@@ -296,10 +296,10 @@ do
fi
# creating statistics
if [ -f $language_code.po ]; then
- statistics_git_po=`msgfmt --statistics --verbose $language_code.po -o /dev/null 2>&1 | tail -1`
+ statistics_git_po=`LC_ALL=C msgfmt --statistics --verbose $language_code.po -o /dev/null 2>&1 | tail -1`
fi
if [ -f $pot_filename ]; then
- statistics_git_pot=`msgfmt --statistics --verbose $pot_filename -o /dev/null 2>&1 | tail -1`
+ statistics_git_pot=`LC_ALL=C msgfmt --statistics --verbose $pot_filename -o /dev/null 2>&1 | tail -1`
fi
# checking the syntax of po file from git if required
@@ -361,7 +361,7 @@ do
fi
# comparing new_pot_lang.po from working copy
if [ -f new_pot_$language_code.po ]; then
- statistics_wd_po=`msgfmt --statistics --verbose new_pot_$language_code.po -o /dev/null 2>&1 | tail -1`
+ statistics_wd_po=`LC_ALL=C msgfmt --statistics --verbose new_pot_$language_code.po -o /dev/null 2>&1 | tail -1`
# checking for fuzzy and untranslated strings in fresh new_pot_$language_code.po
msgattrib new_pot_$language_code.po --only-fuzzy --no-obsolete 2>&1 | grep . >> /dev/null
if [ $? -eq 0 ]; then
@@ -484,6 +484,8 @@ do
copy_this_desktop_file="yes"
echo Name string \"$eng_name\" not present in $language_code language | tee -a "$logfile"_this_run.log
fi
+ else
+ untranslated_name=""
fi
if [ -n "$eng_comment" ]; then # Comment string present in original desktop file
if [ -n "$lang_comment" ]; then # Comment string present in your language
@@ -499,6 +501,8 @@ do
copy_this_desktop_file="yes"
echo Comment string \"$eng_comment\" not present in $language_code language | tee -a "$logfile"_this_run.log
fi
+ else
+ untranslated_comment=""
fi
if [ -n "$eng_generic_name" ]; then # GenericName string present in original desktop file
if [ -n "$lang_generic_name" ]; then # GenericName string present in your language
@@ -514,6 +518,8 @@ do
copy_this_desktop_file="yes"
echo GenericName string \"$eng_generic_name\" not present in $language_code language | tee -a "$logfile"_this_run.log
fi
+ else
+ untranslated_generic_name=""
fi
# copying the *.desktop file for editing in working directory if required