[wp-trac] [WordPress Trac] #23641: Tweaks to menu management box

WordPress Trac noreply at wordpress.org
Sat Mar 2 03:33:45 UTC 2013


#23641: Tweaks to menu management box
----------------------------------------+--------------------
 Reporter:  lessbloat                   |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  3.6
Component:  Menus                       |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  3.6-menus has-patch commit  |
----------------------------------------+--------------------

Comment (by aaroncampbell):

 I don't think you can break up sentences or it messes with translation.

 {{{
 <?php _e( 'Edit your menu below, or' ); ?> <a href="<?php echo esc_url(
 add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-
 menus.php' ) ) ); ?>"><?php esc_html_e( 'create a new menu' ); ?></a>
 }}}

 Should be something like this:
 {{{
 <?php
 printf( __( 'Edit your menu below, or <a href="%s">create a new menu</a>'
 ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ),
 admin_url( 'nav-menus.php' ) ) ) );
 ?>
 }}}

 We may need to have one of the translators look at this or at least
 someone with more translation chops than me.

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


More information about the wp-trac mailing list