Changeset 45932 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r45929 r45932 95 95 } 96 96 97 /* translators: opening curly double quote*/97 /* translators: Opening curly double quote. */ 98 98 $opening_quote = _x( '“', 'opening curly double quote' ); 99 /* translators: closing curly double quote*/99 /* translators: Closing curly double quote. */ 100 100 $closing_quote = _x( '”', 'closing curly double quote' ); 101 101 102 /* translators: apostrophe, for example in 'cause or can't*/102 /* translators: Apostrophe, for example in 'cause or can't. */ 103 103 $apos = _x( '’', 'apostrophe' ); 104 104 105 /* translators: prime, for example in 9' (nine feet)*/105 /* translators: Prime, for example in 9' (nine feet). */ 106 106 $prime = _x( '′', 'prime' ); 107 /* translators: double prime, for example in 9" (nine inches)*/107 /* translators: Double prime, for example in 9" (nine inches). */ 108 108 $double_prime = _x( '″', 'double prime' ); 109 109 110 /* translators: opening curly single quote*/110 /* translators: Opening curly single quote. */ 111 111 $opening_single_quote = _x( '‘', 'opening curly single quote' ); 112 /* translators: closing curly single quote*/112 /* translators: Closing curly single quote. */ 113 113 $closing_single_quote = _x( '’', 'closing curly single quote' ); 114 114 115 /* translators: en dash*/115 /* translators: En dash. */ 116 116 $en_dash = _x( '–', 'en dash' ); 117 /* translators: em dash*/117 /* translators: Em dash. */ 118 118 $em_dash = _x( '—', 'em dash' ); 119 119 … … 126 126 $cockneyreplace = array_values( $wp_cockneyreplace ); 127 127 } else { 128 /* translators: This is a comma-separated list of words that defy the syntax of quotations in normal use, 128 /* 129 * translators: This is a comma-separated list of words that defy the syntax of quotations in normal use, 129 130 * for example... 'We do not have enough words yet' ... is a typical quoted phrase. But when we write 130 131 * lines of code 'til we have enough of 'em, then we need to insert apostrophes instead of quotes. … … 3639 3640 $secs = 1; 3640 3641 } 3641 /* translators: Time difference between two dates, in seconds. %s: Number of seconds */3642 /* translators: Time difference between two dates, in seconds. %s: Number of seconds. */ 3642 3643 $since = sprintf( _n( '%s second', '%s seconds', $secs ), $secs ); 3643 3644 } elseif ( $diff < HOUR_IN_SECONDS && $diff >= MINUTE_IN_SECONDS ) { … … 3646 3647 $mins = 1; 3647 3648 } 3648 /* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes */3649 /* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes. */ 3649 3650 $since = sprintf( _n( '%s min', '%s mins', $mins ), $mins ); 3650 3651 } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) { … … 3653 3654 $hours = 1; 3654 3655 } 3655 /* translators: Time difference between two dates, in hours. %s: Number of hours */3656 /* translators: Time difference between two dates, in hours. %s: Number of hours. */ 3656 3657 $since = sprintf( _n( '%s hour', '%s hours', $hours ), $hours ); 3657 3658 } elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) { … … 3660 3661 $days = 1; 3661 3662 } 3662 /* translators: Time difference between two dates, in days. %s: Number of days */3663 /* translators: Time difference between two dates, in days. %s: Number of days. */ 3663 3664 $since = sprintf( _n( '%s day', '%s days', $days ), $days ); 3664 3665 } elseif ( $diff < MONTH_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) { … … 3667 3668 $weeks = 1; 3668 3669 } 3669 /* translators: Time difference between two dates, in weeks. %s: Number of weeks */3670 /* translators: Time difference between two dates, in weeks. %s: Number of weeks. */ 3670 3671 $since = sprintf( _n( '%s week', '%s weeks', $weeks ), $weeks ); 3671 3672 } elseif ( $diff < YEAR_IN_SECONDS && $diff >= MONTH_IN_SECONDS ) { … … 3674 3675 $months = 1; 3675 3676 } 3676 /* translators: Time difference between two dates, in months. %s: Number of months */3677 /* translators: Time difference between two dates, in months. %s: Number of months. */ 3677 3678 $since = sprintf( _n( '%s month', '%s months', $months ), $months ); 3678 3679 } elseif ( $diff >= YEAR_IN_SECONDS ) { … … 3681 3682 $years = 1; 3682 3683 } 3683 /* translators: Time difference between two dates, in years. %s: Number of years */3684 /* translators: Time difference between two dates, in years. %s: Number of years. */ 3684 3685 $since = sprintf( _n( '%s year', '%s years', $years ), $years ); 3685 3686 } … … 4700 4701 if ( 'permalink_structure' === $option && '' !== $value && ! preg_match( '/%[^\/%]+%/', $value ) ) { 4701 4702 $error = sprintf( 4702 /* translators: %s: Documentation URL */4703 /* translators: %s: Documentation URL. */ 4703 4704 __( 'A structure tag is required when using custom permalinks. <a href="%s">Learn more</a>' ), 4704 4705 __( 'https://wordpress.org/support/article/using-permalinks/#choosing-your-permalink-structure' ) … … 4941 4942 'wp_sprintf_l', 4942 4943 array( 4943 /* translators: used to join items in a list with more than 2 items*/4944 /* translators: Used to join items in a list with more than 2 items. */ 4944 4945 'between' => sprintf( __( '%1$s, %2$s' ), '', '' ), 4945 /* translators: used to join last two items in a list with more than 2 times*/4946 /* translators: Used to join last two items in a list with more than 2 times. */ 4946 4947 'between_last_two' => sprintf( __( '%1$s, and %2$s' ), '', '' ), 4947 /* translators: used to join items in a list with only 2 items*/4948 /* translators: Used to join items in a list with only 2 items. */ 4948 4949 'between_only_two' => sprintf( __( '%1$s and %2$s' ), '', '' ), 4949 4950 )
Note: See TracChangeset
for help on using the changeset viewer.