Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #28502, comment 23


Ignore:
Timestamp:
04/10/2015 10:55:14 PM (10 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28502, comment 23

    v3 v4  
    11Basically, `_n()` should only be used for the same string with different numbers, not for different strings.
    22
    3 `_n( '%d item', '%d items', $number )` is correct. `_n( 'One item', '%d items', $number )` is *kinda* correct, but there are some issues:
     3`_n( '%d item', '%d items', $number )` is correct.
     4
     5`_n( 'One item', '%d items', $number )` is *kinda* correct, but there are some issues:
    46
    57* `'One item'` is not guaranteed to be used for exactly one item, but we treat it like it is.