Skip to:
Content
Pages
Categories
Search
Top
Bottom

multilingual timestamps: "%s minutes"…

  • Profile photo of mikeburns
    mikeburns
    Participant

    @mikeburns

    Just a quick sanity check. I’ve been running 1.7 for a while, and recently updated to 1.8 and it seems that this bit of code in bp-core-functions.php is causing some problems (mainly because the i18n tags aren’t in the .po file) @line 652:

    
    			// Set output var
    			switch ( $seconds ) {
    				case YEAR_IN_SECONDS :
    					$output = sprintf( _n( '%s year',   '%s years',   $count, 'buddypress' ), $count );
    					break;
    				case 30 * DAY_IN_SECONDS :
    					$output = sprintf( _n( '%s month',  '%s months',  $count, 'buddypress' ), $count );
    					break;
    				case WEEK_IN_SECONDS :
    					$output = sprintf( _n( '%s week',   '%s weeks',   $count, 'buddypress' ), $count );
    					break;
    				case DAY_IN_SECONDS :
    					$output = sprintf( _n( '%s day',    '%s days',    $count, 'buddypress' ), $count );
    					break;
    				case HOUR_IN_SECONDS :
    					$output = sprintf( _n( '%s hour',   '%s hours',   $count, 'buddypress' ), $count );
    					break;
    				case MINUTE_IN_SECONDS :
    					$output = sprintf( _n( '%s minute', '%s minutes', $count, 'buddypress' ), $count );
    					break;
    				default:
    					$output = sprintf( _n( '%s second', '%s seconds', $count, 'buddypress' ), $count );
    			}
    

    So – either I messed something up somewhere else, or perhaps these i18n tags are new for this version.

    Thanks in advance!
    Mike

The topic ‘multilingual timestamps: "%s minutes"…’ is closed to new replies.