[wp-trac] [WordPress Trac] #14981: Two i18n misses

WordPress Trac noreply at wordpress.org
Thu Dec 10 21:20:58 UTC 2015


#14981: Two i18n misses
----------------------------------------+-----------------------------
 Reporter:  xibe                        |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  I18N                        |     Version:  3.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------

Comment (by iworks):

 It should be like this:

 {{{
 switch( $post_type_name ) {
    case 'post':
        _ex( 'Most Recent', 'post' );
        break;
    case 'page':
        _ex( 'Most Recent', 'page' );
        break;
    default:
        _e( 'Most Recent' );
        break;
 }
 }}}

 or can be like this:

 {{{
 _ex( 'Most Recent', $post_type_name );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14981#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list