Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1125 closed defect (bug) (fixed)

__ngettext(); returns an undeclared variable

Reported by: mc_incubus's profile MC_incubus Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: General Keywords:
Focuses: Cc:



function ngettext($single, $plural, $number, $domain = 'default') {

global $l10n;

if (isset($l10n[$domain])) {

return $l10n[$domain]->ngettext($single, $plural, $number);

} else {

return $text;



$text is not defined.

Also, I cannot get the function to return singular/plural form that I specify. I guess it just sees that I'm not using localization and gives up.

Change History (4)

#1 @MC_incubus
19 years ago

  • Patch set to No

#3 @MC_incubus
19 years ago

  • Resolution changed from 10 to 20


#4 @ryan
19 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.