]> git.lyx.org Git - lyx.git/blobdiff - po/postats.sh
Add two FIXMEs for Michael
[lyx.git] / po / postats.sh
index d803374c02e60438e570bc4be0028be3c3a93965..8ed3b7dfea540515f1d597393c8722f77250f869 100755 (executable)
@@ -5,7 +5,7 @@
 # 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)
 # will "do the right thing".
-lyx_version=1.4.0cvs
+lyx_version=1.5.0svn
 lyx_branch=
 
 
@@ -99,7 +99,7 @@ run_msgfmt () {
        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` && {
@@ -161,12 +161,12 @@ cat <<EOF
        // 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);
 ?>
@@ -181,9 +181,9 @@ EOF
 dump_tail () {
 
 test "$lyx_branch" = "" && {
-       branch_tag=""
+       branch_tag="trunk"
 } || {
-       branch_tag="?only_with_tag=$lyx_branch"
+       branch_tag="branches/$lyx_branch"
 }
 
 cat <<EOF
@@ -198,12 +198,13 @@ cat <<EOF
        'eu' => 'Basque',
        'fi' => 'Finnish',
        'fr' => 'French',
+       'gl' => 'Galician',
        'he' => 'Hebrew',
        'hu' => 'Hungarian',
        'it' => 'Italian',
        'nl' => 'Dutch',
        'nn' => 'Nynorsk',
-       'no' => 'Norwegian',
+       'nb' => 'Norwegian',
        'pl' => 'Polish',
        'pt' => 'Portuguese',
        'ro' => 'Romanian',
@@ -270,7 +271,7 @@ while (list(\$foo,\$info) = each(\$podata)) {
        }
        print "<td \$style>" ;
 
-       print "<a href=\"http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/po/" . \$info['langcode'] . ".po$branch_tag\">" . \$lang[\$info['langcode']] . "</a></td>";
+       print "<a href=\"http://www.lyx.org/trac/browser/lyx-devel/$branch_tag/po/" . \$info['langcode'] . ".po?format=raw\">" . \$lang[\$info['langcode']] . "</a></td>";
 
        print "<td \$style align=\"right\">" . \$info['msg_tr'] . "</td>";
 
@@ -307,7 +308,7 @@ while (list(\$foo,\$info) = each(\$podata)) {
 </tbody>
 </table>
 <?
-include("end.php3");
+include("end.php");
 ?>
 EOF
 }