diff options
author | Burt P <pburt0@gmail.com> | 2017-07-11 22:37:18 -0500 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-12 19:38:41 -0700 |
commit | 223f339eedaec9a97de59305d58f4ff9dd7df225 (patch) | |
tree | 3173d4af38c10e201230aca69a07f71621910e78 /includes/hardinfo.h | |
parent | f1e867b56bf6148c08734d16f1f16ff577a7577d (diff) |
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 <pburt0@gmail.com>
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r-- | includes/hardinfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <libintl.h> #include <locale.h> -#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, |