From 223f339eedaec9a97de59305d58f4ff9dd7df225 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 11 Jul 2017 22:37:18 -0500 Subject: Fixup translation support * Use `bash updatepo.sh` instead of `make pot`. `make pot` will cause absolute paths to appear in hardinfo.pot of whomever last ran it. * C_() and NC_() support added for contexts Signed-off-by: Burt P --- includes/hardinfo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 70329ac7..5728e711 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -25,8 +25,10 @@ #include "vendor.h" #include #include -#define _(STRING) gettext(STRING) +#define _(STRING) gettext(STRING) #define N_(STRING) (STRING) +#define C_(CTX, STRING) pgettext(CTX, STRING) +#define NC_(CTX, STRING) (STRING) typedef enum { MODULE_FLAG_NONE = 0, -- cgit v1.2.3