From 6541085ceeca1dcafbf08239a84d7ef718a245be Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 21 Oct 2013 22:22:01 -0700 Subject: [PATCH] translation stuff --- build_pos | 7 ++++++- doc/addon_data.php | 10 ++++++++++ locale/updatetrans.sh | 15 +++++---------- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/build_pos b/build_pos index 7380c23f89..b0224ef7a3 100755 --- a/build_pos +++ b/build_pos @@ -27,6 +27,11 @@ system("tools/compare_pot mac_installer/BOINC-Setup.pot $tdir/BOINC-Setup.pot $e system("cd android; a2po export -v"); system("tools/compare_pot android/BOINC-Android.pot $tdir/BOINC-Android.pot $emails"); -// as long as we're at it, generate translations for BOINC web site +// generate translations for BOINC web site +// system("cd doc; update_translations.php"); + +// copy generic web files to html/translations +// +system("cd locale; copy_files.php"); ?> diff --git a/doc/addon_data.php b/doc/addon_data.php index 59f8a3d16b..2a37df4c86 100644 --- a/doc/addon_data.php +++ b/doc/addon_data.php @@ -36,6 +36,16 @@ array( ); $win = array( +array( + 'http://code.google.com/p/boinc-client-configuration/', + 'BOINC Client Configuration', + '1.2.5', + 'Windows GUI for editing the client configuration file', + 'http://code.google.com/p/boinc-client-configuration/', + 'Windows', + 'BOINC Client Configuration provides a graphical user interface (GUI) for editing the BOINC client configuration file (cc_config.xml)', + 1382122439 +), array( 'http://www.setispirit.de/', 'SETISpirit', diff --git a/locale/updatetrans.sh b/locale/updatetrans.sh index bd8142e0e0..bf21e0eae8 100755 --- a/locale/updatetrans.sh +++ b/locale/updatetrans.sh @@ -1,7 +1,10 @@ #!/bin/sh -# Automate the compilation of the various locale PO files by automatically -# generating them at night. +# Look for .po files modified later than .mo, and regenerate .mo file +# Then commit and push changes. + +# This is run in the Pootle copy of the source tree (~/pootle/repos/boinctrunk) +# It's run from pootle/update.sh, which is run from cron every 12 hours. # projname=boinctrunk projdir=/home/boincadm/pootle/repos/$projname @@ -9,8 +12,6 @@ projdir=/home/boincadm/pootle/repos/$projname cd $projdir -# Iterrate through the various PO files looking for those that need to be compiled. -# for file in `find -name 'BOINC-Manager.po'` ; do dir=`dirname $file` locale=`basename $dir` @@ -30,8 +31,6 @@ for file in `find -name 'BOINC-Manager.po'` ; do done -# Iterrate through the various PO files looking for those that need to be compiled. -# for file in `find -name 'BOINC-Client.po'` ; do dir=`dirname $file` locale=`basename $dir` @@ -51,8 +50,6 @@ 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` @@ -72,8 +69,6 @@ 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`