diff options
-rw-r--r-- | src/i18n.h | 9 | ||||
-rw-r--r-- | src/local.mk | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/i18n.h b/src/i18n.h new file mode 100644 index 0000000..d4a8474 --- /dev/null +++ b/src/i18n.h @@ -0,0 +1,9 @@ +/* + * gettext support macros + */ + +#include <glib.h> +#include <glib/gi18n.h> + +#define P_(String) gettext(String) +#define PL_(StringS, StringP, N) ngettext(StringS, StringP, N) diff --git a/src/local.mk b/src/local.mk index e259c4a..ee0be5e 100644 --- a/src/local.mk +++ b/src/local.mk @@ -3,6 +3,7 @@ marquee_SOURCES += \ %reldir%/application.h \ %reldir%/download.c \ %reldir%/download.h \ + %reldir%/i18n.h \ %reldir%/main.c \ %reldir%/notebook.c \ %reldir%/notebook.h \ |