PHP's gettext extension
| From: | Rudi Benkovič | Date: | Tue, 15 May 2001 18:21:49 +0000 |
| Subject: | PHP's gettext extension | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55357@lists.php.net to get a copy of this message | ||
Hi,
Now since gettext 0.10.36, gettext has support for plural translations
(functions ngettext, dcngettext,...). Could some hack this into PHP?
I don't know much 'bout C (or is it C++? :) though I have currently managed to
hack together dncgettext, but the ngettext just doesn't like me - libint.h has
at first the correct definition (three parameters), but later on in some #ifdef
__OPTIMIZE__ there's a ngettext macro that accepts only two parameters - and the
second one only 'works', but it is broken - later on it reports that the call to
dcngettext has too few arguments. I don't get it :) Maby some stupid RedHat
folks have hacked this up (using Rawhide RPM).
Could someone pleeease do this? It would be great! (or if some explains me about
ngettext macro, I can do it :)
--
Rudi