Module: tools Branch: master Commit: d3b35f51f3bf25e4078b1067a5cb5df4688267e2 URL: http://source.winehq.org/git/tools.git/?a=commit;h=d3b35f51f3bf25e4078b1067a...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Jul 21 15:46:19 2009 +0200
transl: Specify utf-8 charset everywhere and fix some quoting issues.
---
transl/php/index.php | 1 + transl/php/lang.php | 1 + transl/php/lib.php | 2 +- transl/php/resfile.php | 1 + transl/php/resource.php | 1 + 5 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/transl/php/index.php b/transl/php/index.php index f49fade..eb08251 100644 --- a/transl/php/index.php +++ b/transl/php/index.php @@ -24,6 +24,7 @@ while ($line = fgets($summary, 1024)) <html> <head> <link rel="stylesheet" href="style.css" type="text/css"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Wine translation statistics <?php echo $TITLE_APPENDIX ?></title> </head> <div class="main"> diff --git a/transl/php/lang.php b/transl/php/lang.php index 45ff62c..2fe240a 100644 --- a/transl/php/lang.php +++ b/transl/php/lang.php @@ -48,6 +48,7 @@ ksort($notransl); <html> <head> <link rel="stylesheet" href="style.css" type="text/css"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><?php echo get_lang_name($lang) ?> language - Wine translations</title> </head>
diff --git a/transl/php/lib.php b/transl/php/lib.php index 84bd179..7fc4ae5 100644 --- a/transl/php/lib.php +++ b/transl/php/lib.php @@ -177,7 +177,7 @@ function get_locale_name($localeid) { global $LOCALE_NAMES; enum_locale_names(); - return $LOCALE_NAMES[$localeid]; + return htmlspecialchars($LOCALE_NAMES[$localeid],ENT_QUOTES,'UTF-8'); }
function get_res_path($resfile) diff --git a/transl/php/resfile.php b/transl/php/resfile.php index a6fa628..71e3c19 100644 --- a/transl/php/resfile.php +++ b/transl/php/resfile.php @@ -11,6 +11,7 @@ $msgs = array(); <html> <head> <link rel="stylesheet" href="style.css" type="text/css"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Module <?php echo $resfile?> - Wine translations</title> </head>
diff --git a/transl/php/resource.php b/transl/php/resource.php index e86fe8c..493e9f1 100644 --- a/transl/php/resource.php +++ b/transl/php/resource.php @@ -13,6 +13,7 @@ $compare = isset($_REQUEST['compare']); <html> <head> <link rel="stylesheet" href="style.css" type="text/css"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><?php echo get_resource_name($type, $id) ?> from <?php echo $resfile?> - Wine translation</title> </head> <body>