Changeset 59426
- Timestamp:
- 11/19/2024 11:23:52 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/nav-menu.js
r59265 r59426 320 320 } 321 321 322 $html += '<option ' + $selected + ' value="0"> No Parent</option>';322 $html += '<option ' + $selected + ' value="0">' + wp.i18n._x( 'No Parent', 'menu item without a parent in navigation menu' ) + '</option>'; 323 323 324 324 $.each( menuItems, function() { … … 365 365 $selected = 'selected'; 366 366 } 367 $html += '<option ' + $selected + ' value="' + i + '">' + i + ' of ' + totalMenuItems + '</option>'; 367 // Translators: %1$s is the current menu item number, %2$s is the total number of menu items. 368 var itemString = wp.i18n.sprintf( 369 wp.i18n._x( '%1$s of %2$s', 'indicating a part of a total number of items in a navigation menu' ), 370 i, 371 totalMenuItems 372 ); 373 $html += '<option ' + $selected + ' value="' + i + '">' + itemString + '</option>'; 368 374 } 369 375 … … 381 387 $selected = 'selected'; 382 388 } 383 $html += '<option ' + $selected + ' value="' + i + '">' + i + ' of ' + totalSubMenuItems + '</option>'; 389 // Translators: %1$s is the current submenu item number, %2$s is the total number of submenu items. 390 var submenuString = wp.i18n.sprintf( 391 wp.i18n._x( '%1$s of %2$s', 'indicating a part of a total number of items in a submenu' ), 392 i, 393 totalSubMenuItems 394 ); 395 $html += '<option ' + $selected + ' value="' + i + '">' + submenuString + '</option>'; 384 396 } 385 397
Note: See TracChangeset
for help on using the changeset viewer.