From 29472c600aaab10916b46d59fc5ea64ce8a9fe2a Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Fri, 3 Jan 2025 14:54:27 +0300 Subject: [PATCH] docs: Update docs --- user_guide_src/source/changelogs/v4.5.8.rst | 11 ----------- user_guide_src/source/changelogs/v4.6.0.rst | 7 +++++++ .../source/incoming/content_negotiation.rst | 5 +++++ user_guide_src/source/installation/upgrade_458.rst | 7 ++----- user_guide_src/source/installation/upgrade_460.rst | 3 ++- 5 files changed, 16 insertions(+), 17 deletions(-) diff --git a/user_guide_src/source/changelogs/v4.5.8.rst b/user_guide_src/source/changelogs/v4.5.8.rst index 17f8dd0d2d7d..cad7fec30248 100644 --- a/user_guide_src/source/changelogs/v4.5.8.rst +++ b/user_guide_src/source/changelogs/v4.5.8.rst @@ -18,17 +18,6 @@ BREAKING Message Changes *************** -************ -Enhancements -************ - -Negotiator -========== - -- Added a feature flag ``Feature::$simpleNegotiateLocale`` fix simple locale comparison. - Previously, response with language headers ``Accept-language: en-US,en-GB;q=0.9`` returned the first allowed language ``en`` could instead of the exact language ``en-US`` or ``en-GB``. - Set the value to ``false`` to be able to get ``en-*`` - ******* Changes ******* diff --git a/user_guide_src/source/changelogs/v4.6.0.rst b/user_guide_src/source/changelogs/v4.6.0.rst index 2c75473b5220..d687fc5c55b9 100644 --- a/user_guide_src/source/changelogs/v4.6.0.rst +++ b/user_guide_src/source/changelogs/v4.6.0.rst @@ -239,6 +239,13 @@ Routing - Now you can specify multiple hostnames when restricting routes. +Negotiator +========== + +- Added a feature flag ``Feature::$looseLocaleNegotiation`` fix simple locale comparison. + Previously, response with language headers ``Accept-language: en-US,en-GB;q=0.9`` returned the first allowed language ``en`` could instead of the exact language ``en-US`` or ``en-GB``. + Set the value to ``false`` to be able to get ``en-*`` + Testing ======= diff --git a/user_guide_src/source/incoming/content_negotiation.rst b/user_guide_src/source/incoming/content_negotiation.rst index 702bb40afe64..342108d50fa6 100644 --- a/user_guide_src/source/incoming/content_negotiation.rst +++ b/user_guide_src/source/incoming/content_negotiation.rst @@ -102,6 +102,11 @@ and German you would do something like: In this example, 'en' would be returned as the current language. If no match is found, it will return the first element in the ``$supported`` array, so that should always be the preferred language. +.. versionadded:: 4.6.0 + +Disabling the ``Config\Feature::$looseLocaleNegotiation`` value allows you to strictly search for the requested language from the specified territory (``en-*``). +In the case of a non-strict search, the language may be limited only by the country ``en``. Don't forget to create files for the ``en-*`` locale if you need a translation. + Encoding ======== diff --git a/user_guide_src/source/installation/upgrade_458.rst b/user_guide_src/source/installation/upgrade_458.rst index 69a6fe92da9d..3a0a77f13fb4 100644 --- a/user_guide_src/source/installation/upgrade_458.rst +++ b/user_guide_src/source/installation/upgrade_458.rst @@ -44,10 +44,7 @@ and it is recommended that you merge the updated versions with your application: Config ------ -app/Config/Feature.php -^^^^^^^^^^^^^^^^^^^^^^ - -- ``Config\Feature::$simpleNegotiateLocale`` has been added. +- @TODO All Changes =========== @@ -55,4 +52,4 @@ All Changes This is a list of all files in the **project space** that received changes; many will be simple comments or formatting that have no effect on the runtime: -- app/Config/Feature.php +- @TODO \ No newline at end of file diff --git a/user_guide_src/source/installation/upgrade_460.rst b/user_guide_src/source/installation/upgrade_460.rst index a06729a30f29..9fd9dbad8fcc 100644 --- a/user_guide_src/source/installation/upgrade_460.rst +++ b/user_guide_src/source/installation/upgrade_460.rst @@ -211,13 +211,14 @@ Config - app/Config/Feature.php - ``Config\Feature::$autoRoutesImproved`` has been changed to ``true``. + - ``Config\Feature::$looseLocaleNegotiation`` has been added. - app/Config/Routing.php - ``Config\Routing::$translateUriToCamelCase`` has been changed to ``true``. - All Changes =========== This is a list of all files in the **project space** that received changes; many will be simple comments or formatting that have no effect on the runtime: +- app/Config/Feature.php - @TODO