[wp-trac] [WordPress Trac] #15798: The word „Comment“ is not translated in the dashboard

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 13 16:59:13 UTC 2010


#15798: The word „Comment“ is not translated in the dashboard
--------------------------+-------------------------------------------------
 Reporter:  settle        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1            
 Severity:  minor         |    Keywords:  Comment        
--------------------------+-------------------------------------------------
 I am translating Wordpress into lithuanian using Poedit. And I noticed
 that there is a conflict with plural form.

 In the /wp-includes/theme-compat/comments-popup.php I found a line (56)


 {{{
         <p><cite><?php comment_type(__('Comment'), __('Trackback'),
 __('Pingback')); ?> <?php printf(__('by %1$s &#8212; %2$s @ <a
 href="#comment-%3$s">%4$s</a>'), get_comment_author_link(),
 get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p>

 }}}

 So I decided to change that line into


 {{{
         <p><cite><?php comment_type(_x('Comment'), __('Trackback'),
 __('Pingback')); ?> <?php printf(__('by %1$s &#8212; %2$s @ <a
 href="#comment-%3$s">%4$s</a>'), get_comment_author_link(),
 get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p>

 }}}


 {{{
 _x('Comment') instead of __('Comment')
 }}}


 Now Poedit finds the plural form of „Comment“ and translates it in the
 Dashboard.
 It works, but I don't know if it is a correct decision.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15798>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list