Ticket #25824: 25824.i18n.patch
File 25824.i18n.patch, 2.4 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/dashboard.php
37 37 38 38 // Right Now 39 39 if ( is_blog_admin() && current_user_can('edit_posts') ) 40 add_meta_box( 'dash-right-now', 'Site Content', 'dashboard_new_right_now', 'dashboard', 'normal', 'high' );40 add_meta_box( 'dash-right-now', __( 'Site Content' ), 'dashboard_new_right_now', 'dashboard', 'normal', 'high' ); 41 41 42 42 if ( is_network_admin() ) 43 43 wp_add_dashboard_widget( 'network_dashboard_right_now', __( 'Right Now' ), 'wp_network_dashboard_right_now' ); … … 283 283 * @since 3.8.0 284 284 * 285 285 */ 286 function wp_dashboard_quick_draft( $error_msg =false ) {286 function wp_dashboard_quick_draft( $error_msg = false ) { 287 287 global $post_ID; 288 288 289 289 /* Check if a new auto-draft (= no new post_ID) is needed or if the old can be used */ … … 311 311 312 312 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form"> 313 313 314 <?php if ( $error_msg) : ?>315 <div class="error"><?php _e( $error_msg ); ?></div>314 <?php if ( $error_msg ) : ?> 315 <div class="error"><?php echo $error_msg; ?></div> 316 316 <?php endif; ?> 317 317 318 318 <div class="input-text-wrap" id="title-wrap"> 319 <label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php _e( "What's on your mind?"); ?></label>319 <label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php esc_html_e( 'What’s on your mind?' ); ?></label> 320 320 <input type="text" name="post_title" id="title" autocomplete="off" /> 321 321 </div> 322 322 323 323 <div class="textarea-wrap" id="description-wrap"> 324 <label class="screen-reader-text prompt" for="content" id="content-prompt-text"><?php _e( 'Enter a description' ); ?></label>324 <label class="screen-reader-text prompt" for="content" id="content-prompt-text"><?php esc_html_e( 'Enter a description' ); ?></label> 325 325 <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"></textarea> 326 326 </div> 327 327 … … 388 388 <?php if ( 3 < count($drafts) ) { ?> 389 389 <p class="view-all"><a href="edit.php?post_status=draft" ><?php _e( 'View all' ); ?></a></p> 390 390 <?php } ?> 391 <h4><?php _e( 'Drafts'); ?></h4>391 <h4><?php _e( 'Drafts' ); ?></h4> 392 392 <ul id="draft-list"> 393 393 <li><?php echo join( "</li>\n<li>", $list ); ?></li> 394 394 </ul>