Changeset 45932 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r45928 r45932 327 327 } 328 328 329 /* translators: If months in your language require a genitive case, 329 /* 330 * translators: If months in your language require a genitive case, 330 331 * translate this to 'on'. Do not translate into your own language. 331 332 */ … … 500 501 // Add the hour part to the string. 501 502 if ( is_numeric( $hour ) ) { 502 /* translators: Time duration in hour or hours. */503 /* translators: %s: Time duration in hour or hours. */ 503 504 $human_readable_duration[] = sprintf( _n( '%s hour', '%s hours', $hour ), (int) $hour ); 504 505 } … … 506 507 // Add the minute part to the string. 507 508 if ( is_numeric( $minute ) ) { 508 /* translators: Time duration in minute or minutes. */509 /* translators: %s: Time duration in minute or minutes. */ 509 510 $human_readable_duration[] = sprintf( _n( '%s minute', '%s minutes', $minute ), (int) $minute ); 510 511 } … … 512 513 // Add the second part to the string. 513 514 if ( is_numeric( $second ) ) { 514 /* translators: Time duration in second or seconds. */515 /* translators: %s: Time duration in second or seconds. */ 515 516 $human_readable_duration[] = sprintf( _n( '%s second', '%s seconds', $second ), (int) $second ); 516 517 } … … 1696 1697 // Die with a DB error. 1697 1698 $wpdb->error = sprintf( 1698 /* translators: %s: database repair URL*/1699 /* translators: %s: Database repair URL. */ 1699 1700 __( 'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.' ), 1700 1701 'maint/repair.php?referrer=is_blog_installed' … … 2230 2231 2231 2232 $uploads['error'] = sprintf( 2232 /* translators: %s: directory path*/2233 /* translators: %s: Directory path. */ 2233 2234 __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), 2234 2235 esc_html( $error_path ) … … 2516 2517 2517 2518 $message = sprintf( 2518 /* translators: %s: directory path*/2519 /* translators: %s: Directory path. */ 2519 2520 __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), 2520 2521 $error_path … … 2526 2527 if ( ! $ifp ) { 2527 2528 return array( 2528 /* translators: %s: file name*/2529 /* translators: %s: File name. */ 2529 2530 'error' => sprintf( __( 'Could not write file %s' ), $new_file ), 2530 2531 ); … … 3034 3035 if ( 'log-out' == $action ) { 3035 3036 $html = sprintf( 3036 /* translators: %s: site name*/3037 /* translators: %s: Site title. */ 3037 3038 __( 'You are attempting to log out of %s' ), 3038 3039 get_bloginfo( 'name' ) … … 3041 3042 $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; 3042 3043 $html .= sprintf( 3043 /* translators: %s: logout URL*/3044 /* translators: %s: Logout URL. */ 3044 3045 __( 'Do you really want to <a href="%s">log out</a>?' ), 3045 3046 wp_logout_url( $redirect_to ) … … 4571 4572 if ( function_exists( '__' ) ) { 4572 4573 if ( ! is_null( $replacement ) ) { 4573 /* translators: 1: PHP function name, 2: version number, 3: alternative function name*/4574 /* translators: 1: PHP function name, 2: Version number, 3: Alternative function name. */ 4574 4575 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $function, $version, $replacement ) ); 4575 4576 } else { 4576 /* translators: 1: PHP function name, 2: version number*/4577 /* translators: 1: PHP function name, 2: Version number. */ 4577 4578 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ), $function, $version ) ); 4578 4579 } … … 4635 4636 trigger_error( 4636 4637 sprintf( 4637 /* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method*/4638 /* translators: 1: PHP class name, 2: PHP parent class name, 3: Version number, 4: __construct() method. */ 4638 4639 __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ), 4639 4640 $class, … … 4646 4647 trigger_error( 4647 4648 sprintf( 4648 /* translators: 1: PHP class name, 2: version number, 3: __construct() method*/4649 /* translators: 1: PHP class name, 2: Version number, 3: __construct() method. */ 4649 4650 __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), 4650 4651 $class, … … 4725 4726 if ( function_exists( '__' ) ) { 4726 4727 if ( ! is_null( $replacement ) ) { 4727 /* translators: 1: PHP file name, 2: version number, 3: alternative file name*/4728 /* translators: 1: PHP file name, 2: Version number, 3: Alternative file name. */ 4728 4729 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $file, $version, $replacement ) . $message ); 4729 4730 } else { 4730 /* translators: 1: PHP file name, 2: version number*/4731 /* translators: 1: PHP file name, 2: Version number. */ 4731 4732 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ), $file, $version ) . $message ); 4732 4733 } … … 4788 4789 if ( function_exists( '__' ) ) { 4789 4790 if ( ! is_null( $message ) ) { 4790 /* translators: 1: PHP function name, 2: version number, 3: optional message regarding the change*/4791 /* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */ 4791 4792 trigger_error( sprintf( __( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ), $function, $version, $message ) ); 4792 4793 } else { 4793 /* translators: 1: PHP function name, 2: version number*/4794 /* translators: 1: PHP function name, 2: Version number. */ 4794 4795 trigger_error( sprintf( __( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.' ), $function, $version ) ); 4795 4796 } … … 4847 4848 $message = empty( $message ) ? '' : ' ' . $message; 4848 4849 if ( ! is_null( $replacement ) ) { 4849 /* translators: 1: WordPress hook name, 2: version number, 3: alternative hook name*/4850 /* translators: 1: WordPress hook name, 2: Version number, 3: Alternative hook name. */ 4850 4851 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $hook, $version, $replacement ) . $message ); 4851 4852 } else { 4852 /* translators: 1: WordPress hook name, 2: version number*/4853 /* translators: 1: WordPress hook name, 2: Version number. */ 4853 4854 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ), $hook, $version ) . $message ); 4854 4855 } … … 4901 4902 $version = ''; 4902 4903 } else { 4903 /* translators: %s: version number*/4904 /* translators: %s: Version number. */ 4904 4905 $version = sprintf( __( '(This message was added in version %s.)' ), $version ); 4905 4906 } 4906 4907 $message .= ' ' . sprintf( 4907 /* translators: %s: Documentation URL */4908 /* translators: %s: Documentation URL. */ 4908 4909 __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ), 4909 4910 __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) 4910 4911 ); 4911 /* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message */4912 /* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message. */ 4912 4913 trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) ); 4913 4914 } else { … … 6754 6755 $email_change_email = array( 6755 6756 'to' => $old_email, 6756 /* translators: Site admin email change notification email subject. %s: Site title */6757 /* translators: Site admin email change notification email subject. %s: Site title. */ 6757 6758 'subject' => __( '[%s] Admin Email Changed' ), 6758 6759 'message' => $email_change_text, … … 6897 6898 break; 6898 6899 case 'text': 6899 /* translators: deleted text*/6900 /* translators: Deleted text. */ 6900 6901 $anonymous = __( '[deleted]' ); 6901 6902 break; 6902 6903 case 'longtext': 6903 /* translators: deleted long text*/6904 /* translators: Deleted long text. */ 6904 6905 $anonymous = __( 'This content was deleted by the author.' ); 6905 6906 break; … … 7117 7118 7118 7119 $annotation = sprintf( 7119 /* translators: %s: default Update PHP page URL*/7120 /* translators: %s: Default Update PHP page URL. */ 7120 7121 __( 'This resource is provided by your web host, and is specific to your site. For more information, <a href="%s" target="_blank">see the official WordPress documentation</a>.' ), 7121 7122 esc_url( $default_url ) … … 7176 7177 esc_url( $direct_update_url ), 7177 7178 __( 'Update PHP' ), 7178 /* translators: accessibility text*/7179 /* translators: Accessibility text. */ 7179 7180 __( '(opens in a new tab)' ) 7180 7181 );
Note: See TracChangeset
for help on using the changeset viewer.