Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (9 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r38944 r39326  
    32183218        if ( $mins <= 1 )
    32193219            $mins = 1;
    3220         /* translators: min=minute */
     3220        /* translators: Time difference between two dates, in minutes (min=minute). 1: Number of minutes */
    32213221        $since = sprintf( _n( '%s min', '%s mins', $mins ), $mins );
    32223222    } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
     
    32243224        if ( $hours <= 1 )
    32253225            $hours = 1;
     3226        /* translators: Time difference between two dates, in hours. 1: Number of hours */
    32263227        $since = sprintf( _n( '%s hour', '%s hours', $hours ), $hours );
    32273228    } elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
     
    32293230        if ( $days <= 1 )
    32303231            $days = 1;
     3232        /* translators: Time difference between two dates, in days. 1: Number of days */
    32313233        $since = sprintf( _n( '%s day', '%s days', $days ), $days );
    32323234    } elseif ( $diff < MONTH_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
     
    32343236        if ( $weeks <= 1 )
    32353237            $weeks = 1;
     3238        /* translators: Time difference between two dates, in weeks. 1: Number of weeks */
    32363239        $since = sprintf( _n( '%s week', '%s weeks', $weeks ), $weeks );
    32373240    } elseif ( $diff < YEAR_IN_SECONDS && $diff >= MONTH_IN_SECONDS ) {
     
    32393242        if ( $months <= 1 )
    32403243            $months = 1;
     3244        /* translators: Time difference between two dates, in months. 1: Number of months */
    32413245        $since = sprintf( _n( '%s month', '%s months', $months ), $months );
    32423246    } elseif ( $diff >= YEAR_IN_SECONDS ) {
     
    32443248        if ( $years <= 1 )
    32453249            $years = 1;
     3250        /* translators: Time difference between two dates, in years. 1: Number of years */
    32463251        $since = sprintf( _n( '%s year', '%s years', $years ), $years );
    32473252    }
Note: See TracChangeset for help on using the changeset viewer.