[wp-trac] [WordPress Trac] #27155: Add context to the translation of "Sticky"

WordPress Trac noreply at wordpress.org
Wed Feb 19 01:36:14 UTC 2014


#27155: Add context to the translation of "Sticky"
----------------------------+-----------------------------
 Reporter:  GregLone        |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  I18N            |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Hello.

 "Sticky" is used in 2 places:
 1. in the function `_post_states()` as a post state,

 {{{
 if ( 'pending' == $post->post_status && 'pending' != $post_status )
         /* translators: post state */
         $post_states['pending'] = _x('Pending', 'post state');
 if ( is_sticky($post->ID) )
         $post_states['sticky'] = __('Sticky');
 }}}

 2. and in `WP_Posts_List_Table::inline_edit()` as a verb.

 {{{
 <label class="alignright">
         <span class="title"><?php _e( 'Sticky' ); ?></span>
         <select name="sticky">
                 <option value="-1"><?php _e( '— No Change —'
 ); ?></option>
                 <option value="sticky"><?php _e( 'Sticky' ); ?></option>
                 <option value="unsticky"><?php _e( 'Not Sticky' );
 ?></option>
         </select>
 </label>
 }}}

 And of course it's not the same thing for some languages (like French for
 example).

 My suggestion is to add the context "'''post state'''" for the... post
 state. This context is already used for "Pending" and there is only one
 modification to make.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27155>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list