plugin updates
This commit is contained in:
@@ -319,7 +319,7 @@
|
||||
$selected = 'selected';
|
||||
}
|
||||
|
||||
$html += '<option ' + $selected + ' value="0">No Parent</option>';
|
||||
$html += '<option ' + $selected + ' value="0">' + wp.i18n._x( 'No Parent', 'menu item without a parent in navigation menu' ) + '</option>';
|
||||
|
||||
$.each( menuItems, function() {
|
||||
var menuItem = $(this),
|
||||
@@ -364,7 +364,13 @@
|
||||
if ( i == itemPosition ) {
|
||||
$selected = 'selected';
|
||||
}
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + i + ' of ' + totalMenuItems + '</option>';
|
||||
var itemString = wp.i18n.sprintf(
|
||||
/* translators: 1: The current menu item number, 2: The total number of menu items. */
|
||||
wp.i18n._x( '%1$s of %2$s', 'part of a total number of menu items' ),
|
||||
i,
|
||||
totalMenuItems
|
||||
);
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + itemString + '</option>';
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -380,7 +386,13 @@
|
||||
if ( i == itemPosition ) {
|
||||
$selected = 'selected';
|
||||
}
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + i + ' of ' + totalSubMenuItems + '</option>';
|
||||
var submenuString = wp.i18n.sprintf(
|
||||
/* translators: 1: The current submenu item number, 2: The total number of submenu items. */
|
||||
wp.i18n._x( '%1$s of %2$s', 'part of a total number of menu items' ),
|
||||
i,
|
||||
totalSubMenuItems
|
||||
);
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + submenuString + '</option>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user