[Po4a-commits] po4a html-build-upload.sh,1.8,1.9
Jordi Vilalta
po4a-devel@lists.alioth.debian.org
Thu, 12 Aug 2004 00:19:02 +0000
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv21925
Modified Files:
html-build-upload.sh
Log Message:
Support for translated pages descriptions
Index: html-build-upload.sh
===================================================================
RCS file: /cvsroot/po4a/po4a/html-build-upload.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- html-build-upload.sh 11 Aug 2004 17:07:23 -0000 1.8
+++ html-build-upload.sh 12 Aug 2004 00:18:59 -0000 1.9
@@ -25,6 +25,10 @@
echo $((($YES*100)/$TOTAL))
}
+function get_name {
+ cat po/pod/$1.po | sed -n -e /\"NAME\"/,+1p | sed -n -e "s/msgstr \"\(.*\)\"/\1/p"
+}
+
POFILES=`cd po/pod; ls *.po`
LANGS=${POFILES//.po/}
@@ -55,7 +59,7 @@
PERL5LIB=lib perl po4a-translate $PO4A_OPTS -a doc/addendum.$lang -m $file -p po/pod/$lang.po -l html/tmp/lib/Locale/Po4a/$newfile
done
- mpod2html -dir=html/$lang -tocname index html/tmp/*
+ mpod2html -dir=html/$lang -strname `get_name $lang` -tocname index html/tmp/*
rm -rf html/tmp
PERC=`percent_lang $lang`