Changeset 37853
- Timestamp:
- 06/23/2016 01:27:32 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r37852 r37853 1485 1485 * | U+00E5 | å | aa | Latin small letter a with ring above | 1486 1486 * 1487 * Catalan (`ca`) locale: 1488 * 1489 * | Code | Glyph | Replacement | Description | 1490 * | -------- | ----- | ----------- | --------------------------------------- | 1491 * | U+00B7 | l·l | ll | Flown dot (between two Ls) | 1492 * 1487 1493 * @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`. 1489 1495 * 1490 1496 * @param string $string Text that might have accent characters … … 1690 1696 $chars[ chr(195).chr(133) ] = 'Aa'; 1691 1697 $chars[ chr(195).chr(165) ] = 'aa'; 1698 } elseif ( 'ca' === $locale ) { 1699 $chars[ chr(108).chr(194).chr(183).chr(108) ] = 'll'; 1692 1700 } 1693 1701 -
trunk/tests/phpunit/tests/formatting/RemoveAccents.php
r26585 r37853 111 111 } 112 112 113 public function _set_locale_to_catalan() { 114 return 'ca'; 115 } 116 117 /** 118 * @ticket 37086 119 */ 120 public function test_remove_catalan_middot() { 121 add_filter( 'locale', array( $this, '_set_locale_to_catalan' ) ); 122 123 $this->assertEquals( 'allallalla', remove_accents( 'al·lallaŀla' ) ); 124 125 remove_filter( 'locale', array( $this, '_set_locale_to_catalan' ) ); 126 127 $this->assertEquals( 'al·lallalla', remove_accents( 'al·lallaŀla' ) ); 128 } 113 129 }
Note: See TracChangeset
for help on using the changeset viewer.