I18N: Add support for German (Austria) locale in `remove_accents()`.

Props patopaiar, nonverbla.
Fixes #52110.
Built from https://develop.svn.wordpress.org/trunk@49967


git-svn-id: http://core.svn.wordpress.org/trunk@49668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2021-01-17 15:46:08 +00:00
parent cc1c1b0b5d
commit 87b092dc30
2 changed files with 4 additions and 3 deletions

View File

@ -1537,7 +1537,7 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) {
* | U+1EF9 | | y | Latin small letter y with tilde |
*
* German (`de_DE`), German formal (`de_DE_formal`), German (Switzerland) formal (`de_CH`),
* and German (Switzerland) informal (`de_CH_informal`) locales:
* German (Switzerland) informal (`de_CH_informal`), and German (Austria) (`de_AT`) locales:
*
* | Code | Glyph | Replacement | Description |
* | -------- | ----- | ----------- | --------------------------------------- |
@ -1577,6 +1577,7 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) {
* @since 4.6.0 Added locale support for `de_CH`, `de_CH_informal`, and `ca`.
* @since 4.7.0 Added locale support for `sr_RS`.
* @since 4.8.0 Added locale support for `bs_BA`.
* @since 5.7.0 Added locale support for `de_AT`.
*
* @param string $string Text that might have accent characters
* @return string Filtered string with replaced "nice" characters.
@ -1919,7 +1920,7 @@ function remove_accents( $string ) {
// Used for locale-specific rules.
$locale = get_locale();
if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH', 'de_CH_informal' ), true ) ) {
if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH', 'de_CH_informal', 'de_AT' ), true ) ) {
$chars['Ä'] = 'Ae';
$chars['ä'] = 'ae';
$chars['Ö'] = 'Oe';

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49966';
$wp_version = '5.7-alpha-49967';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.