Make WordPress Core

Changeset 49967


Ignore:
Timestamp:
01/17/2021 03:44:04 PM (4 years ago)
Author:
ocean90
Message:

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

Props patopaiar, nonverbla.
Fixes #52110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r49927 r49967  
    15381538 *
    15391539 * German (`de_DE`), German formal (`de_DE_formal`), German (Switzerland) formal (`de_CH`),
    1540  * and German (Switzerland) informal (`de_CH_informal`) locales:
     1540 * German (Switzerland) informal (`de_CH_informal`), and German (Austria) (`de_AT`) locales:
    15411541 *
    15421542 * |   Code   | Glyph | Replacement |               Description               |
     
    15781578 * @since 4.7.0 Added locale support for `sr_RS`.
    15791579 * @since 4.8.0 Added locale support for `bs_BA`.
     1580 * @since 5.7.0 Added locale support for `de_AT`.
    15801581 *
    15811582 * @param string $string Text that might have accent characters
     
    19201921        $locale = get_locale();
    19211922
    1922         if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH', 'de_CH_informal' ), true ) ) {
     1923        if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH', 'de_CH_informal', 'de_AT' ), true ) ) {
    19231924            $chars['Ä'] = 'Ae';
    19241925            $chars['ä'] = 'ae';
Note: See TracChangeset for help on using the changeset viewer.