Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 123 → Rev 124

/svnlschk/head.html
1,4 → 1,6
<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>
<p>Your language is either missing or incomplete, and you'd like to contribute to the Svarog386 project by providing translations in your native language? Great! Simply download <a href="nls.zip">THIS FILE</a>, it contains all translation files shipped with Svarog386, so you should be up to speed in no time.</p>
 
<table class="nls">
/svnlschk/tail.html
1,3 → 1,0
</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
4,6 → 4,8
COREDIR='/srv/www/svarog386.viste.fr/repos/core'
HTMLFILE='/srv/www/svarog386.viste.fr/index-nls.htm'
INSTALLNLS='/root/svarog386/files/floppy/nls'
NLSTEMPDIR='/tmp/sv_nls'
NLSARCH='/srv/www/svarog386.viste.fr/nls.zip'
 
LANGSLIST="en fr it pl ru si tr"
LANGSLONG="default french italian polish russian slovene turkish"
20,9 → 22,15
if [ $nlstype -eq 0 ] ; then
LANGS=$LANGSLIST
ENCOUNT=`$SVNLSCHK $f en $nlstype`
unzip -Cj "$f" nls/\* -d "$NLSTEMPDIR/nls/"
else
LANGS=$LANGSLONG
ENCOUNT=`$SVNLSCHK $f default $nlstype`
if [ $nlstype -eq 1 ] ; then
unzip -Cj "$f" source/command/strings/\*.lng -d "$NLSTEMPDIR/nls/command/"
else
unzip -Cj "$f" source/command/strings/\*.err -d "$NLSTEMPDIR/nls/command/"
fi
fi
 
echo "<tr>" >> $HTMLFILE
67,6 → 75,8
 
printf "\n</tr>\n" >> $HTMLFILE
 
mkdir -p "$NLSTEMPDIR/nls/command"
 
# process INSTALL
mkdir /tmp/nls
cp $INSTALLNLS/install.* /tmp/nls/
73,10 → 83,10
CURDIR=`pwd`
cd /tmp
zip -qq -r install.zip nls
rm -rf /tmp/nls
cd $CURDIR
processfile /tmp/install.zip "install" 0
rm /tmp/install.zip
rm -rf /tmp/nls
 
# process COMMAND (special NLS format)
processfile $COREDIR/command.zip "command (lng)" 1
97,4 → 107,9
 
cat tail.html >> $HTMLFILE
 
cd "$NLSTEMPDIR"
zip -9 -k -r "$NLSARCH" nls
rm -rf "$NLSTEMPDIR"
cd "$CURDIR"
 
exit 0