Changeset 10683
- Timestamp:
- 02/17/2021 03:29:43 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-fixer/wporg-gp-translation-fixer.php
r9889 r10683 66 66 // Try replacing unicode percent signs with a ascii percent sign. 67 67 $translation = preg_replace( '!(﹪|%)((\d+\$(?:\d+)?)?[bcdefgosuxEFGX])!', '%$2', $translation ); 68 69 // Try replacing spaced translation type with no spaces `% 1 $ s` (Machine translated text) 70 $translation = preg_replace_callback( 71 '!%\s?(\d+\s?\$(?:\d+)?)?\s?[bcdefgosuxEFGX]!', 72 function( $m ) { 73 return str_replace( ' ', '', $m[0] ); 74 }, 75 $translation 76 ); 77 68 78 break; 69 79 }
Note: See TracChangeset
for help on using the changeset viewer.