# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.
#
-# author: Michael Schmitt, michael.schmitt@teststep.org
+# author: Michael Gerz, michael.gerz@teststep.org
#
# This script extracts some information from the po file headers (last
# translator, revision date), generates the corresponding gmo files
# and generates a PHP web page.
#
# Invocation:
-# postats.sh po_files > "pathToWebPages"/i18n.php3
+# postats.sh po_files > "pathToWebPages"/i18n.php
# modifiy this when you change version
# Note that an empty lyx_branch variable (ie cvs HEAD)
# GNU sed and grep have real problems dealing with 8-bit characters
# in UTF-8 encoded environments.
unset LANG
-
+LANGUAGE=C
warning () {
echo $* 1>&2
date=`grep 'Revision-Date' $pofile | sed 's/ */ /g' | cut -d ' ' -f 2`
# Searching for a string of the form
- # '"Last-Translator: Michael Schmitt <Michael.Schmitt@teststep.org>\n"'
+ # '"Last-Translator: Michael Gerz <Michael.Gerz@teststep.org>\n"'
translator=
email=
input=`grep "Last-Translator" $pofile` && {
// What's the short name of the page in the navigation bar?
\$item="i18n";
// Who is the author?
- \$author="Michael Schmitt";
+ \$author="Michael Gerz";
// Full name of the file (relative path from LyX home page -- i.e., it should
- // be "foo.php3" or "bar/foo.php3")
- \$file_full="i18n.php3";
+ // be "foo.php" or "bar/foo.php")
+ \$file_full="devel/i18n.php";
- include("start.php3");
+ include("start.php");
error_reporting(E_ALL);
?>
'it' => 'Italian',
'nl' => 'Dutch',
'nn' => 'Nynorsk',
- 'no' => 'Norwegian',
+ 'nb' => 'Norwegian',
'pl' => 'Polish',
'pt' => 'Portuguese',
'ro' => 'Romanian',
</tbody>
</table>
<?
-include("end.php3");
+include("end.php");
?>
EOF
}