Changeset 27620 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 03/19/2014 08:17:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r27588 r27620 297 297 if ( $is_active_sidebar ) { 298 298 $section_args = array( 299 /* translators: %s: sidebar name */ 299 300 'title' => sprintf( __( 'Widgets: %s' ), $GLOBALS['wp_registered_sidebars'][$sidebar_id]['name'] ), 300 301 'description' => $GLOBALS['wp_registered_sidebars'][$sidebar_id]['description'], … … 458 459 459 460 $widget_reorder_nav_tpl = sprintf( 460 '<div class="widget-reorder-nav"><span class="move-widget" tabindex="0" title="%1$s">%2$s</span><span class="move-widget-down" tabindex="0" title="%3$s">%4$s</span><span class="move-widget-up" tabindex="0" title="%5$s">%6$s</span></div>', 461 esc_attr__( 'Move to another area...' ), 462 esc_html__( 'Move to another area...' ), 463 esc_attr__( 'Move down' ), 464 esc_html__( 'Move down' ), 465 esc_attr__( 'Move up' ), 466 esc_html__( 'Move up' ) 461 '<div class="widget-reorder-nav"><span class="move-widget" tabindex="0">%1$s</span><span class="move-widget-down" tabindex="0">%2$s</span><span class="move-widget-up" tabindex="0">%3$s</span></div>', 462 __( 'Move to another area…' ), 463 __( 'Move down' ), 464 __( 'Move up' ) 467 465 ); 468 466 … … 470 468 array( '{description}', '{btn}' ), 471 469 array( 472 esc_html__( 'Select an area to move this widget into:' ),473 esc_html_ _( 'Move' ),470 ( 'Select an area to move this widget into:' ), // @todo translate 471 esc_html_x( 'Move', 'move widget' ), 474 472 ), 475 473 ' … … 498 496 'available_widgets' => $available_widgets, // @todo Merge this with registered_widgets 499 497 'i18n' => array( 500 'save_btn_label' => _x( 'Apply', 'button to save changes to a widget' ), 501 'save_btn_tooltip' => _x( 'Save and preview changes before publishing them.', 'tooltip on the widget save button' ), 502 'remove_btn_label' => _x( 'Remove', 'link to move a widget to the inactive widgets sidebar' ), 503 'remove_btn_tooltip' => _x( 'Trash widget by moving it to the inactive widgets sidebar.', 'tooltip on btn a widget to move it to the inactive widgets sidebar' ), 498 'save_btn_label' => __( 'Apply' ), 499 // @todo translate? do we want these tooltips? 500 'save_btn_tooltip' => ( 'Save and preview changes before publishing them.' ), 501 'remove_btn_label' => __( 'Remove' ), 502 'remove_btn_tooltip' => ( 'Trash widget by moving it to the inactive widgets sidebar.' ), 504 503 ), 505 504 'tpl' => array( … … 734 733 'registered_widgets' => $GLOBALS['wp_registered_widgets'], 735 734 'i18n' => array( 736 'widget_tooltip' => __( 'Press shift and then click to edit widget in customizer...' ),735 'widget_tooltip' => ( 'Shift-click to edit this widget.' ), 737 736 ), 738 737 ); … … 1032 1031 try { 1033 1032 if ( ! check_ajax_referer( self::UPDATE_WIDGET_AJAX_ACTION, self::UPDATE_WIDGET_NONCE_POST_KEY, false ) ) { 1034 throw new Widget_Customizer_Exception( __( 'Nonce check failed. Reload and try again?' ) );1033 throw new Widget_Customizer_Exception( ( 'Nonce check failed. Reload and try again?' ) ); 1035 1034 } 1036 1035 if ( ! current_user_can( 'edit_theme_options' ) ) { 1037 throw new Widget_Customizer_Exception( __( 'Current user cannot!' ) );1036 throw new Widget_Customizer_Exception( ( 'Current user cannot!' ) ); // @todo translate 1038 1037 } 1039 1038 if ( ! isset( $_POST['widget-id'] ) ) { 1040 throw new Widget_Customizer_Exception( __( 'Incomplete request' ) );1039 throw new Widget_Customizer_Exception( ( 'Incomplete request' ) ); // @todo translate 1041 1040 } 1042 1041
Note: See TracChangeset
for help on using the changeset viewer.