cvs: peardoc /en/package/internationalization/translation2 intro.xml
| From: | Lorenzo Alberton | Date: | Mon, 03 May 2004 23:27:44 +0000 |
| Subject: | cvs: peardoc /en/package/internationalization/translation2 intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3880@lists.php.net to get a copy of this message | ||
quipo Mon May 3 19:27:44 2004 EDT
Modified files:
/peardoc/en/package/internationalization/translation2 intro.xml
Log:
better docbook formatting
http://cvs.php.net/diff.php/peardoc/en/package/internationalization/translation2/intro.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/internationalization/translation2/intro.xml
diff -u peardoc/en/package/internationalization/translation2/intro.xml:1.1
peardoc/en/package/internationalization/translation2/intro.xml:1.2
--- peardoc/en/package/internationalization/translation2/intro.xml:1.1 Wed Apr 28 16:11:28 2004
+++ peardoc/en/package/internationalization/translation2/intro.xml Mon May 3 19:27:44 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.internationalization.translation2.intro">
<refnamediv>
<refname>Introduction</refname>
@@ -16,21 +16,25 @@
</para>
<para>
The following containers (data source drivers) are provided:
- - PEAR::DB
- - PEAR::MDB
- - PEAR::MDB2
- - gettext
- - PEAR::DB_DataObject (experimental)
+ <itemizedlist>
+
<listitem><para><classname>PEAR::DB</classname></para></listitem>
+
<listitem><para><classname>PEAR::MDB</classname></para></listitem>
+
<listitem><para><classname>PEAR::MDB2</classname></para></listitem>
+ <listitem><para>gettext</para></listitem>
+ <listitem><para><classname>PEAR::DB_DataObject</classname>
(experimental)</para></listitem>
+ </itemizedlist>
</para>
<para>
Some decorator classes will help in various tasks. They can be layered/stacked
one on top of the other, in any number. This approach should suit everyone's needs.
Currently, the following decorators are provided:
- - CacheLiteFunction (for fast file-based caching)
- - CacheMemory (for memory-based caching)
- - DefaultText (to replace empty strings with their keys or a default text)
- - Lang (resort to fallback languages for empty strings)
- - SpecialChars (replace html entities with their hex codes)
+ <itemizedlist>
+ <listitem><para>CacheLiteFunction (for fast file-based
caching)</para></listitem>
+ <listitem><para>CacheMemory (for memory-based
caching)</para></listitem>
+ <listitem><para>DefaultText (to replace empty strings with their keys or a default
text)</para></listitem>
+ <listitem><para>Lang (resort to fallback languages for empty
strings)</para></listitem>
+ <listitem><para>SpecialChars (replace html entities with their hex
codes)</para></listitem>
+ </itemizedlist>
</para>
</refsect1>
@@ -67,7 +71,7 @@
),
'string_id_col' => 'ID',
'string_page_id_col' => 'pageID',
- 'string_text_col' => '%s'
+ 'string_text_col' => '%s' //'%s' will be replaced by the
lang code
);
$driver = 'MDB';
@@ -140,7 +144,7 @@
<para>
<classname>Translation2</classname> uses decorators to filter/change
the retrieved strings. You can have a chain of decorators (filters),
- and you can even add yours.
+ and you can also add yours.
<programlisting role="php">
<![CDATA[
@@ -184,7 +188,7 @@
<title>Translate a string to another language</title>
<para>
The <function>translate</function> function allows translating an entire
- string to another language, without knowing what's the associated stringID
+ string to another language, without having to know the associated stringID
<programlisting role="php">
<![CDATA[