diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-30 12:33:55 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-30 12:34:54 +0200 |
commit | 82d86ad7c741c3048c0bccdc18f52576708602a4 (patch) | |
tree | 3c426e7a3cf111f000d669aeba09268c3d4d4300 /src/calcurse.h | |
parent | 681a63ea76fff55d24820b03ef16793a33a37669 (diff) | |
download | calcurse-82d86ad7c741c3048c0bccdc18f52576708602a4.zip |
Fix compilation with NLS disabled
* src/utils.c: Only call setlocale() if NLS is enabled.
* src/calcurse.h: Define a fallback macro ngettext() if NLS is disabled.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 9f01f48..7259dd1 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -76,6 +76,7 @@ #define gettext(String) (String) #define dgettext(String) (String) #define dcgettext(String) (String) +#define ngettext(String1,String2,n) ((n) == 1 ? (String1) : (String2)) #define bindtextdomain(String) (String) #define bind_textdomain_codeset(Domain,Codeset) (Codeset) #endif /* ENABLE_NLS */ |