[wp-trac] [WordPress Trac] #53684: Faulty substitution of German umlauts in slugs and keywords
WordPress Trac
noreply at wordpress.org
Sun Jul 18 04:41:00 UTC 2021
#53684: Faulty substitution of German umlauts in slugs and keywords
-------------------------------+------------------------------
Reporter: spielautomat4 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 5.7.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by audrasjb):
* keywords: => reporter-feedback
Comment:
Hello and thank you for opening this ticket @spielautomat4,
What is the locale of your website?
Are you using any translation/multilingual plugin?
If you website uses the `de_DE` locale, it should convert `ß` to `ss` and
`ä` to `ae`.
Here is the related source code of remove_accent() function in 5.7.2:
https://core.trac.wordpress.org/browser/tags/5.7.2/src/wp-
includes/formatting.php#L1922
{{{
// Used for locale-specific rules.
$locale = get_locale();
if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH',
'de_CH_informal', 'de_AT' ), true ) ) {
$chars['Ä'] = 'Ae';
$chars['ä'] = 'ae';
$chars['Ö'] = 'Oe';
$chars['ö'] = 'oe';
$chars['Ü'] = 'Ue';
$chars['ü'] = 'ue';
$chars['ß'] = 'ss';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53684#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list