[prev in list] [next in list] [prev in thread] [next in thread]
List: gallery-checkins
Subject: [Gallery-checkins] CVS: gallery/tools g1-report.php,1.5.2.1,1.5.2.2
From: Jens Tkotz <jenst () users ! sourceforge ! net>
Date: 2003-09-30 23:06:11
[Download RAW message or body]
Update of /cvsroot/gallery/gallery/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv22385/tools
Modified Files:
Tag: BRANCH_1_4
g1-report.php
Log Message:
2003-10-01 Jens Tkotz <jens@peino.de> 1.4-pl1-lang1
* Fixed Bug in initlanguage() which caused Gallery
not to detect Broweserlanguage when using Opera
* Fixed Bug in report.
* New Languages: Bulgarian (bg_BG), Brazilian Portuguese (pt_BR), Korean \
(ko_KR), Hungarian (hu_HU)
* Language updates: German (de_DE), Polish (pl_PL), Icelandish (is_IS); \
Finnish (fi_FI),
Czech (cs_CZ), Hebrew (he_IL), Turkish (tr_TR), Dutch \
(nl_NL),
Spanish (es_ES), Japanese (ja_JP), Traditional Chinese \
(zh_TW)
* Changed charset for Czech (cs_CZ) to windows-1250
* removed broken lines in .po files
(thanks to donwillingham for help and script !)
* Added Copyright to po files
Index: g1-report.php
===================================================================
RCS file: /cvsroot/gallery/gallery/tools/Attic/g1-report.php,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -u -r1.5.2.1 -r1.5.2.2
--- g1-report.php 16 Aug 2003 13:25:38 -0000 1.5.2.1
+++ g1-report.php 30 Sep 2003 23:06:09 -0000 1.5.2.2
@@ -29,17 +29,18 @@
$obsolete++;
}
}
- $all=$translated+$fuzzy+$untranslated;
- $percent_done=round($translated/$all*100,2);
+ $all=$translated+$untranslated;
+ $percent_done=round(($translated-$fuzzy)/$all*100,2);
$rpd=round($percent_done,0);
- $report[$locale]=array ($percent_done,$translated,$fuzzy,$untranslated,$bgcolor);
+
if($rpd <50) {
$color=dechex(255-$rpd*2). "0000";
} else {
$color="00" . dechex(55+$rpd*2). "00";
}
if (strlen($color) <6) $color="0". $color;
- $report[$locale]=array \
($color,$percent_done,$translated,$fuzzy,$untranslated,$obsolete); +
+ $report[$locale]=array ($color,$percent_done,$all, \
$translated,$fuzzy,$untranslated,$obsolete); }
}
closedir($handle);
@@ -67,6 +68,7 @@
<th>Language</th>
<th>Locale</th>
<th>Status</th>
+ <th valign="bottom" style="width: 30px;">A<br/>l<br/>l<br/></th>
<th valign="bottom" style="width: \
30px;">T<br/>r<br/>a<br/>n<br/>s<br/>l<br/>a<br/>t<br/>e<br/>d</th> <th \
valign="bottom" style="width: 30px;">F<br/>u<br/>z<br/>z<br/>y</th> <th \
valign="bottom" style="width: \
30px;">U<br/>n<br/>t<br/>r<br/>a<br/>n<br/>s<br/>l<br/>a<br/>t<br/>e<br/>d</th> @@ \
-96,10 +98,11 @@ echo "\n\t<td style=\"background-color:$color\">". \
$nls['language'][$key] . "</td>"; echo "\n\t<td style=\"background-color:$color\">". \
$key ."</td>"; echo "\n\t<td style=\"background-color:#". $value[0] . "\">". \
$value[1] ."% done</td>";
- echo "\n\t<td class=\"translated$nr\">". $value[2] ."</td>";
- echo "\n\t<td class=\"fuzzy$nr\">". $value [3] . "</td>";
- echo "\n\t<td class=\"untranslated$nr\">". $value[4] ."</td>";
- echo "\n\t<td class=\"obsolete$nr\">". $value[5] ."</td>";
+ echo "\n\t<td style=\"background-color:$color\">". $value[2] ."</td>";
+ echo "\n\t<td class=\"translated$nr\">". $value[3] ."</td>";
+ echo "\n\t<td class=\"fuzzy$nr\">". $value [4] . "</td>";
+ echo "\n\t<td class=\"untranslated$nr\">". $value[5] ."</td>";
+ echo "\n\t<td class=\"obsolete$nr\">". $value[6] ."</td>";
echo "\t</tr>";
$last_key=$key;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
__[ g a l l e r y - c h e c k i n s ]_________________________
[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic