[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documentation of ngettext
From: |
Bruno Haible |
Subject: |
Re: Documentation of ngettext |
Date: |
Mon, 7 Jan 2002 12:14:41 +0100 (CET) |
Akim Demaille writes:
> | > #ifdef ENABLE_NLS
> | > # include <libintl.h>
> | > # define _(Text) gettext (Text)
> | > #else
> | > # undef bindtextdomain
> | > # define bindtextdomain(Domain, Directory)
> | > # undef textdomain
> | > # define textdomain(Domain)
> | > # undef ngettext
> | > # define ngettext(Singular, Plural, Number) \
> | > ((Number == 1) ? Singular : Plural)
> | > # define _(Text) Text
> | > #endif
> | > #define N_(Text) Text
> | >
> | > to work properly.
> |
> | You get all this in a single line through #include "libgettext.h",
> | using the libgettext.h from gettext-0.10.40.
>
> Hey! That header is great! Thanks for pointing this out. Then
> consider my suggestion is documenting it, and NEWSing it too.
It will be documented in gettext-0.11, under the name "gettext.h".
Thanks for the suggestion.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Documentation of ngettext,
Bruno Haible <=