mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Undocumented functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@157261 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2e1f0b5bc0
commit
cc87346a63
6 changed files with 47 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.17 -->
|
||||
<refentry id='function.bind-textdomain-codeset'>
|
||||
<refnamediv>
|
||||
|
@ -17,7 +17,9 @@
|
|||
<methodparam><type>string</type><parameter>codeset</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
With <function>bind_textdomain_codeset</function>, you can set in which
|
||||
encoding will be messages from <parameter>domain</parameter> returned by
|
||||
<function>gettext</function> and similar functions.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.dcgettext">
|
||||
<refnamediv>
|
||||
|
@ -19,6 +19,9 @@
|
|||
single message lookup. It also allows you to specify a
|
||||
<parameter>category</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>gettext</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.16 -->
|
||||
<refentry id='function.dcngettext'>
|
||||
<refnamediv>
|
||||
|
@ -17,7 +17,12 @@
|
|||
<methodparam><type>int</type><parameter>category</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
This function allows you to override the current domain for a
|
||||
single plural message lookup. It also allows you to specify a
|
||||
<parameter>category</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>ngettext</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.dgettext">
|
||||
<refnamediv>
|
||||
|
@ -17,6 +17,9 @@
|
|||
The <function>dgettext</function> function allows you to override
|
||||
the current domain for a single message lookup.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>gettext</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.16 -->
|
||||
<refentry id='function.dngettext'>
|
||||
<refnamediv>
|
||||
|
@ -16,7 +16,11 @@
|
|||
<methodparam><type>int</type><parameter>n</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
The <function>dngettext</function> function allows you to override
|
||||
the current domain for a single plural message lookup.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>ngettext</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.16 -->
|
||||
<refentry id="function.ngettext">
|
||||
<refnamediv>
|
||||
|
@ -15,7 +15,27 @@
|
|||
<methodparam><type>int</type><parameter>n</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
<function>ngettext</function> returns correct plural form of message
|
||||
identified by <parameter>msgid1</parameter> and <parameter>msgid2</parameter>
|
||||
for count <parameter>n</parameter>. Some languages have more than one form
|
||||
for plural messages dependent on the count.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ngettext</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
setlocale(LC_ALL, 'cs_CZ');
|
||||
printf(ngettext("%d window", "%d windows", 1), 1); // 1 okno
|
||||
printf(ngettext("%d window", "%d windows", 2), 2); // 2 okna
|
||||
printf(ngettext("%d window", "%d windows", 5), 5); // 5 oken
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue