ports/sysutils/goaccess/files/patch-src_labels.h
Adam Weinberger 5064a2cad4 Update goaccess to 1.3.
With this release:
- The config file has moved from PREFIX/etc to ETCDIR
- The web assets are no longer installed separately (they
  are compiled into the binary so this should not affect
  end-users)
- NLS support (and OPTION) added

pkg-message and UPDATING entry added for conf file location
change.

Changes: https://goaccess.io/release-notes

PR:		234047
Approved by:	maintainer (sbz)
2019-01-03 21:08:51 +00:00

20 lines
487 B
C

--- src/labels.h.orig 2018-11-23 02:16:45 UTC
+++ src/labels.h
@@ -30,11 +30,17 @@
#ifndef LABELS_H_INCLUDED
#define LABELS_H_INCLUDED
+#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) dgettext (PACKAGE , String)
#define gettext_noop(String) String
#define N_(String) gettext_noop (String)
+#else
+#define _(String) String
+#define gettext_noop(String) String
+#define N_(String) String
+#endif
/* global lang attribute */
#define DOC_LANG _( "en")