[wp-trac] [WordPress Trac] #13651: Problem with plural form in comments_number
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 18 02:14:01 UTC 2010
#13651: Problem with plural form in comments_number
-----------------------------+-------------------------
Reporter: pavelevap | Owner: nbachiyski
Type: defect (bug) | Status: new
Priority: highest omg bbq | Milestone: 3.1
Component: I18N | Version: 3.0
Severity: major | Resolution:
Keywords: |
-----------------------------+-------------------------
Comment (by nbachiyski):
Getting very close. Now I have
[http://i18n.trac.wordpress.org/browser/tools/trunk/makepot-tokenizer.php
makepot-tokenizer.php] which doesn't depend on xgettext and produces the
same set of strings as its xgettext counterpart.
Here is a proof-of-concept patch, which is incomplete (missing some
comments and context version of {{{comments_number_link()}}}), but shows
off the new way of calling the functions in the theme:
{{{
<span class="comments-link"><?php comments_number_link( 'Leave a comment',
'1 Comment', '%s Comments', 'twentyten' ); ?></span>
}}}
Short and sweet.
The final leap is to add some functionality to the custom parser, to
recognize two set of strings in one function call and to deploy it to the
.org cluster, so that translators will get the new POT. ETA: Sunday
evening or Monday morning.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13651#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list