mirror of
https://github.com/allinurl/goaccess.git
synced 2025-06-18 14:35:34 -04:00
Merge pull request #2479 from assistcontrol/master
Fix build with --disable-nls (fixes #2477)
This commit is contained in:
commit
30ad1d0d67
@ -1300,8 +1300,10 @@ set_locale (void) {
|
||||
char *loc_ctype;
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
#ifdef ENABLE_NLS
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
#endif
|
||||
|
||||
loc_ctype = getenv ("LC_CTYPE");
|
||||
if (loc_ctype != NULL)
|
||||
|
@ -30,9 +30,14 @@
|
||||
#ifndef LABELS_H_INCLUDED
|
||||
#define LABELS_H_INCLUDED
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
#include <libintl.h>
|
||||
|
||||
#define _(String) dgettext (PACKAGE , String)
|
||||
#else
|
||||
#define _(String) (String)
|
||||
#endif
|
||||
|
||||
#define gettext_noop(String) String
|
||||
#define N_(String) gettext_noop (String)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user