WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/20/2013 05:49:29 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Use placeholders in menu strings instead of manual concatenation. fixes #14045.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r23760 r23761  
    356356
    357357$l10n = array(
    358     "oneThemeLocationNoMenus" => $one_theme_location_no_menus,
    359     "move" => __( 'Move' ),
    360     "menuFocus" => __( 'Menu item %d of %d' ),
    361     "subMenuFocus" => __( 'Sub item number %d under' ),
    362     "under" => __( 'Under' ),
    363     "outFrom" => __( 'Out from under' )
     358    'oneThemeLocationNoMenus' => $one_theme_location_no_menus,
     359    'moveUp'       => __( 'Move up one' ),
     360    'moveDown'     => __( 'Move down one' ),
     361    'moveToTop'    => __( 'Move to the top' ),
     362    /* translators: %s: previous item name */
     363    'moveUnder'    => __( 'Move under %s' ),
     364    /* translators: %s: previous item name */
     365    'moveOutFrom'  => __( 'Move out from under %s' ),
     366    /* translators: %s: previous item name */
     367    'under'        => __( 'Under %s' ),
     368    /* translators: %s: previous item name */
     369    'outFrom'      => __( 'Out from under %s' ),
     370    /* translators: 1: item name, 2: item position, 3: total number of items */
     371    'menuFocus'    => __( '%1$s. Menu item %2$d of %3$d.' ),
     372    /* translators: 1: item name, 2: item position, 3: parent item name */
     373    'subMenuFocus' => __( '%1$s. Sub item number %2$d under %3$s.' ),
    364374);
    365375wp_localize_script( 'nav-menu', 'menus', $l10n );
Note: See TracChangeset for help on using the changeset viewer.