Changeset 12588 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 03/28/2020 01:35:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r12569 r12588 1186 1186 * @param string $value String representing the time since the older date. 1187 1187 */ 1188 $ago_text = apply_filters( 'bp_core_time_since_ago_text', __( '%s ago', 'buddypress' ) ); 1188 $ago_text = apply_filters( 1189 'bp_core_time_since_ago_text', 1190 /* translators: %s: the human time diff. */ 1191 __( '%s ago', 'buddypress' ) 1192 ); 1189 1193 1190 1194 // Array of time period chunks. … … 1247 1251 switch ( $seconds ) { 1248 1252 case YEAR_IN_SECONDS : 1253 /* translators: %s: the number of years. */ 1249 1254 $output = sprintf( _n( '%s year', '%s years', $count, 'buddypress' ), $count ); 1250 1255 break; 1251 1256 case 30 * DAY_IN_SECONDS : 1257 /* translators: %s: the number of months. */ 1252 1258 $output = sprintf( _n( '%s month', '%s months', $count, 'buddypress' ), $count ); 1253 1259 break; 1254 1260 case WEEK_IN_SECONDS : 1261 /* translators: %s: the number of weeks. */ 1255 1262 $output = sprintf( _n( '%s week', '%s weeks', $count, 'buddypress' ), $count ); 1256 1263 break; 1257 1264 case DAY_IN_SECONDS : 1265 /* translators: %s: the number of days. */ 1258 1266 $output = sprintf( _n( '%s day', '%s days', $count, 'buddypress' ), $count ); 1259 1267 break; 1260 1268 case HOUR_IN_SECONDS : 1269 /* translators: %s: the number of hours. */ 1261 1270 $output = sprintf( _n( '%s hour', '%s hours', $count, 'buddypress' ), $count ); 1262 1271 break; 1263 1272 case MINUTE_IN_SECONDS : 1273 /* translators: %s: the number of minutes. */ 1264 1274 $output = sprintf( _n( '%s minute', '%s minutes', $count, 'buddypress' ), $count ); 1265 1275 break; 1266 1276 default: 1277 /* translators: %s: the number of seconds. */ 1267 1278 $output = sprintf( _n( '%s second', '%s seconds', $count, 'buddypress' ), $count ); 1268 1279 } … … 1284 1295 switch ( $seconds2 ) { 1285 1296 case 30 * DAY_IN_SECONDS : 1297 /* translators: %s: the number of months. */ 1286 1298 $output .= sprintf( _n( '%s month', '%s months', $count2, 'buddypress' ), $count2 ); 1287 1299 break; 1288 1300 case WEEK_IN_SECONDS : 1301 /* translators: %s: the number of weeks. */ 1289 1302 $output .= sprintf( _n( '%s week', '%s weeks', $count2, 'buddypress' ), $count2 ); 1290 1303 break; 1291 1304 case DAY_IN_SECONDS : 1305 /* translators: %s: the number of days. */ 1292 1306 $output .= sprintf( _n( '%s day', '%s days', $count2, 'buddypress' ), $count2 ); 1293 1307 break; 1294 1308 case HOUR_IN_SECONDS : 1309 /* translators: %s: the number of hours. */ 1295 1310 $output .= sprintf( _n( '%s hour', '%s hours', $count2, 'buddypress' ), $count2 ); 1296 1311 break; 1297 1312 case MINUTE_IN_SECONDS : 1313 /* translators: %s: the number of minutes. */ 1298 1314 $output .= sprintf( _n( '%s minute', '%s minutes', $count2, 'buddypress' ), $count2 ); 1299 1315 break; 1300 1316 default: 1317 /* translators: %s: the number of seconds. */ 1301 1318 $output .= sprintf( _n( '%s second', '%s seconds', $count2, 'buddypress' ), $count2 ); 1302 1319 } … … 3250 3267 */ 3251 3268 function bp_email_get_appearance_settings() { 3252 /* translators: This is the copyright text for email footers. 1. Copyright year, 2. Site name */3253 3269 $footer_text = array( 3254 3270 sprintf( 3255 _x( '© %1$s %2$s', 'email', 'buddypress' ), 3271 /* translators: 1. Copyright year, 2. Site name */ 3272 _x( '© %1$s %2$s', 'copyright text for email footers', 'buddypress' ), 3256 3273 date_i18n( 'Y' ), 3257 3274 bp_get_option( 'blogname' )
Note: See TracChangeset
for help on using the changeset viewer.