2013-10-15 18:19:59 +00:00
|
|
|
#! /usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// Generate translation templates from source code.
|
|
|
|
// Compare them with the current versions in trunk;
|
|
|
|
// if they differ, send email telling us to validate and commit
|
|
|
|
// the new versions.
|
|
|
|
|
2016-11-16 20:54:07 +00:00
|
|
|
$emails = "davea@ssl.berkeley.edu";
|
2013-10-15 18:19:59 +00:00
|
|
|
$tdir = "locale/templates";
|
|
|
|
|
2013-10-29 19:24:50 +00:00
|
|
|
system("cd doc; ./build_po.php");
|
2013-10-15 18:19:59 +00:00
|
|
|
system("tools/compare_pot doc/BOINC-Web.pot $tdir/BOINC-Web.pot $emails");
|
|
|
|
|
2013-10-29 19:24:50 +00:00
|
|
|
system("cd html/ops; ./build_po_boinc.php");
|
2013-10-15 18:19:59 +00:00
|
|
|
system("tools/compare_pot html/ops/BOINC-Project-Generic.pot $tdir/BOINC-Project-Generic.pot $emails");
|
|
|
|
|
2013-10-29 19:24:50 +00:00
|
|
|
system("cd client; ./build_po");
|
2013-10-15 18:19:59 +00:00
|
|
|
system("tools/compare_pot client/BOINC-Client.pot $tdir/BOINC-Client.pot $emails");
|
|
|
|
|
2013-10-29 19:24:50 +00:00
|
|
|
system("cd clientgui; ./build_po");
|
2013-10-15 18:19:59 +00:00
|
|
|
system("tools/compare_pot clientgui/BOINC-Manager.pot $tdir/BOINC-Manager.pot $emails");
|
|
|
|
|
2013-10-29 19:24:50 +00:00
|
|
|
system("cd mac_installer; ./build_po");
|
2013-10-15 18:19:59 +00:00
|
|
|
system("tools/compare_pot mac_installer/BOINC-Setup.pot $tdir/BOINC-Setup.pot $emails");
|
|
|
|
|
2014-01-17 18:47:33 +00:00
|
|
|
//system("cd android; a2po export -v");
|
|
|
|
//system("tools/compare_pot android/BOINC-Android.pot $tdir/BOINC-Android.pot $emails");
|
2013-10-15 18:19:59 +00:00
|
|
|
|
2013-10-22 05:22:01 +00:00
|
|
|
// generate translations for BOINC web site
|
|
|
|
//
|
2013-10-29 19:24:50 +00:00
|
|
|
system("cd doc; ./update_translations.php");
|
2013-10-22 05:22:01 +00:00
|
|
|
|
2013-10-15 18:19:59 +00:00
|
|
|
?>
|