[wp-trac] [WordPress Trac] #23503: Post Formats: i18n issues

WordPress Trac noreply at wordpress.org
Wed Apr 10 00:21:27 UTC 2013


#23503: Post Formats: i18n issues
----------------------------+--------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  I18N            |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------

Comment (by SergeyBiryukov):

 [attachment:23503.post-format-tip.patch] is not localizable. Dynamic
 strings like `sprintf( __( '%s' ), $slug )` or `_e( $post_format )` cannot
 be extracted by gettext: [[BR]]
 http://ottopress.com/2012/internationalization-youre-probably-doing-it-
 wrong/

 [attachment:23503.2.patch] looks good to me. The "Post format" context is
 probably not necessary for strings like "Standard Post" in
 `get_post_type_labels()`. It's only needed for ambiguous strings like
 "Standard".

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


More information about the wp-trac mailing list