Make WordPress Core


Ignore:
Timestamp:
03/19/2014 08:17:08 AM (13 years ago)
Author:
nacin
Message:

More translation cleanups.

Affects widgets (see #27112), custom headers (see #21785), theme installer (see #27055, reverts [27614]), and some media stuff. Untranslates some complicated strings that need additional study.

see #27453.

File:
1 edited

Legend:

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

    r27588 r27620  
    297297                                if ( $is_active_sidebar ) {
    298298                                        $section_args = array(
     299                                                /* translators: %s: sidebar name */
    299300                                                'title' => sprintf( __( 'Widgets: %s' ), $GLOBALS['wp_registered_sidebars'][$sidebar_id]['name'] ),
    300301                                                'description' => $GLOBALS['wp_registered_sidebars'][$sidebar_id]['description'],
    … …  
    458459
    459460                $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&hellip;' ),
     463                        __( 'Move down' ),
     464                        __( 'Move up' )
    467465                );
    468466
    … …  
    470468                        array( '{description}', '{btn}' ),
    471469                        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' ),
    474472                        ),
    475473                        '
    … …  
    498496                        'available_widgets' => $available_widgets, // @todo Merge this with registered_widgets
    499497                        '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.' ),
    504503                        ),
    505504                        'tpl' => array(
    … …  
    734733                        'registered_widgets' => $GLOBALS['wp_registered_widgets'],
    735734                        'i18n' => array(
    736                                 'widget_tooltip' => __( 'Press shift and then click to edit widget in customizer...' ),
     735                                'widget_tooltip' => ( 'Shift-click to edit this widget.' ),
    737736                        ),
    738737                );
    … …  
    10321031                try {
    10331032                        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?' ) );
    10351034                        }
    10361035                        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
    10381037                        }
    10391038                        if ( ! isset( $_POST['widget-id'] ) ) {
    1040                                 throw new Widget_Customizer_Exception( __( 'Incomplete request' ) );
     1039                                throw new Widget_Customizer_Exception( ( 'Incomplete request' ) ); // @todo translate
    10411040                        }
    10421041
Note: See TracChangeset for help on using the changeset viewer.