Browse Source

Add hyperlinks to po file names. Fully translated files do not have hyperlinks yet.

master
Andrius Štikonas 10 years ago
parent
commit
a2fbf04d18
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      statistics

+ 7
- 1
statistics View File

@@ -188,9 +188,15 @@ for BRANCH in $TRUNK $BRANCHES; do

echo "<tr class=\"row-$CL\">" >> $STATSFILE
CL=$(( ($CL+1)%2 ))
echo " <td align=\"left\"><strong>`basename $filename`</strong></td>
if [ $(($f+$u)) -gt 0 ]; then
echo " <td align=\"left\"><strong><a href=\"$filename".po"\">`basename $filename`</a></strong></td>
<td class=\"percentage-$CL\" align=\"center\">$st</td>
<td class=\"row-$CL\" align=\"right\">$t</td>" >> $STATSFILE
else
echo " <td align=\"left\"><strong>`basename $filename`</strong></td>
<td class=\"percentage-$CL\" align=\"center\">$st</td>
<td class=\"row-$CL\" align=\"right\">$t</td>" >> $STATSFILE
fi
printf '%s%d%s%.2f%s\n' " <td class=\"percentage-" $CL "\" align=\"right\">" $rt "</td>" >> $STATSFILE
echo " <td class=\"row-$CL\" align=\"right\">$f</td>" >> $STATSFILE
printf '%s%d%s%.2f%s\n' " <td class=\"percentage-" $CL "\" align=\"right\">" $rf "</td>" >> $STATSFILE

Loading…
Cancel
Save