WordPress.org

Make WordPress Core

Changeset 39939


Ignore:
Timestamp:
01/21/2017 05:15:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add support for Bosnian locale in remove_accents().

Applies "letter D with stroke" replacement made in [38646] for Serbian (sr_RS) to Bosnian (bs_BA) as well.

Props H3llas for the report.
Fixes #39658.

File:
1 edited

Legend:

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

    r39912 r39939  
    14971497 * | U+00B7   | l·l   | ll          | Flown dot (between two Ls)              |
    14981498 *
    1499  * Serbian (`sr_RS`) locale:
     1499 * Serbian (`sr_RS`) and Bosnian (`bs_BA`) locale:
    15001500 *
    15011501 * |   Code   | Glyph | Replacement |               Description               |
     
    15071507 * @since 4.6.0 Added locale support for `de_CH`, `de_CH_informal`, and `ca`.
    15081508 * @since 4.7.0 Added locale support for `sr_RS`.
     1509 * @since 4.8.0 Added locale support for `bs_BA`.
    15091510 *
    15101511 * @param string $string Text that might have accent characters
     
    17121713        } elseif ( 'ca' === $locale ) {
    17131714            $chars[ 'l·l' ] = 'll';
    1714         } elseif ( 'sr_RS' === $locale ) {
     1715        } elseif ( 'sr_RS' === $locale || 'bs_BA' === $locale ) {
    17151716            $chars[ 'Đ' ] = 'DJ';
    17161717            $chars[ 'đ' ] = 'dj';
Note: See TracChangeset for help on using the changeset viewer.