mirror of https://github.com/BOINC/boinc.git
parent
8d142db211
commit
306167d4c3
|
@ -39,6 +39,19 @@ for file in `find -name 'BOINC-Client.po'` ; do
|
|||
done
|
||||
|
||||
|
||||
# Iterrate through the various PO files looking for those that need to be added to SVN.
|
||||
#
|
||||
for file in `find -name 'BOINC-Web.po'` ; do
|
||||
dir=`dirname $file`
|
||||
locale=`basename $dir`
|
||||
template_name=${projdir}/${locale}/BOINC-Web
|
||||
|
||||
# Add any missing PO files to SVN
|
||||
svn add ${template_name}.po > /dev/null 2> /dev/null
|
||||
svn propset svn:mime-type 'text/plain;charset=UTF-8' ${template_name}.po > /dev/null 2> /dev/null
|
||||
done
|
||||
|
||||
|
||||
# Iterrate through the various PO files looking for those that need to be compiled.
|
||||
#
|
||||
for file in `find -name 'BOINC-Manager.po'` ; do
|
||||
|
@ -87,6 +100,30 @@ for file in `find -name 'BOINC-Client.po'` ; do
|
|||
done
|
||||
|
||||
|
||||
# Iterrate through the various PO files looking for those that need to be compiled.
|
||||
#
|
||||
for file in `find -name 'BOINC-Web.po'` ; do
|
||||
dir=`dirname $file`
|
||||
locale=`basename $dir`
|
||||
template_name=${projdir}/${locale}/BOINC-Web
|
||||
|
||||
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
|
||||
|
||||
# Add any new MO files to SVN
|
||||
svn add ${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
|
||||
|
|
Loading…
Reference in New Issue