From cd8eb5945f2ebff91e59601f9275010ef1269caa Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 18 Feb 2010 21:04:38 +0000 Subject: [PATCH] bug fix svn path=/trunk/boinc/; revision=20636 --- locale/updatetrans.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/locale/updatetrans.sh b/locale/updatetrans.sh index f422ba1d0f..bcd8fb29b5 100755 --- a/locale/updatetrans.sh +++ b/locale/updatetrans.sh @@ -51,7 +51,7 @@ done # timestamp as the template files. If the timestamps do not match update all # languages. for file in `find -name '*.pot'` ; do - template_rootname=`basename $file` + template_rootname=`basename $file .pot` template_name=${projdir}/templates/${template_rootname} # Check to see if the file exists, if not create it @@ -73,28 +73,24 @@ then for file in `find -name '*.po'` ; do dir=`dirname $file` locale=`basename $dir` - po_name=`basename $file` + po_name=`basename $file .po` # Remove old index.html from previous iteration # rm ${projdir}/index.html > /dev/null 2> /dev/null - if test ${template_name}.po -nt ${template_name}.mo - then - - # Use wget to cause the Pottle system to update the po file based on the template. - # - # Example: http://boinc.berkeley.edu/translate/ar/boinctrunk/index.html?editing=1&doupdate=1&updatefile=BOINC-Manager.po - # - wget http://boinc.berkeley.edu/translate/${locale}/${projname}/index.html?editing=1&doupdate=1&updatefile=${po_name}.po > /dev/null 2> /dev/null + # Use wget to cause the Pottle system to update the po file based on the template. + # + # Example: http://boinc.berkeley.edu/translate/ar/boinctrunk/index.html?editing=1&doupdate=1&updatefile=BOINC-Manager.po + # + wget http://boinc.berkeley.edu/translate/${locale}/${projname}/index.html?editing=1&doupdate=1&updatefile=${po_name}.po > /dev/null 2> /dev/null - fi done fi for file in `find -name '*.pot'` ; do - template_rootname=`basename $file` + template_rootname=`basename $file .pot` template_name=${projdir}/${locale}/${template_rootname} if test ${template_name}.pot -nt ${template_name}.flag