3 * SquirrelMail internal ngettext functions
5 * Uses php-gettext classes
7 * Copyright (c) 2004-2005 The SquirrelMail Project Team
8 * Licensed under the GNU GPL. For full terms see the file COPYING.
10 * @copyright (c) 2004-2005 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public Licens
12 * @link http://www.php.net/gettext Original php gettext manual
13 * @link http://savannah.nongnu.org/projects/php-gettext php-gettext classes
15 * @package squirrelmail
21 * internal ngettext wrapper.
23 * provides ngettext support
25 * @link http://www.php.net/function.ngettext
26 * @param string $single English string, singular form
27 * @param string $plural English string, plural form
28 * @param integer $number number that shows used quantity
29 * @return string translated string
31 function ngettext($single, $plural, $number) {
32 global $l10n, $gettext_domain;
33 if ($l10n[$gettext_domain]->error
==1) return $single;
34 return $l10n[$gettext_domain]->ngettext($single, $plural, $number);