~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« 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: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  </head>
7
7
    <body>
8
8
      <h1> Localization Status Report for Gallery 2 </h1>
9
 
      <h2> Generated: <?php print strftime("%x %X") ?> </h2>
 
9
      <h3> Generated: <?php print strftime("%x %X") ?> <br/>
 
10
           Most Recent PO: <?php print strftime("%x %X", $mostRecentPoDate) ?> </h3>
10
11
 
11
12
      <center>
12
 
        View: <b> summary </b> | <a href="?type=detail"> detail </a>
 
13
        View: <b> summary </b> | <a href="?type=detail"> detail </a>
13
14
        <table class="report">
14
15
            <?php $index = 0; ?>
15
16
            <?php foreach ($reportData as $locale => $localeData) { ?>
24
25
              <td class="dark">
25
26
                <?php print $locale ?>
26
27
              </td>
27
 
              <td bgcolor="<?php print percentColor($localeData['percentDone']) ?>" class="locale_percent">
28
 
                <?php print round($localeData['percentDone']) ?>%
 
28
              <td class="locale_percent" style="background-color:#<?php
 
29
                  print percentColor($localeData['percentDone']) ?>">
 
30
                <?php print round($localeData['percentDone'], $precision) ?>%
29
31
              </td>
30
32
              <?php $summaryData = $localeData['summary']; ?>
31
33
              <td class="<?php print modifier('total') ?>">
32
 
                <?php print $summaryData['total'] ?>
 
34
                <?php print $summaryData['total'] ?>
33
35
              </td>
34
36
              <td class="<?php print modifier('translated') ?>">
35
 
                <?php print round($summaryData['translated']) ?>%
 
37
                <?php print round($summaryData['translated'], $precision) ?>%
36
38
              </td>
37
39
              <td class="<?php print modifier('fuzzy') ?>">
38
 
                <?php print round($summaryData['fuzzy']) ?>%
 
40
                <?php print round($summaryData['fuzzy'], $precision) ?>%
39
41
              </td>
40
42
              <td class="<?php print modifier('untranslated') ?>">
41
43
                <?php
42
44
                  print '<span title="overall untranslated including missing *.po files">'
43
 
                    . round(100 - $summaryData['translated'])
 
45
                    . round(100 - $summaryData['translated'], $precision)
44
46
                    . '%</span> (<span title="untranslated in existing *.po files">'
45
 
                    . round($summaryData['untranslated']) . '%</span>)';
 
47
                    . round($summaryData['untranslated'], $precision) . '%</span>)';
46
48
                ?>
47
49
              </td>
48
50
              <td class="<?php print modifier('obsolete') ?>">
49
 
                <?php print round($summaryData['obsolete']) ?>%
 
51
                <?php print round($summaryData['obsolete'], $precision) ?>%
50
52
              </td>
51
53
            </tr>
52
54
          <?php } ?>