summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-05-21 13:51:47 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-05-21 13:51:47 +0200
commit4065972000133f6da2c80b23a26ba49bd6218302 (patch)
tree63624d0fcbbd94c985cf8891176e50ba951bd6d4 /src
parent916f57f31d9b89e52797996bbd36674e14fc89bb (diff)
downloadweechat-4065972000133f6da2c80b23a26ba49bd6218302.zip
core: fix tests when NLS is disabled
Diffstat (limited to 'src')
-rw-r--r--src/core/weechat.h2
1 files changed, 1 insertions, 1 deletions
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(_) */