mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-24 04:15:57 +00:00
First attempt at i18n using gettext
This commit is contained in:
@@ -50,6 +50,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* i18n */
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
#define _(STRING) gettext(STRING)
|
||||
|
||||
/* Helpers to cast away char pointer signedness */
|
||||
#define ustrlen(source) strlen((const char *) (source))
|
||||
#define ustrcpy(target, source) strcpy((char *) (target), (const char *) (source))
|
||||
|
||||
Reference in New Issue
Block a user