Subversion Repositories SvarDOS

Compare Revisions

No changes between revisions

Ignore whitespace Rev 105 → Rev 107

/svnlschk/head.html
0,0 → 1,4
<p class="title">Svarog386 NLS support</p>
<p class="copyr">NLS stands for "National Language Support"</p>
<p>Svarog386 can be installed in several languages. This page lists all languages available today, along with simple statistics about the translation status of each core package.</p>
<table class="nls">
/svnlschk/tail.html
0,0 → 1,3
</table>
 
<!-- <p>Your language is not present in the list above, and you'd like to contribute to the Svarog386 project by providing translations in your language? Great! Simply download THIS FILE, it contains all english strings.</p> -->
/svnlschk/webgen.sh
0,0 → 1,88
#!/bin/bash
 
SVNLSCHK='./svnlschk'
COREDIR='/srv/www/svarog386.viste.fr/repos/core'
HTMLFILE='/srv/www/svarog386.viste.fr/index-nls.htm'
 
LANGSLIST="en de fr pl tr"
LANGSLONG="default german french polish turkish"
 
##############################################################################
 
processfile() {
f=$1
pkgname=$2
nlstype=$3
 
echo "Package: $pkgname"
 
if [ $nlstype -eq 0 ] ; then
LANGS=$LANGSLIST
ENCOUNT=`$SVNLSCHK $f en $nlstype`
else
LANGS=$LANGSLONG
ENCOUNT=`$SVNLSCHK $f default $nlstype`
fi
 
echo "<tr>" >> $HTMLFILE
echo " <td class=\"pkg\">$pkgname</td>" >> $HTMLFILE
 
for l in $LANGS
do
 
if [ $ENCOUNT -lt 0 ] ; then
echo " <td class=\"err\">ERR</td>" >> $HTMLFILE
fi
 
if [ $ENCOUNT -eq 0 ] ; then
echo " <td class=\"unsup\"></td>" >> $HTMLFILE
fi
 
if [ $ENCOUNT -gt 0 ] ; then
NLSCOUNT=`$SVNLSCHK $f $l $nlstype`
if [ $ENCOUNT -eq $NLSCOUNT ] ; then
echo " <td class=\"complete\">$NLSCOUNT/$ENCOUNT</td>" >> $HTMLFILE
else
echo " <td class=\"incomplete\">$NLSCOUNT/$ENCOUNT</td>" >> $HTMLFILE
fi
fi
 
done
 
echo "</tr>" >> $HTMLFILE
}
 
##############################################################################
 
cat head.html > $HTMLFILE
 
echo "<tr>" >> $HTMLFILE
printf " <th></th>" >> $HTMLFILE
 
for l in $LANGSLIST
do
printf "<th>%s</th>" "$l" >> $HTMLFILE
done
 
printf "\n</tr>\n" >> $HTMLFILE
 
# process COMMAND (special NLS format)
processfile $COREDIR/command.zip "command (lng)" 1
processfile $COREDIR/command.zip "command (err)" 2
 
for f in $COREDIR/*.zip
do
 
pkgname=`basename $f .zip`
# skip COMMAND
if [ $pkgname = "command" ] ; then
continue;
fi
 
processfile $f $pkgname 0
 
done
 
cat tail.html >> $HTMLFILE
 
exit 0
Property changes:
Added: svn:executable
+*
\ No newline at end of property