cvs: phpdoc(REF_STRUCT_DEV) /en/reference/intl/locale locale-lookup.xml

From: Date: Fri, 07 Dec 2007 00:04:35 +0000
Subject: cvs: phpdoc(REF_STRUCT_DEV) /en/reference/intl/locale locale-lookup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-544@lists.php.net to get a copy of this message
stas Fri Dec 7 00:04:35 2007 UTC Modified files: (Branch: REF_STRUCT_DEV) /phpdoc/en/reference/intl/locale locale-lookup.xml Log: fix examples and text http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-lookup.xml?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-lookup.xml diff -u phpdoc/en/reference/intl/locale/locale-lookup.xml:1.1.2.2 phpdoc/en/reference/intl/locale/locale-lookup.xml:1.1.2.3 --- phpdoc/en/reference/intl/locale/locale-lookup.xml:1.1.2.2 Thu Dec 6 21:08:03 2007 +++ phpdoc/en/reference/intl/locale/locale-lookup.xml Fri Dec 7 00:04:35 2007 @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.2 $ --> +<!-- $Revision: 1.1.2.3 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.lookup"> <refnamediv> <refname>Locale::lookup</refname> <refname>locale_lookup</refname> - <refpurpose>Searches the items for the best match to the language</refpurpose> + <refpurpose> + Searches the language tag list for the best match to the language + </refpurpose> </refnamediv> <refsect1 role="description"> @@ -36,8 +38,9 @@ <methodparam><type>string</type><parameter>default</parameter></methodparam> </methodsynopsis> <para> - Searches the items in $langtag for the best match to the language range - specified in $locale according to RFC 4647's lookup algorithm. to $locale + Searches the items in <parameter>langtag</parameter> for the best match to + the language range specified in <parameter>locale</parameter> according to + RFC 4647's lookup algorithm. </para> </refsect1> @@ -49,8 +52,8 @@ <term><parameter>langtag</parameter></term> <listitem> <para> - An <type>array</type> containing a list of language tags to compare - (Maximum number allowed is 100) + An <type>array</type> containing a list of language tags to compare to + <parameter>locale</parameter>. Maximum 100 items allowed. </para> </listitem> </varlistentry> @@ -58,7 +61,7 @@ <term><parameter>locale</parameter></term> <listitem> <para> - The locale to use as the language range when matching + The locale to use as the language range when matching. </para> </listitem> </varlistentry> @@ -66,7 +69,7 @@ <term><parameter>default</parameter></term> <listitem> <para> - The locale to use if no match is found + The locale to use if no match is found. </para> </listitem> </varlistentry> @@ -78,7 +81,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - The closest matching language tag, $default, or an empty string + The closest matching language tag or default value. </para> </refsect1> @@ -95,7 +98,7 @@ 'de', 'de-De' ); -echo locale_lookup($arr, 'de-DE-1996-x-prv1-prv2', false, 'en_US'); +echo locale_lookup($arr, 'de-DE-1996-x-prv1-prv2', 'en_US'); ?> ]]> </programlisting> @@ -111,7 +114,7 @@ 'de', 'de-De' ); -echo Locale::lookup($arr, 'de-DE-1996-x-prv1-prv2', false, 'en_US'); +echo Locale::lookup($arr, 'de-DE-1996-x-prv1-prv2', 'en_US'); ?> ]]> </programlisting>

« previous php.doc.cvs (#544) next »