Changeset 3124056
- Timestamp:
- 07/23/2024 03:56:53 PM (21 months ago)
- File:
-
- 1 edited
-
rotatingtweets/trunk/rotatingtweets.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rotatingtweets/trunk/rotatingtweets.php
r3123942 r3124056 409 409 if($n < (60*60)) { $minutes = round($n/60); 410 410 if($n == 1): 411 return __('about a minute ago' );411 return __('about a minute ago','rotatingtweets'); 412 412 else: 413 413 /* translators: %d is replaced with the number of minutes since the tweet was posted */ … … 418 418 if($n < (60*60*16)) { $hours = round($n/(60*60)); 419 419 if($hours == 1): 420 return __('about an hour ago' );420 return __('about an hour ago','rotatingtweets'); 421 421 else: 422 422 /* translators: %d is replaced with the number of hours since the tweet was posted */ … … 428 428 if($n < (60*60*24)) { $hours = round($n/(60*60)); 429 429 if($hours == 1): 430 return __('about an hour ago' );430 return __('about an hour ago','rotatingtweets'); 431 431 else: 432 432 /* translators: %d is replaced with the number of hours since the tweet was posted */ … … 436 436 if($n < (60*60*24*6.5)) { $days = round($n/(60*60*24)); 437 437 if($days ==1): 438 return __('about a day ago' );438 return __('about a day ago','rotatingtweets'); 439 439 else: 440 440 /* translators: %d is replaced with the number of days since the tweet was posted */ … … 445 445 if($n < (60*60*24*7*3.5)) { $weeks = round($n/(60*60*24*7)); 446 446 if($weeks==1): 447 return __('about a week ago' );447 return __('about a week ago','rotatingtweets'); 448 448 else: 449 449 /* translators: %d is replaced with the number of weeks since the tweet was posted */ … … 455 455 if($n < (60*60*24*7*4*11.5)) { $months = round($n/(60*60*24*7*4)) ; 456 456 if($months==1): 457 return __('about a month ago' );457 return __('about a month ago','rotatingtweets'); 458 458 else: 459 459 /* translators: %d is replaced with the number of months since the tweet was posted */ … … 464 464 if($n >= (60*60*24*7*4*12)){$years=round($n/(60*60*24*7*52)) ; 465 465 if($years==1): 466 return __('about a year ago' );466 return __('about a year ago','rotatingtweets'); 467 467 else: 468 468 /* translators: %d is replaced with the number of years since the tweet was posted */
Note: See TracChangeset
for help on using the changeset viewer.