Adjust ngettext default.

This commit is contained in:
Akim Demaille
2001-11-12 10:11:49 +00:00
parent b8b4a730a0
commit 76e734e5ed
2 changed files with 4 additions and 2 deletions

View File

@@ -4,7 +4,8 @@
* config/config.guess, config/config.sub, po/*.po: Update.
* src/system.h (ngettext): Now that we use ngettext, be sure to
provide a default definition when NLS are not used.
provide a default definition when NLS are not used that takes care
of the cardinality.
2001-11-12 Akim Demaille <akim@epita.fr>

View File

@@ -131,7 +131,8 @@ size_t strnlen PARAMS ((const char *s, size_t maxlen));
# undef textdomain
# define textdomain(Domain)
# undef ngettext
# define ngettext(Singular, Plural, Num) Plural
# define ngettext(Singular, Plural, Number) \
((Number == 1) ? Singular : Plural)
# define _(Text) Text
#endif
#define N_(Text) Text