[wp-trac] [WordPress Trac] #8024: "Right now" module with not translatable string

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 31 18:51:41 GMT 2008


#8024: "Right now" module with not translatable string
--------------------+-------------------------------------------------------
 Reporter:  msi08   |       Owner:  anonymous
     Type:  defect  |      Status:  new      
 Priority:  normal  |   Milestone:  2.7      
Component:  i18n    |     Version:           
 Severity:  normal  |    Keywords:           
--------------------+-------------------------------------------------------
 I found some not translatable strings. Currently, it is impossible to
 translate because poEdit has a problem to detect the strings in their
 context (other tools will have the same problem, I think). My dashboard is
 using German and the "Right now" module does not translate the string
 ''Posts'', ''Comments'', ''Approved'', ''Spam'' and ''Awaiting
 moderation''. The module uses those strings in a singular/plural function
 but they do exist in a singular context in the language file:
 {{{
 #: /wp-admin/press-this.php:520
 #: /wp-admin/edit-form.php:32
 #: /wp-admin/includes/dashboard.php:175  # <-- this is the trouble line
 #: /wp-admin/includes/dashboard.php:313
 msgid "Post"
 msgstr "Artikel"
 }}}
 It is not possible to put another "Post/Posts" entry into the language
 file. poEdit will detect it as double content. My suggestion is to use
 "_c" and a context. Something like
 {{{
 echo '<td class="t posts">' . _c( __ngettext( 'Post|rightnow',
 'Posts|rightnow', $num_posts->publish ) ) . '</td>';
 }}}
 for all those strings in the module to avoid problems with the
 translation.

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


More information about the wp-trac mailing list