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