Customizer i18n: provide translator context for current menu name and location.
Props ryankienstra. Fixes #33431. Built from https://develop.svn.wordpress.org/trunk@35676 git-svn-id: http://core.svn.wordpress.org/trunk@35640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1d0763785
commit
a9fb6e9ae0
|
@ -337,7 +337,7 @@ final class WP_Customize_Nav_Menus {
|
|||
'unnamed' => _x( '(unnamed)', 'Missing menu name.' ),
|
||||
'custom_label' => __( 'Custom Link' ),
|
||||
/* translators: %s: Current menu location */
|
||||
'menuLocation' => __( '(Currently set to: %s)' ),
|
||||
'menuLocation' => _x( '(Currently set to: %s)', 'Current menu location' ),
|
||||
'menuNameLabel' => __( 'Menu Name' ),
|
||||
'itemAdded' => __( 'Menu item added' ),
|
||||
'itemDeleted' => __( 'Menu item deleted' ),
|
||||
|
|
|
@ -71,7 +71,7 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
|||
<li class="customize-control customize-control-checkbox assigned-menu-location">
|
||||
<label>
|
||||
<input type="checkbox" data-menu-id="{{ data.menu_id }}" data-location-id="<?php echo esc_attr( $location ); ?>" class="menu-location" /> <?php echo $description; ?>
|
||||
<span class="theme-location-set"><?php printf( _x( '(Current: %s)', 'Current menu location' ), '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>' ); ?></span>
|
||||
<span class="theme-location-set"><?php printf( /* translators: %s: menu name */ _x( '(Current: %s)', 'Current menu location' ), '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta4-35675';
|
||||
$wp_version = '4.4-beta4-35676';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue