cvs: phpweb /include shared.inc
| From: | Rasmus Lerdorf | Date: | Sun, 05 Nov 2000 23:30:13 +0000 |
| Subject: | cvs: phpweb /include shared.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-2735@lists.php.net to get a copy of this message | ||
rasmus Sun Nov 5 15:30:13 2000 EDT
Modified files:
/phpweb/include shared.inc
Log:
Send appropriate content-type and content-language headers
Index: phpweb/include/shared.inc
diff -u phpweb/include/shared.inc:1.111 phpweb/include/shared.inc:1.112
--- phpweb/include/shared.inc:1.111 Thu Oct 19 16:05:24 2000
+++ phpweb/include/shared.inc Sun Nov 5 15:30:13 2000
@@ -318,10 +318,40 @@
$HAVE_SEARCH=$MIRRORS[$MYSITE][5];
Header("Vary: User-Agent");
- if(substr(dirname($PHP_SELF),-2)=='ja')
- Header("Content-Type: text/html; charset=utf-8");
- else
- Header("Content-Type: text/html; charset=iso-8859-1");
+ switch(substr(dirname($PHP_SELF),-2)) {
+ case 'ja':
+ Header("Content-Type: text/html; charset=utf-8");
+ Header("Content-language: ja");
+ break;
+ case 'hu':
+ Header("Content-Type: text/html; charset=iso-8859-2");
+ Header("Content-language: hu");
+ break;
+ case 'de':
+ Header("Content-Type: text/html; charset=iso-8859-1");
+ Header("Content-language: de");
+ break;
+ case 'nl':
+ Header("Content-Type: text/html; charset=iso-8859-1");
+ Header("Content-language: nl");
+ break;
+ case 'it':
+ Header("Content-Type: text/html; charset=iso-8859-1");
+ Header("Content-language: it");
+ break;
+ case 'fr':
+ Header("Content-Type: text/html; charset=iso-8859-1");
+ Header("Content-language: fr");
+ break;
+ case 'es':
+ Header("Content-Type: text/html; charset=iso-8859-1");
+ Header("Content-language: es");
+ break;
+ default:
+ Header("Content-Type: text/html; charset=iso-8859-1");
+ Header("Content-language: en");
+ break;
+ }
?>
<HTML>