WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/23/2016 01:27:32 PM (4 years ago)
Author:
ocean90
Message:

I18N: Add support for the Catalan flown dot in remove_accents().

Props xavivars, SergeyBiryukov.
Fixes #37086.

File:
1 edited

Legend:

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

    r37852 r37853  
    14851485 * | U+00E5   | å     | aa          | Latin small letter a with ring above    |
    14861486 *
     1487 * Catalan (`ca`) locale:
     1488 *
     1489 * |   Code   | Glyph | Replacement |               Description               |
     1490 * | -------- | ----- | ----------- | --------------------------------------- |
     1491 * | U+00B7   | l·l   | ll          | Flown dot (between two Ls)              |
     1492 *
    14871493 * @since 1.2.1
    1488  * @since 4.6.0 Locale support was added for `de_CH` and `de_CH_informal`.
     1494 * @since 4.6.0 Locale support was added for `de_CH`, `de_CH_informal`, and `ca`.
    14891495 *
    14901496 * @param string $string Text that might have accent characters
     
    16901696            $chars[ chr(195).chr(133) ] = 'Aa';
    16911697            $chars[ chr(195).chr(165) ] = 'aa';
     1698        } elseif ( 'ca' === $locale ) {
     1699            $chars[ chr(108).chr(194).chr(183).chr(108) ] = 'll';
    16921700        }
    16931701
Note: See TracChangeset for help on using the changeset viewer.