From 62a9d7bc3509effe084efbd339905929e8abce51 Mon Sep 17 00:00:00 2001 From: SuN-80 Date: Thu, 9 Feb 2017 15:50:03 +0100 Subject: [PATCH 1/2] Create french.json --- Resources/rules/french.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Resources/rules/french.json diff --git a/Resources/rules/french.json b/Resources/rules/french.json new file mode 100644 index 00000000..6c9b8721 --- /dev/null +++ b/Resources/rules/french.json @@ -0,0 +1,32 @@ +{ + "À": "A", + "Â": "A", + "Æ": "AE", + "Ç": "C", + "É": "E", + "È": "E", + "Ê": "E", + "Ë": "E", + "Ï": "I", + "Î": "I", + "Ô": "O", + "Œ": "OE", + "Ù": "U", + "Û": "U", + "Ü": "U", + "à": "a", + "â": "a", + "æ": "ae", + "ç": "c", + "é": "e", + "è": "e", + "ê": "e", + "ë": "e", + "ï": "i", + "î": "i", + "ô": "o", + "œ": "oe", + "ù": "u", + "û": "u", + "ü": "u" +} From d35510b5128af8162160a93f763acdf866a3e4d7 Mon Sep 17 00:00:00 2001 From: SuN-80 Date: Fri, 10 Feb 2017 16:26:13 +0100 Subject: [PATCH 2/2] Edited French test --- tests/SlugifyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SlugifyTest.php b/tests/SlugifyTest.php index 1c4d3ff1..83efc6b4 100644 --- a/tests/SlugifyTest.php +++ b/tests/SlugifyTest.php @@ -238,7 +238,7 @@ public function defaultRuleProvider() ['фильм', 'film'], ['драма', 'drama'], ['Ύπαρξη Αυτής η Σκουληκομυρμηγκότρυπα', 'iparxi-autis-i-skoulikomirmigkotripa'], - ['C’est du français !', 'c-est-du-francais'], + ['Français Œuf où à', 'francais-oeuf-ou-a'], ['هذه هي اللغة العربية', 'hthh-hy-llgh-laarby'], ['مرحبا العالم', 'mrhb-laa-lm'], ['Één jaar', 'een-jaar'],