From c729e8575090f47284a6440acce4ebf1b324c62d Mon Sep 17 00:00:00 2001 From: filip Date: Sat, 9 Nov 2013 20:42:22 +0100 Subject: mageiawelcome added + some fixes separate NEWS file mageiawelcome added small bugfix for and English only in list_of_resources_for_translation.txt --- check_for_translation_work.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'check_for_translation_work.sh') 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 -- cgit v1.2.1