Make WordPress Core


Ignore:
Timestamp:
02/20/2009 07:35:16 PM (13 years ago)
Author:
ryan
Message:

Use _n(). Props nbachiyski. fixes #9111

File:
1 edited

Legend:

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

    r10562 r10606  
    14741474            $mins = 1;
    14751475        }
    1476         $since = sprintf(__ngettext('%s min', '%s mins', $mins), $mins);
     1476        $since = sprintf(_n('%s min', '%s mins', $mins), $mins);
    14771477    } else if (($diff <= 86400) && ($diff > 3600)) {
    14781478        $hours = round($diff / 3600);
     
    14801480            $hours = 1;
    14811481        }
    1482         $since = sprintf(__ngettext('%s hour', '%s hours', $hours), $hours);
     1482        $since = sprintf(_n('%s hour', '%s hours', $hours), $hours);
    14831483    } elseif ($diff >= 86400) {
    14841484        $days = round($diff / 86400);
     
    14861486            $days = 1;
    14871487        }
    1488         $since = sprintf(__ngettext('%s day', '%s days', $days), $days);
     1488        $since = sprintf(_n('%s day', '%s days', $days), $days);
    14891489    }
    14901490    return $since;
Note: See TracChangeset for help on using the changeset viewer.