From c5a27065dabe2b4059a001e56568511305414931 Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Fri, 24 Jan 2020 22:35:19 +0100 Subject: [PATCH 1/6] Add Canonicalize option to Locale Constraint --- reference/constraints/Locale.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index dbdf0905df5..887b7b6b9d5 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -17,6 +17,7 @@ Applies to :ref:`property or method ` Options - `groups`_ - `message`_ - `payload`_ + _ `canonicalize`_ Class :class:`Symfony\\Component\\Validator\\Constraints\\Locale` Validator :class:`Symfony\\Component\\Validator\\Constraints\\LocaleValidator` ========== =================================================================== @@ -111,6 +112,12 @@ Parameter Description .. include:: /reference/constraints/_payload-option.rst.inc +``canonicalize`` +~~~~~~~~~~~ +**type**: ``boolean`` **default**: ``true`` + +this method performs Level 1 and Level 2 canonicalization according to ICU standards `ICU format locale IDs`. + .. _`ICU format locale IDs`: http://userguide.icu-project.org/locale .. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes .. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes From 947e05e7f53701ca2dffac1a4b970f3afe70cd7e Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Sat, 25 Jan 2020 13:37:04 +0100 Subject: [PATCH 2/6] Update reference/constraints/Locale.rst Co-Authored-By: Oskar Stark --- reference/constraints/Locale.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index 887b7b6b9d5..846a8ebd96e 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -113,7 +113,7 @@ Parameter Description .. include:: /reference/constraints/_payload-option.rst.inc ``canonicalize`` -~~~~~~~~~~~ +~~~~~~~~~~~~~~~~ **type**: ``boolean`` **default**: ``true`` this method performs Level 1 and Level 2 canonicalization according to ICU standards `ICU format locale IDs`. From 977b5ed43db46a54e8e71dec265a3f02a7a94525 Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Sat, 25 Jan 2020 13:37:12 +0100 Subject: [PATCH 3/6] Update reference/constraints/Locale.rst Co-Authored-By: Oskar Stark --- reference/constraints/Locale.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index 846a8ebd96e..70a79d2deb0 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -114,6 +114,7 @@ Parameter Description ``canonicalize`` ~~~~~~~~~~~~~~~~ + **type**: ``boolean`` **default**: ``true`` this method performs Level 1 and Level 2 canonicalization according to ICU standards `ICU format locale IDs`. From 0c31aaa47104290825e9172b2cedec425d4cb8e9 Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Sat, 25 Jan 2020 13:39:49 +0100 Subject: [PATCH 4/6] Update Locale.rst --- reference/constraints/Locale.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index 70a79d2deb0..9864cf05a35 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -117,7 +117,7 @@ Parameter Description **type**: ``boolean`` **default**: ``true`` -this method performs Level 1 and Level 2 canonicalization according to ICU standards `ICU format locale IDs`. +This method performs level 1 and level 2 canonicalization according to ICU standards `ICU format locale IDs`. .. _`ICU format locale IDs`: http://userguide.icu-project.org/locale .. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes From c70dca67ec40357883e1aefff57cfd4260ebbe60 Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Mon, 3 Feb 2020 13:41:05 +0100 Subject: [PATCH 5/6] Update Locale.rst --- reference/constraints/Locale.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index 9864cf05a35..171aa44e517 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -14,10 +14,11 @@ issues with wrong uppercase/lowercase values and to remove unneeded elements ========== =================================================================== Applies to :ref:`property or method ` -Options - `groups`_ +Options _ `canonicalize`_ + - `groups`_ - `message`_ - `payload`_ - _ `canonicalize`_ + Class :class:`Symfony\\Component\\Validator\\Constraints\\Locale` Validator :class:`Symfony\\Component\\Validator\\Constraints\\LocaleValidator` ========== =================================================================== From e6928e25ad0bf1ef79c48431d5158cf319f5f899 Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Mon, 3 Feb 2020 13:42:47 +0100 Subject: [PATCH 6/6] Update reference/constraints/Locale.rst Co-Authored-By: Oskar Stark --- reference/constraints/Locale.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index 171aa44e517..755c3b1c659 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -118,7 +118,8 @@ Parameter Description **type**: ``boolean`` **default**: ``true`` -This method performs level 1 and level 2 canonicalization according to ICU standards `ICU format locale IDs`. +This method performs level 1 and level 2 canonicalization according to +ICU standards `ICU format locale IDs`. .. _`ICU format locale IDs`: http://userguide.icu-project.org/locale .. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes