[wp-trac] [WordPress Trac] #8759: Word count function doesn't work in several languages
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 8 21:27:04 UTC 2012
#8759: Word count function doesn't work in several languages
----------------------------+-----------------------
Reporter: jim912 | Owner: nacin
Type: task (blessed) | Status: accepted
Priority: low | Milestone: 3.4
Component: I18N | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------
Comment (by nacin):
In order to force character-based counting, set 'type' to 'c' in script-
loader.php, or use:
{{{
add_filter( 'gettext_with_context', function( $translated, $text, $context
) {
if ( $text == 'words' && $context == 'word count: words or
characters?' )
return 'characters';
return $translated;
}, 10, 3 );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8759#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list