~ubuntu-branches/ubuntu/quantal/gallery2/quantal

« back to all changes in this revision

Viewing changes to lib/tools/reports/localization/main_summary.inc

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2007-09-10 20:22:19 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070910202219-0jsuntvqge4ade6b
Tags: 2.2.3-2
Add Slovak translation of Debconf templates.  (Thanks to 
Ivan Masá.  Closes: #441671)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html>
3
 
  <head>
4
 
    <title> Gallery 2: Localization Status Report (<?php print strftime("%x") ?>)</title>
5
 
    <link rel="stylesheet" type="text/css" href="localization/style.css"/>
6
 
  </head>
7
 
    <body>
8
 
      <h1> Localization Status Report for Gallery 2 </h1>
9
 
      <h3> Generated: <?php print strftime("%x %X") ?> <br/>
10
 
           Most Recent PO: <?php print strftime("%x %X", $mostRecentPoDate) ?> <br/>
11
 
           Total Translated Strings: <?php print $totalTranslated ?> </h3>
12
 
 
13
 
      <center>
14
 
        View: <b> summary </b> | <a href="?type=detail"> detail </a>
15
 
        <table class="report">
16
 
            <?php $index = 0; ?>
17
 
            <?php foreach ($reportData as $locale => $localeData) { ?>
18
 
            <?php if (!($index % 20)) { ?>
19
 
            <?php include(dirname(__FILE__) . '/row_header_summary.inc'); ?>
20
 
            <?php } ?>
21
 
            <?php $index++; ?>
22
 
            <tr>
23
 
              <td class="dark">
24
 
                <?php print $index; ?> 
25
 
              </td>
26
 
              <td class="dark">
27
 
                <?php print $locale ?>
28
 
              </td>
29
 
              <td class="locale_percent" style="background-color:#<?php
30
 
                  print percentColor($localeData['percentDone']) ?>">
31
 
                <?php print $localeData['percentDone'] ?>%
32
 
              </td>
33
 
              <?php $summaryData = $localeData['summary']; ?>
34
 
              <td class="<?php print modifier('total') ?>">
35
 
                <?php print $summaryData['total'] ?>
36
 
              </td>
37
 
              <td class="<?php print modifier('translated') ?>">
38
 
                <?php print $summaryData['translated'] ?>%
39
 
              </td>
40
 
              <td class="<?php print modifier('fuzzy') ?>">
41
 
                <?php print $summaryData['fuzzy'] ?>%
42
 
              </td>
43
 
              <td class="<?php print modifier('untranslated') ?>">
44
 
                <?php
45
 
                  print '<span title="overall untranslated including missing *.po files">'
46
 
                    . (100 - $summaryData['translated'])
47
 
                    . '%</span> (<span title="untranslated in existing *.po files">'
48
 
                    . $summaryData['untranslated'] . '%</span>)';
49
 
                ?>
50
 
              </td>
51
 
              <td class="<?php print modifier('obsolete') ?>">
52
 
                <?php print $summaryData['obsolete'] ?>%
53
 
              </td>
54
 
            </tr>
55
 
          <?php } ?>
56
 
        </table>
57
 
      </center>
58
 
    </body>
59
 
</html>