Lars' patch to postats.sh fixes all but one of the errors found by

validator.w3.org, so I'm committing his patch.
Also update of Danish translation from Claus.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5993 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-01-27 16:15:19 +00:00
parent 12faff56e7
commit 524964bcb4
3 changed files with 248 additions and 378 deletions

View File

@ -1,3 +1,15 @@
2003-01-27 Angus Leeming <leeming@lyx.org>
* postats.sh: == is a bash extension. Use =.
2003-01-27 Claus Hindsgaul <claus_h@image.dk>
* da.po: update
2003-01-27 Lars Gullik Bjønnes <larsbj@gullik.net>
* postats.sh: a first stab at xhtml-conformant code.
2003-01-27 Alfredo Braunstein <abraunst@libero.it> 2003-01-27 Alfredo Braunstein <abraunst@libero.it>
* es.po: update * es.po: update

578
po/da.po

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
# #
# author: Michael Schmitt, michael.schmitt@teststep.org # author: Michael Schmitt, michael.schmitt@teststep.org
# #
# This script extracts some information from the po file headers (last # This script extracts some information from the po file headers (last
# translator, revision date), generates the corresponding gmo files # translator, revision date), generates the corresponding gmo files
# to retrieve the number of translated/fuzzy/untranslated messages, # to retrieve the number of translated/fuzzy/untranslated messages,
# and generates a PHP web page. # and generates a PHP web page.
@ -19,7 +19,7 @@
# *** The PHP header *** # *** The PHP header ***
cat <<EOF cat <<EOF
<? <?
// What's the title of the page? // What's the title of the page?
\$title = "LyX i18n"; \$title = "LyX i18n";
// What's the short name of the page in the navigation bar? // What's the short name of the page in the navigation bar?
@ -43,7 +43,7 @@ echo "\$podata = array ( "
first=true first=true
for x for x
do do
if [ $first == true ] ; then if [ $first = true ] ; then
first=false ; first=false ;
else else
echo ", " ; echo ", " ;
@ -51,12 +51,12 @@ do
y=`basename $x .po` y=`basename $x .po`
echo "array ( 'langcode' => '$y', " echo "array ( 'langcode' => '$y', "
touch $x touch $x
make 2>&1 $y.gmo | grep "^[1-9]" | make 2>&1 $y.gmo | grep "^[1-9]" |
sed -e 's/\([0-9]*\) translated m[a-z]*[.,]/"msg_tr" => \1,/' | sed -e 's/\([0-9]*\) translated m[a-z]*[.,]/"msg_tr" => \1,/' |
sed -e 's/\([0-9]*\) fuzzy t[a-z]*[.,]/"msg_fu" => \1,/' | sed -e 's/\([0-9]*\) fuzzy t[a-z]*[.,]/"msg_fu" => \1,/' |
sed -e 's/\([0-9]*\) untranslated m[a-z]*./"msg_nt" => \1,/' sed -e 's/\([0-9]*\) untranslated m[a-z]*./"msg_nt" => \1,/'
# Format: "Last-Translator: Michael Schmitt <Michael.Schmitt@teststep.org>\n" # Format: "Last-Translator: Michael Schmitt <Michael.Schmitt@teststep.org>\n"
grep "Last-Translator" $x | grep "Last-Translator" $x |
sed -e 's/"Last-Translator: \(.*\)\( *\)<\(.*\)>\\n"/"translator" => "\1", "email" => "\3", /' sed -e 's/"Last-Translator: \(.*\)\( *\)<\(.*\)>\\n"/"translator" => "\1", "email" => "\3", /'
# Format: "PO-Revision-Date: 2003-01-18 03:00+0100\n" # Format: "PO-Revision-Date: 2003-01-18 03:00+0100\n"
grep "PO-Revision-Date" $x | grep "PO-Revision-Date" $x |
@ -93,7 +93,7 @@ cat <<EOF
'sv' => 'Swedish', 'sv' => 'Swedish',
'tr' => 'Turkish', 'tr' => 'Turkish',
'wa' => 'Wallon' 'wa' => 'Wallon'
); );
\$noOfMsg = \$podata[0]['msg_tr'] + \$podata[0]['msg_fu'] + \$podata[0]['msg_nt']; \$noOfMsg = \$podata[0]['msg_tr'] + \$podata[0]['msg_fu'] + \$podata[0]['msg_nt'];
@ -108,10 +108,10 @@ cat <<EOF
?> ?>
<p> <p>
The following table lists all translations available with the number of messages The following table lists all translations available with the number of messages
given for the LyX main development branch (currently 1.3.0cvs). given for the LyX main development branch (currently 1.3.0cvs).
Unfortunately, only a few languages are well-supported. Unfortunately, only a few languages are well-supported.
For every release, the LyX development team may decide to exclude some of the For every release, the LyX development team may decide to exclude some of the
translations from the distribution in order not to confuse the user by a strongly translations from the distribution in order not to confuse the user by a strongly
mixed-language interface. mixed-language interface.
</p> </p>
@ -119,13 +119,13 @@ cat <<EOF
Explanation: Explanation:
<ul> <ul>
<li><i>Translated:</i> The number of translated messages</li> <li><i>Translated:</i> The number of translated messages</li>
<li><i>Fuzzy:</i> The number of fuzzy messages; these are not considered <li><i>Fuzzy:</i> The number of fuzzy messages; these are not considered
for LyX output but solely serve as a hint for the translators</li> for LyX output but solely serve as a hint for the translators</li>
<li><i>Untranslated:</i> The number of untranslated messages; the <li><i>Untranslated:</i> The number of untranslated messages; the
default language (i.e., English) will be used in the LyX outputs</li> default language (i.e., English) will be used in the LyX outputs</li>
</ul> </ul>
</p> </p>
<table align=center frame=box rules=all border="2" cellpadding="5"> <table class="center" frame="box" rules="all" border="2" cellpadding="5">
<thead> <thead>
<tr> <tr>
<td>Language</td> <td>Language</td>
@ -151,9 +151,9 @@ cat <<EOF
print "<td \$style>" . \$lang[\$info['langcode']] . "</td>"; print "<td \$style>" . \$lang[\$info['langcode']] . "</td>";
print "<td \$style align=right>" . \$info['msg_tr'] . "</td>"; print "<td \$style align=\"right\">" . \$info['msg_tr'] . "</td>";
print "<td \$style align=right>"; print "<td \$style align=\"right\">";
if (isset(\$info['msg_fu'])) { if (isset(\$info['msg_fu'])) {
print \$info['msg_fu']; print \$info['msg_fu'];
} else { } else {
@ -161,7 +161,7 @@ cat <<EOF
} }
print "</td>"; print "</td>";
print "<td \$style align=right>"; print "<td \$style align=\"right\">";
if (isset(\$info['msg_nt'])) { if (isset(\$info['msg_nt'])) {
print \$info['msg_nt']; print \$info['msg_nt'];
} else { } else {
@ -169,11 +169,11 @@ cat <<EOF
} }
print "</td>"; print "</td>";
print "<td \$style align=center>" . \$info['date'] . "</td>"; print "<td \$style align=\"center\">" . \$info['date'] . "</td>";
print "<td \$style>"; print "<td \$style>";
if (\$info['email'] == "") { if (\$info['email'] == "") {
print \$info['translator']; print \$info['translator'];
} else { } else {
print "<a href=\"mailto:" . \$info['email'] . "\">" . print "<a href=\"mailto:" . \$info['email'] . "\">" .
\$info['translator'] . "</a>"; \$info['translator'] . "</a>";
@ -188,7 +188,7 @@ cat <<EOF
EOF EOF
cat <<EOF cat <<EOF
<? <?
include("end.php3"); include("end.php3");
?> ?>
EOF EOF