cvs: peardoc /en/package/internationalization translation2.xml
| From: | Lorenzo Alberton | Date: | Tue, 13 Feb 2007 10:36:13 +0000 |
| Subject: | cvs: peardoc /en/package/internationalization translation2.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9434@lists.php.net to get a copy of this message | ||
quipo Tue Feb 13 10:36:13 2007 UTC
Modified files:
/peardoc/en/package/internationalization translation2.xml
Log:
document the setOption() method of some decorators
http://cvs.php.net/viewvc.cgi/peardoc/en/package/internationalization/translation2.xml?r1=1.24&r2=1.25&diff_format=u
Index: peardoc/en/package/internationalization/translation2.xml
diff -u peardoc/en/package/internationalization/translation2.xml:1.24
peardoc/en/package/internationalization/translation2.xml:1.25
--- peardoc/en/package/internationalization/translation2.xml:1.24 Tue Feb 13 10:00:44 2007
+++ peardoc/en/package/internationalization/translation2.xml Tue Feb 13 10:36:13 2007
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.24 $ -->
+<!-- $Revision: 1.25 $ -->
<sect1 id="package.internationalization.translation2">
<title>Translation2</title>
<refentry id="package.internationalization.translation2.translation2-summary">
@@ -551,6 +551,8 @@
<para>
This decorator is very useful when you want to provide a fallback language
for empty strings. It is stackable, so you can have more than one default language.
+ Use <function>setOption</function> with the
<parameter>fallbackLang</parameter>
+ parameter to specify the fallback language of the current decorator.
<programlisting role="php">
<![CDATA[
$tr = new Translation2($driver, $dbinfo, $params);
@@ -582,6 +584,8 @@
<refsect1>
<title>Iconv Decorator Example</title>
<para>
+ Use <function>setOption</function> with the
<parameter>encoding</parameter>
+ parameter to specify the target encoding of the current decorator.
<programlisting role="php">
<![CDATA[
$tr = new Translation2($driver, $dbinfo, $params);
@@ -610,7 +614,9 @@
<title>SpecialChars Decorator Example</title>
<para>
This decorator replaces special chars with the matching html entities.
- You can set the charset to use (the default being 'ISO-8859-1'):
+ Use <function>setOption</function> with the
<parameter>charset</parameter>
+ parameter to specify the target charset of the current decorator (the default
+ is 'ISO-8859-1'):
<programlisting role="php">
<![CDATA[
$tr = new Translation2($driver, $dbinfo, $params);