Added a FrenchInflector for the String component

by @Alexandre-T

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/36929/d903d9a75711de2c86a22e7d9f064e770c350d4e/cs.diff | patch -p0
diff -ru src/Symfony/Component/String/Inflector/FrenchInflector.php src/Symfony/Component/String/Inflector/FrenchInflector.php
--- src/Symfony/Component/String/Inflector/FrenchInflector.php	2020-06-27 20:21:07.089495112 +0000
+++ src/Symfony/Component/String/Inflector/FrenchInflector.php	2020-06-27 20:21:07.604484765 +0000
@@ -20,6 +20,7 @@
 {
     /**
      * A list of all rules for pluralise.
+     *
      * @see https://la-conjugaison.nouvelobs.com/regles/grammaire/le-pluriel-des-noms-121.php
      */
     private static $pluralizeRegexp = [

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/36929/d903d9a75711de2c86a22e7d9f064e770c350d4e/typos.diff | patch -p0
diff -ru src/Symfony/Component/String/Inflector/FrenchInflector.php src/Symfony/Component/String/Inflector/FrenchInflector.php
--- src/Symfony/Component/String/Inflector/FrenchInflector.php	2020-06-27 20:21:07.089495112 +0000
+++ src/Symfony/Component/String/Inflector/FrenchInflector.php	2020-06-27 20:21:07.785481128 +0000
@@ -107,7 +107,7 @@
      * A list of words which should not be inflected.
      * This list is only used by singularize.
      */
-    private static $uninflected = '/^(abcès|accès|abus|albatros|anchois|anglais|autobus|bois|brebis|carquois|cas|chas|colis|concours|corps|cours|cyprès|décès|devis|discours|dos|embarras|engrais|entrelacs|excès|fils|fois|gâchis|gars|glas|héros|intrus|jars|jus|kermès|lacis|legs|lilas|marais|mars|matelas|mépris|mets|mois|mors|obus|os|palais|paradis|parcours|pardessus|pays|plusieurs|poids|pois|pouls|printemps|processus|progrès|puits|pus|rabais|radis|recors|recours|refus|relais|remords|remous|rictus|rhinocéros|repas|rubis|sas|secours|sens|souris|succès|talus|tapis|tas|taudis|temps|tiers|univers|velours|verglas|vernis|virus)$/i';
+    private static $uninflected = '/^(abcès|accès|abus|albatros|anchois|anglais|autobus|bois|brebis|carquois|cas|chas|colis|concours|corps|cours|cyprès|décès|devis|discours|dos|embarrass|engrais|entrelacs|excès|fils|fois|gâchis|gars|glas|héros|intrus|jars|jus|kermès|lacis|legs|lilas|marais|mars|matelas|mépris|mets|mois|mors|obus|os|palais|paradis|parcours|pardessus|pays|plusieurs|poids|pois|pouls|printemps|processus|progrès|puits|pus|rabais|radis|recors|recours|refus|relais|remords|remous|rictus|rhinocéros|repas|rubis|sas|secours|sens|souris|succès|talus|tapis|tas|taudis|temps|tiers|univers|velours|verglas|vernis|virus)$/i';
 
     /**
      * {@inheritdoc}

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting