Paul Vriens : transl: Replace $MASTER_LANGUAGE_NAME by the real locale name .
Alexandre Julliard
julliard at winehq.org
Thu Jul 23 09:42:36 CDT 2009
Module: tools
Branch: master
Commit: f9071cf793f70c8f340a214dd209ba672d917b4a
URL: http://source.winehq.org/git/tools.git/?a=commit;h=f9071cf793f70c8f340a214dd209ba672d917b4a
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Thu Jul 23 09:10:38 2009 +0200
transl: Replace $MASTER_LANGUAGE_NAME by the real locale name.
---
transl/php/lib.php | 1 -
transl/php/resfile.php | 4 ++--
transl/php/resource.php | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/transl/php/lib.php b/transl/php/lib.php
index bfaed8d..b293ec2 100644
--- a/transl/php/lib.php
+++ b/transl/php/lib.php
@@ -1,7 +1,6 @@
<?php
$MASTER_LANGUAGE = "009:01";
-$MASTER_LANGUAGE_NAME = "English (US)";
$WINE_WIKI_TRANSLATIONS = "<a href=\"redirect.php?url=http://wiki.winehq.org/Translating\">http://wiki.winehq.org/Translating</a>";
diff --git a/transl/php/resfile.php b/transl/php/resfile.php
index 8245e26..6145752 100644
--- a/transl/php/resfile.php
+++ b/transl/php/resfile.php
@@ -40,7 +40,7 @@ if (count($msgs) == 0)
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>"
+ .gen_resfile_a($MASTER_LANGUAGE, $resfile).get_locale_name($MASTER_LANGUAGE)." version</a>"
." 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";
@@ -91,7 +91,7 @@ foreach ($msgs as $value)
$value = preg_replace("/@RES\(([^:\)]+):([^:\)]+)\)/", get_resource_name($m[1], $m[2]), $value);
if (is_dumpable_type($m[1]) && (strpos($value, "Missing: ") === 0))
$value .= " (see ".gen_resource_a($MASTER_LANGUAGE, $resfile, $m[1], $m[2])
- .$MASTER_LANGUAGE_NAME." resource</a>)";
+ .get_locale_name($MASTER_LANGUAGE)." resource</a>)";
}
}
diff --git a/transl/php/resource.php b/transl/php/resource.php
index 68a9e55..4f51879 100644
--- a/transl/php/resource.php
+++ b/transl/php/resource.php
@@ -72,7 +72,7 @@ if (!$compare)
{
echo "<tr class=\"subheader\"><td colspan=\"3\" style=\"text-align: right\">";
echo "<small>".gen_resource_a($lang, $resfile, $type, $id, TRUE);
- echo "Compare with ".$MASTER_LANGUAGE_NAME." >></a></small>";
+ echo "Compare with ".get_locale_name($MASTER_LANGUAGE)." >></a></small>";
echo "</td></tr>";
}
}
@@ -80,7 +80,7 @@ else
{
echo "<tr class=\"subheader\"><td colspan=\"5\" style=\"text-align: right\">";
echo "<small>".gen_resource_a($lang, $resfile, $type, $id, FALSE);
- echo "<< Hide compare with ".$MASTER_LANGUAGE_NAME."</a></small>";
+ echo "<< Hide compare with ".get_locale_name($MASTER_LANGUAGE)."</a></small>";
echo "</td></tr>";
echo "<tr class=\"subheader\"><td>id</td><td> </td><td>".get_lang_name($lang)."</td><td> </td><td>".get_lang_name($MASTER_LANGUAGE)."</td></tr>";
More information about the wine-cvs
mailing list