aboutsummaryrefslogtreecommitdiff
path: root/includes/hardinfo.h
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-15 01:29:47 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-19 07:20:33 -0700
commitd42f694add9bcfca56a5d489c5f8f179595b118e (patch)
tree1a7af829b497ef0191600a0be39df5fde342a5f6 /includes/hardinfo.h
parent6ec5d0b90324367399d03a972f8b6a0f1bc804d5 (diff)
Support for pgettext()
Attempt adding support for pgettext without the bulk of standard gettext.h Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r--includes/hardinfo.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/hardinfo.h b/includes/hardinfo.h
index cef49489..598d7717 100644
--- a/includes/hardinfo.h
+++ b/includes/hardinfo.h
@@ -23,12 +23,7 @@
#include "config.h"
#include "shell.h"
#include "vendor.h"
-#include <libintl.h>
-#include <locale.h>
-#define _(STRING) gettext(STRING)
-#define N_(STRING) (STRING)
-#define C_(CTX, STRING) pgettext(CTX, STRING)
-#define NC_(CTX, STRING) (STRING)
+#include "gettext.h"
#ifndef LOCALEDIR
#define LOCALEDIR "/usr/share/locale"