Changeset 27620
- Timestamp:
- 03/19/2014 08:17:08 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-install.php
r27614 r27620 47 47 'addNew' => __( 'Add New Theme' ), 48 48 'search' => __( 'Search Themes' ), 49 'searchPlaceholder' => __( 'Search themes …' ),49 'searchPlaceholder' => __( 'Search themes...' ), // placeholder (no ellipsis) 50 50 'upload' => __( 'Upload Theme' ), 51 51 'back' => __( 'Back' ), -
trunk/src/wp-admin/themes.php
r27469 r27620 105 105 'addNew' => __( 'Add New Theme' ), 106 106 'search' => __( 'Search Installed Themes' ), 107 'searchPlaceholder' => __( 'Search installed themes...' ), 107 'searchPlaceholder' => __( 'Search installed themes...' ), // placeholder (no ellipsis) 108 108 ), 109 109 ) ); -
trunk/src/wp-includes/class-wp-customize-control.php
r27497 r27620 749 749 'remove' => wp_create_nonce( 'header-remove' ), 750 750 ), 751 'l10n' => array(752 /* translators: header images uploaded by user */753 'uploaded' => __( 'uploaded' ),754 /* translators: header images suggested by the current theme */755 'default' => __( 'suggested' )756 ),757 751 'uploads' => $this->uploaded_headers, 758 752 'defaults' => $this->default_headers … … 973 967 <div class="customize-control-content"> 974 968 <p class="customizer-section-intro"> 975 <?php _e( 'Personalize your site with your own header image.' ); ?>976 969 <?php 970 // @todo translate (and look to custom-header.php for inspiration) 971 echo ( 'Personalize your site with your own header image.' ); 977 972 if ( $width && $height ) { 978 printf( __( 'While you can crop images to your liking after clicking <strong>%s</strong>, your theme recommends a header size of <strong>%dx%d</strong> pixels.' ), 979 _x( 'Add new', 'header image' ), $width, $height ); 973 printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header size of <strong>%d × %d</strong> pixels.' ), $width, $height ); 974 } elseif ( $width ) { 975 printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header width of <strong>%d</strong> pixels.' ), $width ); 980 976 } else { 981 if ( $width ) { 982 printf( __( 'While you can crop images to your liking after clicking <strong>%s</strong>, your theme recommends a header width of <strong>%d</strong> pixels.' ), 983 _x( 'Add new', 'header image' ), $width ); 984 } 985 if ( $height ) { 986 printf( __( 'While you can crop images to your liking after clicking <strong>%s</strong>, your theme recommends a header height of <strong>%d</strong> pixels.' ), 987 _x( 'Add new', 'header image' ), $height ); 988 } 977 printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header height of <strong>%d</strong> pixels.' ), $height ); 989 978 } 990 979 ?> -
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 -
trunk/src/wp-includes/js/customize-views.js
r27497 r27620 136 136 137 137 extendedModel: function() { 138 var c = this.model.get('collection'), 139 t = _wpCustomizeHeader.l10n[c.type] || ''; 140 138 var c = this.model.get('collection'); 141 139 return _.extend(this.model.toJSON(), { 142 140 // -1 to exclude the randomize button 143 nImages: c.size() - 1, 144 type: t 141 nImages: c.size() - 1 145 142 }); 146 143 }, -
trunk/src/wp-includes/media-template.php
r27615 r27620 513 513 <?php 514 514 $playlist_styles = array( 515 'light' => _x( 'Light', ' lightplaylist theme' ),516 'dark' => _x( 'Dark', ' darkplaylist theme' )515 'light' => _x( 'Light', 'playlist theme' ), 516 'dark' => _x( 'Dark', 'playlist theme' ) 517 517 ); 518 518 … … 815 815 <span><?php _e( 'Preload' ); ?></span> 816 816 <div class="button-group button-large" data-setting="preload"> 817 <button class="button" value="auto"><?php _e ( 'Auto' ); ?></button>817 <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload video' ); ?></button> 818 818 <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button> 819 819 <button class="button active" value="none"><?php _e( 'None' ); ?></button> … … 920 920 921 921 <label class="setting" data-setting="content"> 922 <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters or metadata)' ); ?></span>922 <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 923 923 <# 924 924 var content = ''; -
trunk/src/wp-includes/media.php
r27608 r27620 1125 1125 1126 1126 $playlist_styles = array( 1127 'light' => _x( 'Light', ' lightplaylist theme' ),1128 'dark' => _x( 'Dark', ' darkplaylist theme' )1127 'light' => _x( 'Light', 'playlist theme' ), 1128 'dark' => _x( 'Dark', 'playlist theme' ) 1129 1129 ); 1130 1130 … … 2481 2481 2482 2482 // Crop Image 2483 /* translators: title for Media Manager library view */2484 2483 'chooseImage' => __( 'Choose Image' ), 2485 /* translators: button to select an image from the MM library to crop */2486 2484 'selectAndCrop' => __( 'Select and Crop' ), 2487 /* translators: button to choose not to crop the selected image */2488 2485 'skipCropping' => __( 'Skip Cropping' ), 2489 /* translators: button to choose to crop the selected image */2490 2486 'cropImage' => __( 'Crop Image' ), 2491 2487 'cropYourImage' => __( 'Crop your image' ), 2492 /* translators: button label changes to this while the image is being cropped server-side */ 2493 'cropping' => __( 'Cropping...' ), 2494 /* translators: suggested width of header image in pixels */ 2488 'cropping' => __( 'Cropping…' ), 2495 2489 'suggestedWidth' => __( 'Suggested width is %d pixels.' ), 2496 /* translators: suggested height of header image in pixels */2497 2490 'suggestedHeight' => __( 'Suggested height is %d pixels.' ), 2498 2491 -
trunk/src/wp-includes/script-loader.php
r27615 r27620 498 498 $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery' ), false, 1 ); 499 499 did_action( 'init' ) && $scripts->localize( 'media', 'attachMediaBoxL10n', array( 500 'error' => __( 'An error has occur ed. Please reload the page and try again.' )500 'error' => __( 'An error has occurred. Please reload the page and try again.' ), 501 501 )); 502 502
Note: See TracChangeset
for help on using the changeset viewer.