Esempio n. 1
0
//------------------------------------
//
// 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_header($tsvn_var);
// Print Alphabetical statistics
print_table_header('sort_alpha', 'Languages ordered by country', $TortoiseGUI['zzz'], $tsvn_var);
print_all_stats($TortoiseGUI, $tsvn_var);
print_table_footer();
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'], $tsvn_var);
print_all_stats($TortoiseGUI, $tsvn_var);
print_table_footer();
print_footer($tsvn_var);
Esempio n. 2
0
    $name[$key] = $row[11];
    $fdate[$key] = $row[12];
}
// Add $TortoiseSVN as the last parameter, to sort by the common key
array_multisort($potfile, $country, $transl, $untrans, $fuzzy, $TortoiseSVN);
print_d_header($tsvn_var);
// Print Alphabetical statistics
print_table_header('TortoiseSVN', 'TortoiseSVN', $TortoiseSVN['zzz'], $tsvn_var);
print_all_stats($TortoiseSVN, $tsvn_var);
print_table_footer();
// Merge translation and country information into one array
$TortoiseMerge = array_merge_recursive($countries, $TortoiseMerge);
// Convert Data into a list of columns
foreach ($TortoiseMerge as $key => $row) {
    $mpotfile[$key] = abs($row[0]);
    $mcountry[$key] = $row[3];
    $merrors[$key] = $row[5];
    $mtotal[$key] = $row[6];
    $mtransl[$key] = $row[7];
    $mfuzzy[$key] = $row[8];
    $muntrans[$key] = $row[9];
    $maccel[$key] = $row[10];
    $mname[$key] = $row[11];
    $mfdate[$key] = $row[12];
}
// Add $TortoiseMerge as the last parameter, to sort by the common key
array_multisort($mpotfile, $mcountry, $mtransl, $muntrans, $mfuzzy, $maccel, $TortoiseMerge);
print_table_header('TortoiseMerge', 'TortoiseMerge', $TortoiseMerge['zzz'], $tsvn_var);
print_all_stats($TortoiseMerge, $tsvn_var);
print_table_footer();
print_footer($tsvn_var);