[wp-trac] [WordPress Trac] #54415: remove_accent does not remove accents
WordPress Trac
noreply at wordpress.org
Wed Nov 10 17:53:18 UTC 2021
#54415: remove_accent does not remove accents
-----------------------------------------+------------------------------
Reporter: malthert | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: major | Resolution:
Keywords: reporter-feedback has-patch | Focuses:
-----------------------------------------+------------------------------
Comment (by SergeyBiryukov):
Hi there, thanks for the report!
Replying to [ticket:54415 malthert]:
> Why would some accents only be removed conditionally based on the
current language?
Because the replacement for some characters depends on the locale. For
example:
* `Ä` is replaced with `Ae` for German, and just `A` for other locales.
* `Đ` is replaced with `DJ` for Serbian and Bosnian, and just `D` for
other locales.
This was originally added in [23361] / #3782, there is some discussion on
the ticket about the implementation.
The list was further adjusted in [26585], [33027], [37698], [37853],
[38646], [39939], [49967].
> This makes zero sense and causes unexpected results in general, but
especially when using one of the locales that should be there but is not,
e.g. de_AT_formal/informal or sv_SE (only da_DK is there even though the
characters are used in Swedish just the same)
I think we should add those locales to the list, instead of removing the
condition altogether.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54415#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list