Opened 20 years ago
Closed 20 years ago
#1125 closed defect (bug) (fixed)
__ngettext(); returns an undeclared variable
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.5.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Observe:
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)
Note: See
TracTickets for help on using
tickets.
http://trac.wordpress.org/changeset/2454