From c8b02c4f0c217c756ad00b4a3f19db931880ae67 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Thu, 13 Nov 2025 19:53:43 +0100 Subject: First attempt at using gettext --- src/core/init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/core/init.c') diff --git a/src/core/init.c b/src/core/init.c index 9a28a13..7f50935 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -6,6 +6,7 @@ #include "defs.h" #include "fns.h" #include "types.h" +#include "nls.h" static void * default_alloc(void *aux, size_t size) @@ -44,6 +45,9 @@ aplwc_init_fns(APLWCFunctions *fns) APLWC * aplwc_init(APLWCFunctions *fns, void *aux) { + char *domdir = bindtextdomain(PACKAGE, LOCALEDIR); + char *dom = textdomain(PACKAGE); + size_t size = sizeof(APLWC) + (APLWC_ALIGNMENT - 1) + WS_START_SIZE + (WS_ALIGNMENT - 1); intptr_t base = (intptr_t)fns->alloc(aux, size); intptr_t aligned; @@ -63,13 +67,13 @@ aplwc_init(APLWCFunctions *fns, void *aux) aplwc->ws = (void*)aligned; aplwc->ws_size = size - (aligned - base); - DEBUG("initialized"); + DEBUG(_("initialized")); return aplwc; } void aplwc_exit(APLWC *aplwc) { - DEBUG("exiting"); + DEBUG(_("exiting")); CALLFN(free, aplwc->base); } -- cgit v1.2.3