Make WordPress Core


Ignore:
Timestamp:
03/17/2005 06:15:18 PM (20 years ago)
Author:
ryan
Message:

Fix fallback case for ngettext(). http://mosquito.wordpress.org/view.php?id=1125

File:
1 edited

Legend:

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

    r2395 r2454  
    5555        return $l10n[$domain]->ngettext($single, $plural, $number);
    5656    } else {
    57         return $text;
     57        if ($number != 1)
     58            return $plural;
     59        else
     60            return $single;
    5861    }
    5962}
Note: See TracChangeset for help on using the changeset viewer.