• R/O
  • SSH


File Info

Rev. 12977
Größe 2,500 Bytes
Zeit 2008-05-23 18:03:25
Autor luebbe.tortoisesvn
Log Message

Change the meaning of the po/pot/download Flag so that translation status sort order *and* download links are handled properly. Documentation in trans_countries.inc.


// index.php
// Main page.  Lists all the translations


$vars['release']=variable_get('tsvn_version', '');
$vars['build']=variable_get('tsvn_build', '');
$vars['downloadurl1']=variable_get('tsvn_sf_prefix', '');
$vars['downloadurl2']=variable_get('tsvn_sf_append', '');
$vars['reposurl']=variable_get('tsvn_repos_trunk', '').'Languages/';

function print_header($vars)

<div class="content">
<h2>Translations (in Revision <?php echo $vars['wcrev']; ?>)</h2>

This page is informing you about the GUI translation status of the current development version of TortoiseSVN, which is always ahead of the latest official release. The statistics are calculated for the HEAD revision and updated nightly. The last update was run at <b><?php echo $vars['update']; ?></b>.

If you want to download the po file from the repository, either use <strong>guest (no password)</strong> or your tigris.org user ID. 


// The program starts here

// Merge translation and country information into one array
$TortoiseGUI = array_merge_recursive($countries, $TortoiseGUI);

// Convert Data into a list of columns
foreach ($TortoiseGUI as $key => $row) {
   $potfile[$key] = abs($row[0]);
   $country[$key] = $row[3];
   $errors[$key] = $row[5];
   $total[$key] = $row[6];
   $transl[$key] = $row[7];
   $fuzzy[$key] = $row[8];
   $untrans[$key] = $row[9];
   $accel[$key] = $row[10];
   $name[$key] = $row[11];
   $fdate[$key] = $row[12];

// Add $TortoiseGUI as the last parameter, to sort by the common key
array_multisort($potfile, $country, $transl, $untrans, $fuzzy, $accel, $TortoiseGUI);


// Print Alphabetical statistics
print_table_header('sort_alpha', 'Languages ordered by country', $TortoiseGUI['zzz'], $vars);
print_all_stats($TortoiseGUI, $vars);

array_multisort($potfile, SORT_ASC, $transl, SORT_DESC, $untrans, SORT_ASC, $fuzzy, SORT_ASC, $accel, SORT_ASC, $country, SORT_ASC, $TortoiseGUI);

print_table_header('sort_status', 'Languages by translation status', $TortoiseGUI['zzz'], $vars);
print_all_stats($TortoiseGUI, $vars);


Show on old repository browser