diff --git a/locale/updatetrans.sh b/locale/updatetrans.sh index 5feef3d7dd..0db7f544dd 100755 --- a/locale/updatetrans.sh +++ b/locale/updatetrans.sh @@ -72,6 +72,27 @@ for file in `find -name 'BOINC-Web.po'` ; do done +# Iterrate through the various PO files looking for those that need to be compiled. +# +for file in `find -name 'BOINC-Setup.po'` ; do + dir=`dirname $file` + locale=`basename $dir` + template_name=${projdir}/${locale}/BOINC-Setup + + if test ${template_name}.po -nt ${template_name}.mo + then + + # Compile the PO file into an MO file. + pocompile ${template_name}.po ${template_name}.mo > /dev/null 2> /dev/null + + # Touch each file to adjust timestamps + touch ${template_name}.po + touch ${template_name}.mo + + fi +done + + # Determine if we need to update the various languages using the templates. # This will be done by the use of a tag file which should have a matching # timestamp as the template files. If the timestamps do not match update all