[wp-trac] [WordPress Trac] #17763: comments_popup_link() need a get_* version

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 9 23:29:50 UTC 2012


#17763: comments_popup_link() need a get_* version
-------------------------+-----------------------------
 Reporter:  dd32         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Template     |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------
Changes (by leblogdudeveloppeur):

 * cc: leblogdudeveloppeur (added)


Comment:

 Why not close this ticket now if the original problem is corrected by the
 patch ? For me the comment of MeanderingCode is the topic of a new ticket
 as an evolution.

 The original topic is a real problem for internationalization because it
 is not easy (except if I rewrite the implementation without echo) to put
 the result of the function in a printf(). It means that we have things
 like this :
 {{{
 <div><?php printf(__('Published on: <span>%1$s</span> by <span>%2$s</span>
 - ', 'azsimple'), get_the_time($formatTime), get_the_author()); ?><?php
 comments_popup_link(__('Leave a Comment', 'azsimple'), __('1 Comment',
 'azsimple'), __('% Comments', 'azsimple')); ?></div>
 }}}
 ... in templates. If the translator want put the comment link before
 "Published on...", he can't with just *.po files.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17763#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list