Closed brusch closed 2 years ago
Currently the transliteration is not based on the source language of the text, but this makes a big difference in some cases. Following some examples:
'Ä' (U+00C4) transliterates to 'A' but when the source text is in German should transliterate to 'Ae'
There are many more examples: https://github.com/pimcore/pimcore/blob/master/pimcore/lib/Pimcore/Tool/Transliteration/Data/x00.php#L25
Would be cool to have this integrated.
An other sample in French: "l'eau" => "l-eau"
For locale-aware transliteration, I suggest using the Transliterator class available in ext-intl.
Transliterator
Currently the transliteration is not based on the source language of the text, but this makes a big difference in some cases. Following some examples:
'Ä' (U+00C4) transliterates to 'A' but when the source text is in German should transliterate to 'Ae'
There are many more examples: https://github.com/pimcore/pimcore/blob/master/pimcore/lib/Pimcore/Tool/Transliteration/Data/x00.php#L25
Would be cool to have this integrated.