4 // Drupal GUI translation status report
\r
6 // "http://tortoisesvn.net/translation_devel_gui"
\r
8 // "http://tortoisesvn.net/translation_release_gui"
\r
10 // Copyright (C) 2004-2008 the TortoiseSVN team
\r
11 // This file is distributed under the same license as TortoiseSVN
\r
13 // $Author: luebbe $
\r
14 // $Date: 2008-06-23 20:38:59 +0800 (Mon, 23 Jun 2008) $
\r
17 // Author: Lübbe Onken 2004-2008
\r
20 include("/var/www/vhosts/default/htdocs/modules/tortoisesvn/trans_data_trunk.inc");
\r
21 include("/var/www/vhosts/default/htdocs/modules/tortoisesvn/trans_countries.inc");
\r
22 include("/var/www/vhosts/default/htdocs/modules/tortoisesvn/tortoisevars.inc");
\r
24 // different settings depending on dev or release report
\r
25 // uncomment these three lines for the trunk report
\r
26 $tsvn_var['showold']=TRUE;
\r
27 $tsvn_var['reposurl']=$tsvn_var['repos_trunk'].'Languages/';
\r
28 $tsvn_var['header_msg']='the current development version of TortoiseSVN, which is always ahead of the latest official release';
\r
29 // uncomment these three lines for the release branch report
\r
30 // $tsvn_var['showold']=FALSE;
\r
31 // $tsvn_var['reposurl']=$tsvn_var['repos_branch'].'Languages/';
\r
32 // $tsvn_var['header_msg']='the latest official TortoiseSVN release <b>('.$tsvn_var['release'].')</b>';
\r
34 function print_header($tsvn_var)
\r
38 <div class="content">
\r
39 <h2>Translations (in Revision <?php echo $tsvn_var['wcrev']; ?>)</h2>
\r
42 This page is informing you about the GUI translation status of <?php echo $tsvn_var['header_msg']; ?>.
\r
43 The statistics are calculated for the HEAD revision and updated regularly.
\r
44 The last update was run at <b><?php echo $tsvn_var['update']; ?></b>.
\r
48 If you want to download the po file from the repository, either use <strong>guest (no password)</strong> or your tigris.org user ID.
\r
54 //------------------------------------
\r
56 // The program starts here
\r
59 // Merge translation and country information into one array
\r
60 $TortoiseGUI = array_merge_recursive($countries, $TortoiseGUI);
\r
62 // Convert Data into a list of columns
\r
63 foreach ($TortoiseGUI as $key => $row) {
\r
64 $potfile[$key] = abs($row[0]);
\r
65 $country[$key] = $row[3];
\r
66 $errors[$key] = $row[5];
\r
67 $total[$key] = $row[6];
\r
68 $transl[$key] = $row[7];
\r
69 $fuzzy[$key] = $row[8];
\r
70 $untrans[$key] = $row[9];
\r
71 $accel[$key] = $row[10];
\r
72 $name[$key] = $row[11];
\r
73 $fdate[$key] = $row[12];
\r
76 // Add $TortoiseGUI as the last parameter, to sort by the common key
\r
77 array_multisort($potfile, $country, $transl, $untrans, $fuzzy, $accel, $TortoiseGUI);
\r
79 print_header($tsvn_var);
\r
81 // Print Alphabetical statistics
\r
82 print_table_header('sort_alpha', 'Languages ordered by country', $TortoiseGUI['zzz'], $tsvn_var);
\r
83 print_all_stats($TortoiseGUI, $tsvn_var);
\r
84 print_table_footer();
\r
86 array_multisort($potfile, SORT_ASC, $transl, SORT_DESC, $untrans, SORT_ASC, $fuzzy, SORT_ASC, $accel, SORT_ASC, $country, SORT_ASC, $TortoiseGUI);
\r
88 print_table_header('sort_status', 'Languages by translation status', $TortoiseGUI['zzz'], $tsvn_var);
\r
89 print_all_stats($TortoiseGUI, $tsvn_var);
\r
90 print_table_footer();
\r
92 print_footer($tsvn_var);
\r