svn: /phd/branches/PHD_0_4/ formats/manpage.php include/langs/en.xml include/langs/tr.xml
| From: | Nilgün Belma Bugüner | Date: | Wed, 02 Sep 2009 01:45:14 +0000 |
| Subject: | svn: /phd/branches/PHD_0_4/ formats/manpage.php include/langs/en.xml include/langs/tr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4816@lists.php.net to get a copy of this message | ||
nilgun Wed, 02 Sep 2009 01:45:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287957
Log:
i18ned manpages
Changed paths:
U phd/branches/PHD_0_4/formats/manpage.php
U phd/branches/PHD_0_4/include/langs/en.xml
U phd/branches/PHD_0_4/include/langs/tr.xml
Modified: phd/branches/PHD_0_4/formats/manpage.php
===================================================================
--- phd/branches/PHD_0_4/formats/manpage.php 2009-09-02 00:14:46 UTC (rev 287956)
+++ phd/branches/PHD_0_4/formats/manpage.php 2009-09-02 01:45:14 UTC (rev 287957)
@@ -49,7 +49,7 @@
'literal' => '\\fI',
'literallayout' => 'format_verbatim',
'manvolnum' => 'format_manvolnum',
- 'mediaobject' => '\\fB[NOT DISPLAYABLE MEDIA]',
+ 'mediaobject' => 'format_mediaobject',
'member' => 'format_member',
'methodname' => '\\fB',
'methodparam' => 'format_methodparam',
@@ -75,7 +75,7 @@
'property' => 'format_suppressed_tags',
'refentry' => 'format_suppressed_tags',
'refentrytitle' => '\\fB',
- 'refname' => '.SH NAME',
+ 'refname' => 'format_refname',
'refnamediv' => 'format_suppressed_tags',
'refpurpose' => 'format_refpurpose',
'refsect1' => 'format_refsect',
@@ -200,7 +200,7 @@
*/
public $role = false;
-
+
public function __construct(array $IDs) {
parent::__construct($IDs);
}
@@ -262,6 +262,13 @@
return "";
}
+ public function format_refname($open, $name, $attrs, $props) {
+ if ($open) {
+ return "\n.SH " . $this->autogen($name, $props["lang"]) .
"\n";
+ }
+ return "";
+ }
+
public function format_refpurpose($open, $name, $attrs, $props) {
if ($open) {
return " \- ";
@@ -394,7 +401,7 @@
public function format_refsynopsisdiv($open, $name, $attrs, $props) {
if ($open &&
isset($this->cchunk["methodsynopsis"]["firstsynopsis"])
&& $this->cchunk["methodsynopsis"]["firstsynopsis"]) {
- return "\n.SH SYNOPSIS\n";
+ return "\n.SH " . $this->autogen("refsynopsis",
$props["lang"]) . "\n";
}
if (!$open &&
isset($this->cchunk["methodsynopsis"]["firstsynopsis"]))
$this->cchunk["methodsynopsis"]["firstsynopsis"] = false;
@@ -405,18 +412,18 @@
if ($open &&
isset($this->cchunk["methodsynopsis"]["firstsynopsis"])
&& $this->cchunk["methodsynopsis"]["firstsynopsis"]
&& $this->cchunk["appendlater"]) {
$this->cchunk["appendlater"] = false;
- return "\n.SH SYNOPSIS\n";
+ return "\n.SH " . $this->autogen("refsynopsis",
$props["lang"]) . "\n";
}
if ($open)
return "\n.br";
$params = array();
// write the formatted synopsis
foreach ($this->cchunk['methodsynopsis']['params'] as $parameter) {
- array_push($params, ($parameter['optional'] ? "[" : "")
- . $parameter['type']
- . ($parameter['reference'] ? " \\fI&\\fP" : "
")
- . ($parameter['name'] ? "\\fI$" .
$parameter['name'] . "\\fP" : "")
- . ($parameter['initializer'] ? " = " .
$parameter['initializer'] : "")
+ array_push($params, ($parameter['optional'] ? "[" : "")
+ . $parameter['type']
+ . ($parameter['reference'] ? " \\fI&\\fP" : "
")
+ . ($parameter['name'] ? "\\fI$" .
$parameter['name'] . "\\fP" : "")
+ . ($parameter['initializer'] ? " = " .
$parameter['initializer'] : "")
. ($parameter['optional'] ? "]" : "") );
}
$ret = "\n(" . join($params, ", ") . ")";
@@ -575,4 +582,11 @@
public function toValidName($functionName) {
return str_replace(array("::", "->", "()"),
array(".", ".", ""), $functionName);
}
+
+ public function format_mediaobject($open, $name, $attrs, $props) {
+ if ($open) {
+ return "\n\\fB" . $this->autogen($name, $props["lang"]) .
"\\fP";
+ }
+ return "";
+ }
}
Modified: phd/branches/PHD_0_4/include/langs/en.xml
===================================================================
--- phd/branches/PHD_0_4/include/langs/en.xml 2009-09-02 00:14:46 UTC (rev 287956)
+++ phd/branches/PHD_0_4/include/langs/en.xml 2009-09-02 01:45:14 UTC (rev 287957)
@@ -63,6 +63,24 @@
<simpara>No version information available, might only be in SVN</simpara>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>refname</term>
+ <listitem>
+ <simpara>NAME</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>refsynopsis</term>
+ <listitem>
+ <simpara>SYNOPSIS</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>mediaobject</term>
+ <listitem>
+ <simpara>[NOT DISPLAYABLE MEDIA]</simpara>
+ </listitem>
+ </varlistentry>
</variablelist>
</section>
Modified: phd/branches/PHD_0_4/include/langs/tr.xml
===================================================================
--- phd/branches/PHD_0_4/include/langs/tr.xml 2009-09-02 00:14:46 UTC (rev 287956)
+++ phd/branches/PHD_0_4/include/langs/tr.xml 2009-09-02 01:45:14 UTC (rev 287957)
@@ -65,6 +65,24 @@
<simpara>Bir sürüm bilgisi bulunamadı; sadece SVN'de olabilir.</simpara>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>refname</term>
+ <listitem>
+ <simpara>İSİM</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>refsynopsis</term>
+ <listitem>
+ <simpara>SÖZDİZİMİ</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>mediaobject</term>
+ <listitem>
+ <simpara>[ORTAM GÖSTERİME UYGUN DEĞİL]</simpara>
+ </listitem>
+ </varlistentry>
</variablelist>
</section>