cvs: phpweb /include layout.inc
| From: | Hannes Magnusson | Date: | Fri, 10 Apr 2009 08:51:22 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4377@lists.php.net to get a copy of this message | ||
bjori Fri Apr 10 08:51:22 2009 UTC
Modified files:
/phpweb/include layout.inc
Log:
Set correct language values
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.297&r2=1.298&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.297 phpweb/include/layout.inc:1.298
--- phpweb/include/layout.inc:1.297 Thu Apr 2 07:35:44 2009
+++ phpweb/include/layout.inc Fri Apr 10 08:51:22 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.297 2009/04/02 07:35:44 bjori Exp $ */
+/* $Id: layout.inc,v 1.298 2009/04/10 08:51:22 bjori Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -146,7 +146,8 @@
// Right-to-left support
$rtl = "";
if (isset($PGI, $PGI['head'], $PGI['head'][1])) {
- switch (language_convert($PGI['head'][1])) {
+ $lang = language_convert($PGI['head'][1]);
+ switch ($lang) {
case "he":
case "ar":
$rtl = ' style="direction: rtl"';
@@ -169,7 +170,7 @@
print <<<END_HEADER
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="{$lang}" lang="{$lang}">
<head{$profile}>
<title>PHP{$title}</title>
<style type="text/css" media="all">