From d455804375fb1d4c7c8665b305370c81b0ca1a9f Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 5 Jun 2013 16:49:02 -0400 Subject: [PATCH] LOC: Add BOINC-Setup.po to the list of files that need to go through the pocompile process. --- locale/updatetrans.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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