cvs: phpdoc /en/reference/intl/locale accept-from-http.xml compose-locale.xml
| From: | Stanislav Malyshev | Date: | Wed, 23 Jul 2008 20:38:32 +0000 |
| Subject: | cvs: phpdoc /en/reference/intl/locale accept-from-http.xml compose-locale.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1909@lists.php.net to get a copy of this message | ||
stas Wed Jul 23 20:38:32 2008 UTC
Added files:
/phpdoc/en/reference/intl/locale accept-from-http.xml
Modified files:
/phpdoc/en/reference/intl/locale compose-locale.xml
Log:
document new functions
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/compose-locale.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/en/reference/intl/locale/compose-locale.xml
diff -u phpdoc/en/reference/intl/locale/compose-locale.xml:1.3
phpdoc/en/reference/intl/locale/compose-locale.xml:1.4
--- phpdoc/en/reference/intl/locale/compose-locale.xml:1.3 Wed Jul 23 20:34:34 2008
+++ phpdoc/en/reference/intl/locale/compose-locale.xml Wed Jul 23 20:38:32 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry xml:id="locale.composelocale" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Locale::composeLocale</refname>
@@ -23,7 +23,7 @@
</para>
<methodsynopsis>
<type>string</type>
- <methodname>locale_compose_locale</methodname>
+ <methodname>locale_compose</methodname>
<methodparam><type>array</type><parameter>subtags</parameter></methodparam>
</methodsynopsis>
<para>
@@ -77,7 +77,7 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
- <title><function>locale_compose_locale</function> example</title>
+ <title><function>locale_compose</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/accept-from-http.xml?view=markup&rev=1.1
Index: phpdoc/en/reference/intl/locale/accept-from-http.xml
+++ phpdoc/en/reference/intl/locale/accept-from-http.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<refentry xml:id="locale.acceptfromhttp" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Locale::acceptFromHttp</refname>
<refname>locale_accept_from_http</refname>
<refpurpose>Tries to find out best available locale based on HTTP
"Accept-Language" header</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
Object oriented style
</para>
<methodsynopsis>
<modifier>static</modifier>
<type>string</type>
<methodname>Locale::acceptFromHttp</methodname>
<methodparam><type>string</type><parameter>header</parameter></methodparam>
</methodsynopsis>
<para>
Procedural style
</para>
<methodsynopsis>
<type>string</type>
<methodname>locale_accept_from_http</methodname>
<methodparam><type>string</type><parameter>header</parameter></methodparam>
</methodsynopsis>
<para>
Tries to find locale that can satisfy the language list that is requested by the
HTTP "Accept-Language" header.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>header</parameter></term>
<listitem>
<para>
The string containing the "Accept-Language" header according to format in RFC 2616.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
The corresponding locale identifier.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>locale_accept_from_http</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$locale = locale_accept_from_http($_SERVER('HTTP_ACCEPT_LANGUAGE'));
echo $locale;
?>
]]>
</programlisting>
</example>
<example>
<title>OO example</title>
<programlisting role="php">
<![CDATA[
<?php
$locale = Locale::acceptFromHttp($_SERVER('HTTP_ACCEPT_LANGUAGE'));
echo $locale;
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
en_US
]]>
</screen>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>locale_lookup</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->