Make WordPress Core

Changeset 35676


Ignore:
Timestamp:
11/18/2015 07:20:30 PM (11 years ago)
Author:
wonderboymusic
Message:

Customizer i18n: provide translator context for current menu name and location.

Props ryankienstra.
Fixes #33431.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r35636 r35676  
    338338                                'custom_label'      => __( 'Custom Link' ),
    339339                                /* translators: %s: Current menu location */
    340                                 'menuLocation'      => __( '(Currently set to: %s)' ),
     340                                'menuLocation'      => _x( '(Currently set to: %s)', 'Current menu location' ),
    341341                                'menuNameLabel'     => __( 'Menu Name' ),
    342342                                'itemAdded'         => __( 'Menu item added' ),
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-control.php

    r35636 r35676  
    7272                                <label>
    7373                                        <input type="checkbox" data-menu-id="{{ data.menu_id }}" data-location-id="<?php echo esc_attr( $location ); ?>" class="menu-location" /> <?php echo $description; ?>
    74                                         <span class="theme-location-set"><?php printf( _x( '(Current: %s)', 'Current menu location' ), '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>' ); ?></span>
     74                                        <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>
    7575                                </label>
    7676                        </li>
Note: See TracChangeset for help on using the changeset viewer.