Make WordPress Core

Changeset 37698


Ignore:
Timestamp:
06/14/2016 05:43:27 PM (8 years ago)
Author:
SergeyBiryukov
Message:

I18N: In remove_accents(), add support for de_CH and de_CH_informal.

Props grapplerulrich.
Fixes #37076.

File:
1 edited

Legend:

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

    r37674 r37698  
    14611461 * | U+1EF9   | ỹ     | y           | Latin small letter y with tilde                       |
    14621462 *
    1463  * German (`de_DE`) and German formal (`de_DE_formal`) locales:
     1463 * German (`de_DE`), German formal (`de_DE_formal`), German (Switzerland) formal (`de_CH`),
     1464 * and German (Switzerland) informal (`de_CH_informal`) locales:
    14641465 *
    14651466 * |   Code   | Glyph | Replacement |               Description               |
     
    14851486 *
    14861487 * @since 1.2.1
     1488 * @since 4.6.0 Locale support was added for `de_CH` and `de_CH_informal`.
    14871489 *
    14881490 * @param string $string Text that might have accent characters
     
    16731675        $locale = get_locale();
    16741676
    1675         if ( 'de_DE' == $locale || 'de_DE_formal' == $locale ) {
     1677        if ( 'de_DE' == $locale || 'de_DE_formal' == $locale || 'de_CH' == $locale || 'de_CH_informal' == $locale ) {
    16761678            $chars[ chr(195).chr(132) ] = 'Ae';
    16771679            $chars[ chr(195).chr(164) ] = 'ae';
Note: See TracChangeset for help on using the changeset viewer.