Ticket #37802: 37802.patch
File 37802.patch, 2.9 KB (added by , 7 years ago) |
---|
-
wp-includes/functions.php
1411 1411 wp_load_translations_early(); 1412 1412 1413 1413 // Die with a DB error. 1414 $wpdb->error = sprintf( __( 'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.' ), 'maint/repair.php?referrer=is_blog_installed' ); 1414 $wpdb->error = sprintf( 1415 /* translators: %s: database repair URL */ 1416 __( 'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.' ), 1417 'maint/repair.php?referrer=is_blog_installed' 1418 ); 1419 1415 1420 dead_db(); 1416 1421 } 1417 1422 … … 1895 1900 $error_path = basename( $uploads['basedir'] ) . $uploads['subdir']; 1896 1901 } 1897 1902 1898 $uploads['error'] = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), esc_html( $error_path ) ); 1903 $uploads['error'] = sprintf( 1904 /* translators: %s: directory path */ 1905 __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), 1906 esc_html( $error_path ) 1907 ); 1899 1908 } 1900 1909 1901 1910 $tested_paths[ $path ] = $uploads['error']; … … 2157 2166 else 2158 2167 $error_path = basename( $upload['basedir'] ) . $upload['subdir']; 2159 2168 2160 $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), $error_path ); 2169 $message = sprintf( 2170 /* translators: %s: directory path */ 2171 __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), 2172 $error_path 2173 ); 2161 2174 return array( 'error' => $message ); 2162 2175 } 2163 2176 … … 2516 2529 */ 2517 2530 function wp_nonce_ays( $action ) { 2518 2531 if ( 'log-out' == $action ) { 2519 $html = sprintf( __( 'You are attempting to log out of %s' ), get_bloginfo( 'name' ) ) . '</p><p>'; 2532 $html = sprintf( 2533 /* translators: %s: site name */ 2534 __( 'You are attempting to log out of %s' ), 2535 get_bloginfo( 'name' ) 2536 ); 2537 $html .= '</p><p>'; 2520 2538 $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; 2521 $html .= sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_logout_url( $redirect_to ) ); 2539 $html .= sprintf( 2540 /* translators: %s: logout URL */ 2541 __( 'Do you really want to <a href="%s">log out</a>?' ), 2542 wp_logout_url( $redirect_to ) 2543 ); 2522 2544 } else { 2523 2545 $html = __( 'Are you sure you want to do this?' ); 2524 2546 if ( wp_get_referer() ) … … 3990 4012 */ 3991 4013 if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) { 3992 4014 if ( function_exists( '__' ) ) { 4015 /* translators: %s: version number */ 3993 4016 $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version ); 3994 4017 /* translators: %s: Codex URL */ 3995 4018 $message .= ' ' . sprintf( __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),