1#!/usr/bin/env php
2<?php
3// This file is part of BOINC.
4// http://boinc.berkeley.edu
5// Copyright (C) 2008 University of California
6//
7// BOINC is free software; you can redistribute it and/or modify it
8// under the terms of the GNU Lesser General Public License
9// as published by the Free Software Foundation,
10// either version 3 of the License, or (at your option) any later version.
11//
12// BOINC is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15// See the GNU Lesser General Public License for more details.
16//
17// You should have received a copy of the GNU Lesser General Public License
18// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
19
20$cli_only = true;
21require_once("../inc/util_ops.inc");
22require_once("../inc/translation.inc");
23
24error_reporting(E_ALL);
25ini_set('display_errors', true);
26ini_set('display_startup_errors', true);
27
28system("rm -f $lang_language_dir/$lang_compiled_dir/*");
29
30$lang_log_level = 0;
31if ($argc >= 3 && $argv[1] == '-d') {
32    $lang_log_level = $argv[2];
33}
34
35// process the generic BOINC web site strings
36//
37build_translation_array_files(
38    $lang_language_dir, $lang_translations_dir, $lang_compiled_dir
39);
40
41// process the project-specific strings
42//
43build_translation_array_files(
44    $lang_language_dir, $lang_prj_translations_dir, $lang_compiled_dir
45);
46
47echo "update_translations finished\n";
48
49?>
50