From 8515904ebeee07ce945e6a8a909629edfe0bd263 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 23 Jul 2008 20:38:32 +0000 Subject: [PATCH] document new functions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@263338 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/intl/locale/accept-from-http.xml | 120 +++++++++++++++++++++ reference/intl/locale/compose-locale.xml | 6 +- 2 files changed, 123 insertions(+), 3 deletions(-) create mode 100644 reference/intl/locale/accept-from-http.xml diff --git a/reference/intl/locale/accept-from-http.xml b/reference/intl/locale/accept-from-http.xml new file mode 100644 index 0000000000..8038068057 --- /dev/null +++ b/reference/intl/locale/accept-from-http.xml @@ -0,0 +1,120 @@ + + + + + Locale::acceptFromHttp + locale_accept_from_http + Tries to find out best available locale based on HTTP "Accept-Language" header + + + + &reftitle.description; + + Object oriented style + + + static + string + Locale::acceptFromHttp + stringheader + + + Procedural style + + + string + locale_accept_from_http + stringheader + + + Tries to find locale that can satisfy the language list that is requested by the + HTTP "Accept-Language" header. + + + + + &reftitle.parameters; + + + + header + + + The string containing the "Accept-Language" header according to format in RFC 2616. + + + + + + + + + + &reftitle.returnvalues; + + The corresponding locale identifier. + + + + + &reftitle.examples; + + <function>locale_accept_from_http</function> example + + +]]> + + + + OO example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + + + locale_lookup + + + + + + diff --git a/reference/intl/locale/compose-locale.xml b/reference/intl/locale/compose-locale.xml index 024c5afcd8..fed3f7f3bf 100755 --- a/reference/intl/locale/compose-locale.xml +++ b/reference/intl/locale/compose-locale.xml @@ -1,5 +1,5 @@ - + Locale::composeLocale @@ -23,7 +23,7 @@ string - locale_compose_locale + locale_compose arraysubtags @@ -77,7 +77,7 @@ &reftitle.examples; - <function>locale_compose_locale</function> example + <function>locale_compose</function> example