Module: tools
Branch: master
Commit: d532fc9e17e9530c693d8a7352d710b2c1aa7b42
URL: http://source.winehq.org/git/tools.git/?a=commit;h=d532fc9e17e9530c693d8a73…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Mon Jun 22 17:08:39 2009 +0200
transl: Replace "file" by "module" now that results don't reflect individual files.
---
transl/php/lang.php | 8 ++++----
transl/php/resfile.php | 14 +++++++-------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/transl/php/lang.php b/transl/php/lang.php
index a743deb..9d79d91 100644
--- a/transl/php/lang.php
+++ b/transl/php/lang.php
@@ -64,7 +64,7 @@ function dump_table($table)
return;
}
echo "<table border=\"1\">\n";
- echo "<tr><th>File name</th><th>translated</th><th>missing</th><th>errors</th></tr>\n";
+ echo "<tr><th>name</th><th>translated</th><th>missing</th><th>errors</th></tr>\n";
foreach ($table as $key => $value)
{
$extra = "";
@@ -85,16 +85,16 @@ function dump_table($table)
<?php warn_if_lang_hidden($lang) ?>
-<h2>Partially translated files</h2>
+<h2>Partially translated modules</h2>
<?php dump_table($partial) ?>
-<h2>Files not translated</h2>
+<h2>Modules not translated</h2>
<?php dump_table($notransl) ?>
<h2>Locales data</h2>
<?php dump_table($locale) ?>
-<h2>Fully translated files</h2>
+<h2>Fully translated modules</h2>
<?php dump_table($transl) ?>
</html>
diff --git a/transl/php/resfile.php b/transl/php/resfile.php
index 4044d80..af5f118 100644
--- a/transl/php/resfile.php
+++ b/transl/php/resfile.php
@@ -11,12 +11,12 @@ $msgs = array();
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css"/>
- <title>File <?php echo $resfile?> - Wine translations</title>
+ <title>Module <?php echo $resfile?> - Wine translations</title>
</head>
<?php dump_menu_root() ?> > <?php dump_menu_lang($lang) ?> > <?php dump_menu_resfile($lang, $resfile, FALSE) ?>
-<h1>File <?php echo $resfile?></h1>
+<h1>Module <?php echo $resfile?></h1>
<?php
warn_if_lang_hidden($lang);
@@ -30,12 +30,12 @@ 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 "
+ echo "<p>This module is not translated into ".get_lang_name($lang).".</p>\n";
+ echo "<ul><li>If you want to see what resources are in this module, 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";
+ ." of this module</li>\n";
+ echo "<li>If you want to translate this module you should check the $resfile\n";
+ echo "directory 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();
Module: wine
Branch: master
Commit: 72a95ffa22606fb1027385dd7eba647e294ae5ab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=72a95ffa22606fb1027385dd7…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Mon Jun 22 14:50:51 2009 +0200
configure: Improve extraction of the target name from the CROSSCC definition.
---
configure | 15 ++++++++++++++-
configure.ac | 15 ++++++++++++++-
2 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 1142c59..2ebe28a 100755
--- a/configure
+++ b/configure
@@ -8366,8 +8366,21 @@ test -n "$MINGWAR" || MINGWAR="false"
then
CROSSTEST="\$(CROSSTEST)"
- CROSSTARGETFLAGS="-b `expr $CROSSCC : '\(.*\)-gcc'`"
+ set x $CROSSCC
+ shift
+ target=""
+ while test $# -ge 1
+ do
+ case "$1" in
+ *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
+ esac
+ shift
+ done
+ if test -n "$target"
+ then
+ CROSSTARGETFLAGS="-b $target"
+ fi
fi
fi
diff --git a/configure.ac b/configure.ac
index 356f6b7..3ef18dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -699,7 +699,20 @@ then
if test "$CROSSCC" != "false"
then
AC_SUBST(CROSSTEST,"\$(CROSSTEST)")
- AC_SUBST(CROSSTARGETFLAGS,"-b `expr $CROSSCC : '\(.*\)-gcc'`")
+ set x $CROSSCC
+ shift
+ target=""
+ while test $# -ge 1
+ do
+ case "$1" in
+ *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
+ esac
+ shift
+ done
+ if test -n "$target"
+ then
+ AC_SUBST(CROSSTARGETFLAGS,"-b $target")
+ fi
fi
fi