I18N: Add support for Serbian crossed D in `remove_accents()`.
Props Krstarica for the report. Fixes #38078. Built from https://develop.svn.wordpress.org/trunk@38646 git-svn-id: http://core.svn.wordpress.org/trunk@38589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bae2b337f0
commit
c3ad13e72e
|
@ -1490,8 +1490,16 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) {
|
|||
* | -------- | ----- | ----------- | --------------------------------------- |
|
||||
* | U+00B7 | l·l | ll | Flown dot (between two Ls) |
|
||||
*
|
||||
* Serbian (`sr_RS`) locale:
|
||||
*
|
||||
* | Code | Glyph | Replacement | Description |
|
||||
* | -------- | ----- | ----------- | --------------------------------------- |
|
||||
* | U+0110 | Đ | DJ | Latin capital letter D with stroke |
|
||||
* | U+0111 | đ | dj | Latin small letter d with stroke |
|
||||
*
|
||||
* @since 1.2.1
|
||||
* @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`.
|
||||
*
|
||||
* @param string $string Text that might have accent characters
|
||||
* @return string Filtered string with replaced "nice" characters.
|
||||
|
@ -1697,6 +1705,9 @@ function remove_accents( $string ) {
|
|||
$chars[ 'å' ] = 'aa';
|
||||
} elseif ( 'ca' === $locale ) {
|
||||
$chars[ 'l·l' ] = 'll';
|
||||
} elseif ( 'sr_RS' === $locale ) {
|
||||
$chars[ 'Đ' ] = 'DJ';
|
||||
$chars[ 'đ' ] = 'dj';
|
||||
}
|
||||
|
||||
$string = strtr($string, $chars);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38645';
|
||||
$wp_version = '4.7-alpha-38646';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue