Opened 21 years ago
Closed 21 years ago
#1125 closed defect (bug) (fixed)
__ngettext(); returns an undeclared variable
| Reported by: | MC_incubus | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.5.1 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
http://trac.wordpress.org/changeset/2454