From 4065972000133f6da2c80b23a26ba49bd6218302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 21 May 2021 13:51:47 +0200 Subject: [PATCH] core: fix tests when NLS is disabled --- src/core/weechat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/weechat.h b/src/core/weechat.h index e47266c29..4d6724df3 100644 --- a/src/core/weechat.h +++ b/src/core/weechat.h @@ -48,7 +48,7 @@ #endif /* defined(ENABLE_NLS) && !defined(_) */ #if !defined(_) #define _(string) (string) - #define NG_(single,plural,number) (plural) + #define NG_(single,plural,number) ((number == 1) ? single : plural) #define N_(string) (string) #define gettext(string) (string) #endif /* !defined(_) */