cvs: phd /themes/php phpdotnet.php phpweb.php

From: Date: Sun, 30 Sep 2007 21:32:51 +0000
Subject: cvs: phd /themes/php phpdotnet.php phpweb.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-113@lists.php.net to get a copy of this message
bjori Sun Sep 30 21:32:51 2007 UTC Modified files: /phd/themes/php phpdotnet.php phpweb.php Log: - Fix translation support - Fix minor WS http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.20&r2=1.21&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.20 phd/themes/php/phpdotnet.php:1.21 --- phd/themes/php/phpdotnet.php:1.20 Sun Sep 30 20:00:10 2007 +++ phd/themes/php/phpdotnet.php Sun Sep 30 21:32:51 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.20 2007/09/30 20:00:10 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.21 2007/09/30 21:32:51 bjori Exp $ */ class phpdotnet extends PhDHelper { protected $elementmap = array( @@ -13,13 +13,13 @@ 'appendix' => 'format_container_chunk_title', 'chapter' => 'format_container_chunk_title', 'part' => 'format_container_chunk_title', - 'info' => array( - /* DEFAULT */ false, - 'article' => 'format_container_chunk_title', - 'appendix' => 'format_container_chunk_title', - 'chapter' => 'format_container_chunk_title', - 'part' => 'format_container_chunk_title', - ), + 'info' => array( + /* DEFAULT */ false, + 'article' => 'format_container_chunk_title', + 'appendix' => 'format_container_chunk_title', + 'chapter' => 'format_container_chunk_title', + 'part' => 'format_container_chunk_title', + ), ), 'titleabbrev' => 'format_suppressed_tags', @@ -93,6 +93,7 @@ private $versions = array(); private $acronyms = array(); protected $chunked = true; + protected $lang = "en"; protected $CURRENT_ID = ""; protected $refname; @@ -221,10 +222,13 @@ $this->refname = $value; return false; } - public function format_chunk($open, $name, $attrs) { + public function format_chunk($open, $name, $attrs, $props) { if (isset($attrs[PhDReader::XMLNS_XML]["id"])) { $this->CURRENT_ID = $attrs[PhDReader::XMLNS_XML]["id"]; } + if (isset($props["lang"])) { + $this->lang = $props["lang"]; + } return false; } public function format_container_chunk($open, $name, $attrs) { http://cvs.php.net/viewvc.cgi/phd/themes/php/phpweb.php?r1=1.12&r2=1.13&diff_format=u Index: phd/themes/php/phpweb.php diff -u phd/themes/php/phpweb.php:1.12 phd/themes/php/phpweb.php:1.13 --- phd/themes/php/phpweb.php:1.12 Sun Sep 30 15:23:40 2007 +++ phd/themes/php/phpweb.php Sun Sep 30 21:32:51 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: phpweb.php,v 1.12 2007/09/30 15:23:40 bjori Exp $ */ +/* $Id: phpweb.php,v 1.13 2007/09/30 21:32:51 bjori Exp $ */ class phpweb extends phpdotnet implements PhDTheme { protected $streams = array(); @@ -81,7 +81,7 @@ $setup = array( "home" => array('index'.$ext, "PHP Manual"), - "head" => array("UTF-8", "en"), // FIXME: We should probably check the xml:lang on the current chunk and fallback on the roots element lang + "head" => array("UTF-8", $this->lang), "this" => array($id.$ext, PhDHelper::getDescription($id)), "up" => $up, "prev" => $prev,

« previous php.doc.cvs (#113) next »