Use green for fully translated, yellow for above 80%.
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 10 Apr 2009 21:09:03 +0000 (21:09 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 10 Apr 2009 21:09:03 +0000 (21:09 +0000)
wwwtools/nls-status-page
wwwtools/nls-status-table

index 38460c9d848b3b20b26113dcd631856ed7bf278a..3e177fcd1fc31f0281790554914ead7c15caa4c6 100755 (executable)
@@ -16,7 +16,8 @@ h1 { color: #EC5800; }
 h2 { border-bottom: solid 10px #0092C3; }
 a { color: #0092C3; }
 .newpo { color: #666; visibility: visible; }
-.qualifiedpo { background-color: #00FF00; }
+.qualifiedpo { background-color: #FFFF00; }
+.fullpo { background-color: #00FF00; }
 </style>
 <script type="text/javascript">
 function getStyleClass (className) {
@@ -59,8 +60,9 @@ freshly baked PO files that are merged up against the latest program sources.
 No PostgreSQL source tree is needed for translation work.</p>
 
 <p>The <span class='qualifiedpo'>highlighted</span> boxes are the files that 
-have a sufficient fraction of strings translated to be considered for release.  
-All other files will not be part of the PostgreSQL release.</p>
+have a sufficient fraction of strings translated to be considered for release. 
+Files that are <span class='fullpo'>100%</span> translated are specially 
+highlighted. All other files will not be part of the PostgreSQL release.</p>
 
 <p>The grey numbers are translations that do not exist yet, but where this
 web site has initialized the translations files for you with data from the
@@ -100,10 +102,12 @@ print <<_EOF_;
 <a href="http://www.pgfoundry.org/projects/pgtranslation/">PgFoundry project</a>
 </p>
 
+<!-- FIXME:
 <p>Display options:
 <a href='' onclick="javascript:getStyleClass('newpo').style.visibility = 'visible';">show new</a> |
 <a href='' onclick="javascript:getStyleClass('newpo').style.visibility = 'hidden';">hide new</a>
 </p>
+-->
 _EOF_
 
 foreach $b (@branches) {
index 361ff843e6fd26efea0aa6714ced5dd60f884fed..b2ea66b9eb01d01d73e648adc479b2985f57d212 100755 (executable)
@@ -108,7 +108,11 @@ foreach my $catalog (sort @catalogs) {
     foreach my $lang (@all_lang) {
        my $pct = $everything->{$catalog}{$lang};
        print "<td align=\"center\"";
-       print " class='qualifiedpo'" if (defined $pct and $pct >= $QUALIFIED_CUTOFF and !$errors->{"$catalog"}{"$lang"});
+        if (defined $pct and $pct == 100 and !$errors->{"$catalog"}{"$lang"}) {
+           print " class='fullpo'" 
+        } elsif (defined $pct and $pct >= $QUALIFIED_CUTOFF and !$errors->{"$catalog"}{"$lang"}) }
+           print " class='qualifiedpo'";
+        }
        print ">";
 
        if (defined $pct and $pct > 0) {