[PHP-GTK-DOC] zh_cn updated
[email protected] (mikespook) Thu, 7 Dec 2006 00:25:30 +0800
| Newsgroups | php.gtk.doc |
|---|---|
| Message-ID | <[email protected]> |
Added Files: php-gtk-doc/manual/zh_cn/tutorials/installation.xml php-gtk-doc/manual/zh_cn/tutorials/hello_world.xml php-gtk-doc/manual/zh_cn/tutorials/translation.xml php-gtk-doc/manual/zh_cn/tutorials/gtk_pango_co.xml Modified Files: php-gtk-doc/manual/zh_cn/language-defs.ent php-gtk-doc/stylesheets/common/zh_cn.xml -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com 邮件:[email protected]
installation.xml
(text/xml, 10.5 KB)
<?xml version="1.0" encoding="utf-8" ?>
<!-- $Revision: 1.10 $ -->
<chapter id="tutorials.installation">
<title> PHP-GTK 2</title>
<sect1 id="tutorials.installation.introduction">
<title></title>
<para>
PHP-GTK 2 PHP 5.1 PHP-GTK 2 Windows PHP-GTK 2 Alpha Gnope
</para>
<para>
WindowsLinux Mac OS X Linux POSIX
</para>
</sect1>
<sect1 id="tutorials.installation.windows">
<title> Windows </title>
<sect2 id="tutorials.installation.windows.gnope">
<title> Gnope</title>
<para>
Gnope Windows PHP-GTK 2 Gnope PHP-GTK 2 PHP 5.1GTK 2.6 PEAR
</para>
<para>
<ulink url="&url.gnope;">gnope.org</ulink> Gnope PEAR PHP-GTK 2 PEAR <ulink url="&url.pear.gtk2;">Gtk2 category</ulink>
</para>
</sect2>
<sect2 id="tutorials.installation.windows.manual">
<title></title>
<para>
PHP-GTK 2 <ulink url="&url.phpgtk.download;"></ulink> PHP-GTK 2 Windows Alpha <literal>php-gtk</literal>
</para>
<para>
<filename>php.exe</filename>CLI <filename>php5ts.dll</filename> PHP 5 Windows <filename>php-gtk</filename> <filename>php.exe</filename>
</para>
<para>
<!-- FIXME: Do we need to do this? I doubt that this is necessary
-cweiske -->
<literal>PATH</literal> <filename>gtk+2.6.9</filename> <literal>gtkpath.bat</literal> <literal>PATH</literal>
</para>
</sect2>
<sect2 id="tutorials.installation.windows.cvs">
<title> CVS </title>
<para>
Windows PHP-GTK 2 CVS <filename>win32/README.win32.txt</filename>
</para>
</sect2>
</sect1>
<sect1 id="tutorials.installation.linux">
<title> Linux </title>
<para>
Linux PHP-GTK 2 Linux PHP-GTK 2 Linux POSIX
</para>
<note> FreeBSD</note>
<para>
Linux PHP-GTK 2 PHP PHP-GTK 2 PHP Linux Gtk+ 2.6
</para>
<sect2 id="tutorials.installation.linux.newphp">
<title> PHP PHP-GTK 2</title>
<para>
CVS PHP <literal>5_1</literal> <literal>5_2</literal>
<programlisting role="bash"><![CDATA[
$ cvs -d :pserver:[email protected]:/repository login
$ cvs -d :pserver:[email protected]:/repository co -r PHP_5_2 php-src]]></programlisting>
<programlisting role="bash"><![CDATA[
$ cd php-src
$ ./buildconf
$ ./configure --prefix=/opt/php5_2 --disable-cgi
$ make
$ su
$ make install
$ echo extension=php_gtk2.so >> /opt/php5_2/lib/php.ini
$ /opt/php5_2/bin/php-config --extension-dir | xargs echo 'extension_dir=' >> /opt/php5_2/lib/php.ini]]></programlisting>
</para>
<note>
<para>
CVS PHP <ulink url="&url.php.download;">php </ulink> <ulink url="&url.php.snapshots;">snapshot</ulink>
</para>
</note>
<para>
PHP-GTK 2
<programlisting role="bash"><![CDATA[
$ cd ..
$ cvs -d :pserver:[email protected]:/repository co php-gtk
$ cd php-gtk
$ ./buildconf --with-phpize=/opt/php5_2/bin/phpize
$ ./configure --with-php-config=/opt/php5_2/bin/php-config
$ make
$ make install]]></programlisting>
</para>
<para>
PHP
<programlisting role="bash"><![CDATA[
$ ln -s /opt/php5_2/bin/php /usr/bin/php-gtk]]></programlisting>
</para>
</sect2>
<sect2 id="tutorials.installation.linux.existingphp">
<title> PHP </title>
<para>
PHP-GTK 2 PHP PHP CLI 5.1 PHP-GTK 2 PHP <command>php -v</command> PHP <literal>cli</literal>
</para>
<para>
CVS PHP-GTK 2 Alpha PHP-GTK 2 <ulink url="&url.phpgtk.download;"></ulink> <literal>cd</literal>
<programlisting role="bash"><![CDATA[
$ ./buildconf
$ ./configure
$ make
$ make install]]></programlisting>
</para>
<para>
PHP PHP <literal>phpize</literal> <literal>php-config</literal>
<programlisting role="bash"><![CDATA[
$ ./buildconf --with-phpize=/path/to/phpize
$ ./configure --with-php-config=/path/to/php-config]]></programlisting>
</para>
</sect2>
<sect2 id="tutorials.installation.linux.testing">
<title></title>
<para>
PHP-GTK 2 php.ini <literal>extension=</literal>
<programlisting role="ini"><![CDATA[
extension=php_gtk2.so]]></programlisting>
</para>
<para>
<programlisting role="bash"><![CDATA[
$ php -m | grep php-gtk]]></programlisting>
<literal>php-gtk</literal>
</para>
<para>
php-gtk <filename>demos</filename> <filename>demos/phpgtk2-demo.php</filename>
</para>
</sect2>
</sect1>
<sect1 id="tutorials.installation.macosx">
<title> Mac OS X </title>
<para>
PHP-GTK 2 Apple Apple Developer ToolsBSD BSD Subsystem XBSD Mac OS X X X Apple
</para>
<para>
<ulink url="&url.macports;">MacPorts</ulink> DarwinPorts <ulink url="&url.fink;">Fink</ulink> X Apple Gtk+ 5.2 PHPMacPorts <literal>php -v</literal> PHP
<programlisting role="bash"><![CDATA[
$ cvs -d :pserver:[email protected]:/repository co -r PHP_5_2 php-src
$ cd php-src
$ ./buildconf
$ ./configure --disable-cgi
$ make
$ sudo make install]]></programlisting>
<literal>/usr/local</literal> MacPorts PHP <literal>/opt/local</literal>
</para>
<para>
PHP-GTK
<programlisting role="bash"><![CDATA[
$ cd..
$ cvs -d :pserver:[email protected]:/repository co php-gtk
$ cd php-gtk
$ ./buildconf --with-phpize=/usr/local/bin/phpize
$ ./configure --with-php-config=/usr/local/bin/php-config \
--disable-libglade
$ make
$ sudo make install]]></programlisting>
<literal>/usr/local</literal> PHP MacPorts PHP 5.2 <literal>/opt/local</literal>
</para>
<para>
<literal>php.ini-recommended</literal> <literal>/usr/local/lib/php.ini</literal> <literal>extension_dir</literal> <literal>php_gtk2.so</literal> <literal>/usr/local/lib/php/extensions/no-debug-non-zts-some-date</literal> <literal>/usr/bin</literal> <literal>/usr/local/bin/php</literal> PHP <literal>/opt/local</literal> <literal>/usr/local</literal>
</para>
<para>
<link linkend="tutorials.installation.linux.testing"></link>.
</para>
</sect1>
</chapter>
hello_world.xml
(text/xml, 5.6 KB)
<?xml version="1.0" encoding="utf-8" ?>
<!-- $Revision: 1.7 $ -->
<chapter id="tutorials.helloworld">
<title>Hello World</title>
<simpara>
hello worldhello world
</simpara>
<simpara>
PHP PHP-GTK
</simpara>
<simpara>
Hello World!
</simpara>
<simpara>
PHP-GTK
</simpara>
<example>
<title> Hello World </title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloworld/helloworld.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
<para>
<filename>hello.phpw</filename> <command>php hello.phpw</command>Hello worldJust wanted to say 'Hello world!'
</para>
<example>
<title> PHP-GTK </title>
<programlisting role="php"><![CDATA[if (!class_exists('gtk')) {
die("Please load the php-gtk2 module in your php.ini\r\n");
}]]></programlisting>
</example>
<para>
<literal>gtk</literal> PHP-GTK PHP 4 PHP-GTK 1 <ulink url="http://www.php.net/dl">dl()</ulink> PHP-GTK PHP 5
</para>
<example>
<title></title>
<programlisting role="php"><![CDATA[$wnd = new GtkWindow();]]></programlisting>
</example>
<para>
<link linkend="gtk.gtkwindow"></link> <literal>$wnd</literal> PHP 4 PHP-GTK 1 <literal>&</literal> <literal>new</literal> PHP 4 PHP 5
</para>
<example>
<title></title>
<programlisting role="php"><![CDATA[$wnd->set_title('Hello world');]]></programlisting>
</example>
<simpara>
</simpara>
<example>
<title></title>
<programlisting role="php"><![CDATA[$wnd->connect_simple('destroy', array('gtk', 'main_quit'));]]></programlisting>
</example>
<para>
<signalname class="GtkObject">destroy</signalname> <link linkend="gtk.method.main_quit">Gtk::main_quit</link> GTK
</para>
<example>
<title></title>
<programlisting role="php"><![CDATA[$lblHello = new GtkLabel("Just wanted to say\r\n'Hello world!'");]]></programlisting>
</example>
<para>
<classname>GtkLabel</classname>
</para>
<example>
<title></title>
<programlisting role="php"><![CDATA[$wnd->add($lblHello);]]></programlisting>
</example>
<simpara>
</simpara>
<example>
<title></title>
<programlisting role="php"><![CDATA[$wnd->show_all();]]></programlisting>
</example>
<para>
<function class="GtkWidget">show</function> <function class="GtkWidget">show</function><function class="GtkWidget">show_all</function>
</para>
<example>
<title></title>
<programlisting role="php"><![CDATA[Gtk::main();]]></programlisting>
</example>
<para>
PHP GTK
</para>
<sect1 id="tutorials.helloworld.futherreading">
<title></title>
<para>
PHP-GTK 2 <link linkend="tutorials.packing"></link>
</para>
</sect1>
</chapter>
translation.xml
(text/xml, 262 B)
<?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.3 $ --> <chapter id="tutorials.translation"> <title>i18n: gettext</title> <sect1> <title></title> <simpara> <!-- TODO --> </simpara> </sect1> </chapter>
gtk_pango_co.xml
(text/xml, 2.1 KB)
<?xml version="1.0" encoding="utf-8" ?>
<!-- $Revision: 1.4 $ -->
<chapter id="tutorials.gtkpangoco">
<title>GTK, Pango & Friends</title>
<sect1>
<simpara>
PHP-GTK
</simpara>
<sect2>
<title>PHP</title>
<simpara>
PHP - PHP: Hypertext Processor - Web HTML
</simpara>
</sect2>
<sect2>
<title>GTK</title>
<simpara>
GTK - the GIMP Tool Kit - UNIX Windows framebuffer
</simpara>
<simpara>
GTK GUI <classname>GtkButton</classname> <classname>GtkTextView</classname>
</simpara>
<simpara>
GTK GDKPangoATK GLib GTK+
</simpara>
</sect2>
<sect2>
<title>GDK</title>
<simpara>
GDK - the GIMP Drawing Kit - GTK+ GDK X11Windows Linux framebuffer
</simpara>
</sect2>
<sect2>
<title>Pango</title>
<simpara>
Pango <classname>PangoLayout</classname> Pango
<classname>GtkTextView</classname><classname>GtkLabel</classname><classname>GtkEntry</classname> GTK+
</simpara>
</sect2>
<sect2>
<title>ATK</title>
<simpara>
ATK Accessibility Tool Kit ATK
</simpara>
<simpara>
ATK GTK+
</simpara>
</sect2>
</sect1>
</chapter>
language-defs.ent.txt
(text/plain, 5.6 KB)
<!-- encoding="utf-8" --> <!-- $Revision: 1.1 $ --> <!ENTITY PHPGTK2Docs "PHP-GTK 2 "> <!ENTITY PHPGTK2Tutorials "PHP-GTK 2 "> <!ENTITY PHPGTK2Preface ""> <!ENTITY PHPGTK2ManualReference "PHP-GTK 2 "> <!ENTITY Appendix ""> <!ENTITY Credits "PHP-GTK 2 "> <!ENTITY DocCredits "PHP-GTK 2 "> <!ENTITY Classtree ""> <!ENTITY AtkClasses "ATK "> <!ENTITY AtkClassesDesc "<para> ATK </para>"> <!ENTITY GdkClasses "GDK "> <!ENTITY GdkClassesDesc "<para> GDK </para>"> <!ENTITY GtkClasses "GTK "> <!ENTITY GtkClassesDesc "<para> GTK </para>"> <!ENTITY PangoClasses "Pango "> <!ENTITY PangoClassesDesc "<para> Pango </para>"> <!ENTITY GladeClasses "Glade "> <!ENTITY GladeClassesDesc "<para> Glade </para>"> <!ENTITY MozEmbedClasses "MozEmbed "> <!ENTITY MozEmbedClassesDesc "<para> MozEmbed </para>"> <!ENTITY SourceviewClasses "Sourceview "> <!ENTITY SourceviewClassesDesc "<para> Sourceview </para>"> <!ENTITY AtkEnums "ATK "> <!ENTITY AtkEnumsDesc ""> <!ENTITY GtkEnums "GTK "> <!ENTITY GtkEnumsDesc ""> <!ENTITY GdkEnums "GDK "> <!ENTITY GdkEnumsDesc ""> <!ENTITY PangoEnums "Pango "> <!ENTITY PangoEnumsDesc ""> <!ENTITY ClassIndex ""> <!ENTITY MethodIndex ""> <!ENTITY PropertyIndex ""> <!ENTITY SignalIndex ""> <!ENTITY EnumIndex ""> <!-- Specialized Widget --> <!ENTITY specialized.widget " GTK+ "> <!-- Deprecated items --> <!ENTITY deprecated ""> <!ENTITY deprecated.method " PHP-GTK 2 "> <!ENTITY deprecated.class " PHP-GTK 2 "> <!-- <!ENTITY deprecated.class "This class is deprecated and should not be used in newly written code. Please see <link linkend='tutorials.changes.deprecated'> deprecated widgets page</link> for the class that should be used in its place."> --> <!ENTITY deprecated.property " PHP-GTK 2 "> <!ENTITY widget.toospecialized " GTK+ GTK+ "> <!ENTITY seealso ""> <!ENTITY static ""> <!-- <!ENTITY PHPGTK2ManualUserguide "PHP-GTK 2 Userguide"> <!ENTITY Introduction "Introduction to PHP-GTK"> <!ENTITY introblurb "This section of the manual introduces the ideas and technologies behind PHP-GTK."> <!ENTITY GettingStarted "Getting Started"> <!ENTITY startblurb "This part of the manual explains the installation process."> <!ENTITY BuildingBlocks "Basic Elements"> <!ENTITY blocksblurb "This part of the manual introduces the core elements in PHP-GTK and illustrates their basic usage."> <!ENTITY GtkExtraClasses "GtkExtra Classes"> <!ENTITY GtkExtraClassesDesc "<para>GtkExtra is a set of widgets intended to fill the gaps in the original GTK+ classes. It can be found at <ulink url='http://gtkextra.sourceforge.net'>gtkextra.sourceforge.net</ulink></para>"> <!ENTITY GtkExtraEnums "GtkExtra Enums"> <!ENTITY GtkExtraEnumsDesc "Enumerated values for the GtkExtra classes"> <!ENTITY LibGladeClasses "Glade Classes"> <!ENTITY LibGladeClassesDesc "<para>The Glade Class</para>"> <!ENTITY ScintillaClasses "Scintilla Classes"> <!ENTITY ScintillaClassesDesc "<para>The Scintilla Class</para>"> --> <!ENTITY KeysymTitle " PHP-GTK 2 "> <!-- dummy entry - other languages need to fill this in. Template for them: <!ENTITY frontpage.translators '<authorgroup id="translators"> <author> <firstname>Fred</firstname><surname>Bloggs</surname> </author> </authorgroup>'> --> <!ENTITY frontpage.translators '<authorgroup id="translators"> <author> <firstname></firstname><surname></surname> </author> </authorgroup>'>
zh_cn.xml
(text/xml, 4.1 KB)
<?xml version="1.0" encoding="utf-8"?>
<localization language="zh_cn">
<gentext key="by" text=""/>
<gentext key="callback" text=""/>
<gentext key="constructor" text=""/>
<gentext key="constructors" text=""/>
<gentext key="copyright" text=""/>
<gentext key="description" text=""/>
<gentext key="directsubclasses" text=""/>
<gentext key="editedby" text=""/>
<gentext key="fields" text=""/>
<gentext key="glossary" text=""/>
<gentext key="implementedby" text=""/>
<gentext key="implementedinterfaces" text=""/>
<gentext key="interfacewarning" text=""/>
<gentext key="listofexamples" text=""/>
<gentext key="listoffigures" text=""/>
<gentext key="listoftables" text=""/>
<gentext key="methods" text=""/>
<gentext key="nav-prev" text=""/>
<gentext key="nav-next" text=""/>
<gentext key="nav-up" text=""/>
<gentext key="nav-home" text=""/>
<gentext key="nosubclasses" text=""/>
<gentext key="note" text=""/>
<gentext key="objecthierarchy" text=""/>
<gentext key="PHPGTKauths" text="PHP-GTK "/>
<gentext key="PHPGTKcons" text=""/>
<gentext key="PHPGTKconsp" text="PHP-GTK 1 "/>
<gentext key="PHPGTKeditors" text=" PHP-GTK "/>
<gentext key="PHPGTKeditorsp" text="PHP-GTK 1 "/>
<gentext key="PHPGTKmanauths" text=" PHP-GTK "/>
<gentext key="PHPGTKmanauthsp" text="PHP-GTK 1 "/>
<gentext key="properties" text=""/>
<gentext key="propertiesDisclaimer" text=" get_property set_property "/>
<gentext key="seealso" text=""/>
<gentext key="signals" text=""/>
<gentext key="styleproperties" text=""/>
<gentext key="stylepropertiesDisclaimer" text=""/>
<gentext key="symbolicname" text=""/>
<gentext key="tableofcontents" text=""/>
<gentext key="translatedby" text=""/>
<gentext key="tip" text=""/>
<gentext key="value" text=""/>
<context name="glossary">
<template name="seealso" text=""/>
</context>
<context name="title">
<template name="appendix" text="%t"/>
<template name="book" text="%t"/>
<template name="chapter" text="%t"/>
<template name="classset" text="%t"/>
<template name="classentry" text="%t"/>
<template name="classtree" text="%t"/>
<template name="constructor" text="%t"/>
<template name="constructors" text="%t"/>
<template name="enum" text="%t"/>
<template name="enums" text="%t"/>
<template name="enumset" text="%t"/>
<template name="example" text="%t"/>
<template name="field" text="%t"/>
<template name="fields" text=""/>
<template name="figure" text="%t"/>
<template name="glossary" text="%t"/>
<template name="legalnotice" text="%t"/>
<template name="index" text="%t"/>
<template name="method" text="%t"/>
<template name="methods" text=""/>
<template name="part" text="%t"/>
<template name="partintro" text="%t"/>
<template name="prop" text="%t"/>
<template name="property" text="%t"/>
<template name="properties" text=""/>
<template name="styleproperties" text=""/>
<template name="reference" text="%t"/>
<template name="refentry" text="%t"/>
<template name="set" text="%t"/>
<template name="setinfo" text=""/>
<template name="setindex" text="%t"/>
<template name="signal" text="%t"/>
<template name="signals" text=""/>
<template name="table" text="%t"/>
</context>
<context name="section-title">
<template name="sect1" text="%t"/>
<template name="sect2" text="%t"/>
<template name="section" text="%t"/>
</context>
</localization>