Module: tools
Branch: master
Commit: e4e36ba14b3ba87b6392e14293a827d0d4c917d6
URL: http://source.winehq.org/git/tools.git/?a=commit;h=e4e36ba14b3ba87b6392e142…
Author: Mikolaj Zalewski <mikolajz(a)tygrys.dom>
Date: Wed Mar 5 21:11:51 2008 +0100
small fixes
---
php/index.php | 2 +-
php/lang.php | 2 +-
scripts/Master.sh | 4 ++--
scripts/checkmakefile.pl | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/php/index.php b/php/index.php
index bad3274..b8f0f7d 100644
--- a/php/index.php
+++ b/php/index.php
@@ -29,7 +29,7 @@ while ($line = fgets($summary, 1024))
<p>This page shows the state of the translations of <a href="http://www.winehq.org/">Wine</a>.
Note that some resources marked as translated may be in fact in English - sometimes developers
add new English resources into every language file. This automatic tool doesn't detect this -
-this needs to be found manually by the translators. If you would like to read about how to
+it needs to be found manually by the translators. If you would like to read about how to
improve Wine translations check <?php echo $WINE_WIKI_TRANSLATIONS ?>.
</p>
diff --git a/php/lang.php b/php/lang.php
index 008ba45..ef92883 100644
--- a/php/lang.php
+++ b/php/lang.php
@@ -39,7 +39,7 @@ ksort($notransl);
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css"/>
- <title>Language <?php echo get_lang_name($lang) ?> - Wine translations</title>
+ <title><?php echo get_lang_name($lang) ?> language - Wine translations</title>
</head>
<?php
diff --git a/scripts/Master.sh b/scripts/Master.sh
index a618b9d..c936830 100755
--- a/scripts/Master.sh
+++ b/scripts/Master.sh
@@ -23,14 +23,14 @@ mv -f $WORKDIR/run.log $WORKDIR/run.log.old
if [ "$PREPARE_TREES" -eq 1 ]; then
# Prepare the trees (they may be the same or different)
- if [ "x$NO_VERBOSE" = "x" ]; then
+ if [ "x$NOVERBOSE" = "x" ]; then
echo -n "Preparing tree(s)..."
fi
make -C "$WRCROOT" depend >/dev/null 2>>"$WORKDIR/run.log" || die "make depend in wrc tree failed"
make -C "$WRCROOT" tools >/dev/null 2>>"$WORKDIR/run.log" || die "make tools in wrc tree failed"
make -C "$SOURCEROOT" depend >/dev/null 2>>"$WORKDIR/run.log" || die "make depend in source tree failed"
make -C "$SOURCEROOT" include/stdole2.tlb >/dev/null 2>>"$WORKDIR/run.log" || die "make depend in source tree failed"
- if [ "x$NO_VERBOSE" = "x" ]; then
+ if [ "x$NOVERBOSE" = "x" ]; then
echo " done"
fi
fi
diff --git a/scripts/checkmakefile.pl b/scripts/checkmakefile.pl
index a2b3ecd..6119eca 100755
--- a/scripts/checkmakefile.pl
+++ b/scripts/checkmakefile.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# Helper script - analyze one Makefile, run wrc --verify-translation
-# on resource files and call ver.sh to parse the results
+# on resource files and call ver.pl to parse the results
use Cwd;
Module: tools
Branch: master
Commit: d6a445d67ad467a075cbfef089f40c6fec188598
URL: http://source.winehq.org/git/tools.git/?a=commit;h=d6a445d67ad467a075cbfef0…
Author: Mikolaj Zalewski <mikolajz(a)tygrys.dom>
Date: Sun Mar 2 22:02:53 2008 +0100
improve introduction text
---
php/index.php | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/php/index.php b/php/index.php
index e9beaba..bad3274 100644
--- a/php/index.php
+++ b/php/index.php
@@ -20,14 +20,17 @@ while ($line = fgets($summary, 1024))
}
?>
<html>
+<head>
+ <link rel="stylesheet" href="style.css" type="text/css"/>
+ <title>Wine translation statistics</title>
+</head>
<h1>Wine translation statistics</h1>
<p>This page shows the state of the translations of <a href="http://www.winehq.org/">Wine</a>.
Note that some resources marked as translated may be in fact in English - sometimes developers
-adds new English resources into every language file. This automatic tool doesn't detect this -
-this needs to be found manually by the translators. If you want to read about how to translate
-Wine or just want to know why adding English stringtable strings into every language file is
-recommended check <?php echo $WINE_WIKI_TRANSLATIONS ?>.
+add new English resources into every language file. This automatic tool doesn't detect this -
+this needs to be found manually by the translators. If you would like to read about how to
+improve Wine translations check <?php echo $WINE_WIKI_TRANSLATIONS ?>.
</p>
<table border="1">
@@ -97,4 +100,4 @@ if ($time = filemtime("$DATAROOT/langs/summary"))
echo "<p><small>Generated on ".gmdate("j M Y, G:i:s T", $time)." (see <a href=\"runlog.php\">run log</a>)</small></p>";
}
?>
-</html>
\ No newline at end of file
+</html>
Module: tools
Branch: master
Commit: aa8bab7c97717a930f84a154af6e206883a24572
URL: http://source.winehq.org/git/tools.git/?a=commit;h=aa8bab7c97717a930f84a154…
Author: Mikolaj Zalewski <mikolajz(a)tygrys.dom>
Date: Sun Mar 2 21:57:54 2008 +0100
store new languages in the run log
---
scripts/Master.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/scripts/Master.sh b/scripts/Master.sh
index adcd046..a618b9d 100755
--- a/scripts/Master.sh
+++ b/scripts/Master.sh
@@ -49,7 +49,11 @@ find $SOURCEROOT/ -name Makefile.in -exec ./checkmakefile.pl \{\} \;
./summary.pl "$WORKDIR"
# Check for a new languages
-ls $WORKDIR/new-langs
+for i in $WORKDIR/new-langs/*; do
+ if [ -f "$i" ]; then
+ echo "note: New language:" `basename "$i"` | tee -a $WORKDIR/run.log
+ fi
+done
# Show any changes in the log
diff -u $WORKDIR/run.log.old $WORKDIR/run.log
Module: tools
Branch: master
Commit: 540debc9c088f3f5dce667e2b47c23cbe5a063cb
URL: http://source.winehq.org/git/tools.git/?a=commit;h=540debc9c088f3f5dce667e2…
Author: Mikolaj Zalewski <mikolajz(a)tygrys.dom>
Date: Sat Mar 1 23:37:53 2008 +0100
add links to the Wiki
---
php/index.php | 9 +++++++++
php/lib.php | 2 ++
php/resfile.php | 12 ++++++++++++
3 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/php/index.php b/php/index.php
index bb98636..e9beaba 100644
--- a/php/index.php
+++ b/php/index.php
@@ -21,6 +21,15 @@ while ($line = fgets($summary, 1024))
?>
<html>
<h1>Wine translation statistics</h1>
+
+<p>This page shows the state of the translations of <a href="http://www.winehq.org/">Wine</a>.
+Note that some resources marked as translated may be in fact in English - sometimes developers
+adds new English resources into every language file. This automatic tool doesn't detect this -
+this needs to be found manually by the translators. If you want to read about how to translate
+Wine or just want to know why adding English stringtable strings into every language file is
+recommended check <?php echo $WINE_WIKI_TRANSLATIONS ?>.
+</p>
+
<table border="1">
<tr><th></th><th>Language</th><th>Translated</th><th>Missing</th><th>Errors</th><th> </th></tr>
<?php
diff --git a/php/lib.php b/php/lib.php
index e4e0e56..336b935 100644
--- a/php/lib.php
+++ b/php/lib.php
@@ -4,6 +4,8 @@ $MASTER_LANGUAGE = "009:01";
$MASTER_LANGUAGE_BINID = 1033;
$MASTER_LANGUAGE_NAME = "English (US)";
+$WINE_WIKI_TRANSLATIONS = "<a href=\"TODO\">[TODO: Wiki translations page]</a>";
+
function validate_lang($id)
{
global $DATAROOT;
diff --git a/php/resfile.php b/php/resfile.php
index 341a556..0ed577d 100644
--- a/php/resfile.php
+++ b/php/resfile.php
@@ -22,6 +22,18 @@ while ($line = fgets($file, 4096))
}
}
+if (count($msgs) == 0) {
+ echo "<p>This file is not translated into ".get_lang_name($lang).".</p>\n";
+ echo "<ul><li>If you want to see what resources are in this file, check the "
+ .gen_resfile_a($MASTER_LANGUAGE, $resfile)."English (US) version</a>"
+ ." of this file</li>\n";
+ echo "<li>If you want to translate this file you should check the $resfile\n";
+ echo "file in the Wine source tree and make it include a new language file for\n";
+ echo get_lang_name($lang)." (see $WINE_WIKI_TRANSLATIONS for a guide to\n";
+ echo "translating)</li>";
+ exit();
+}
+
echo "<table>\n";
sort($msgs);
foreach ($msgs as $value)