From: Jérémie Astor Date: Sun, 20 Dec 2020 16:19:07 +0000 (+0100) Subject: :art: Improve locale (still optionnal) X-Git-Tag: nightly~1087 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c49fa03620cfd91241c19667a12b07538d16e204;p=gwion.git :art: Improve locale (still optionnal) --- diff --git a/src/gwion.c b/src/gwion.c index 6f302bcc..52735794 100644 --- a/src/gwion.c +++ b/src/gwion.c @@ -74,10 +74,12 @@ ANN static m_bool gwion_ok(const Gwion gwion, Arg* arg) { #define LOCALE_INFO INSTALL_PREFIX "/share" ANN m_bool gwion_ini(const Gwion gwion, Arg* arg) { +#ifdef USE_GETTEXT setlocale(LC_ALL, NULL); bindtextdomain (GWION_PACKAGE, LOCALE_INFO); bindtextdomain (GWION_PACKAGE "_util", LOCALE_INFO); bindtextdomain (GWION_PACKAGE "_ast", LOCALE_INFO); +#ifdef USE_GETTEXT gwion->mp = mempool_ini((sizeof(struct VM_Shred_) + SIZEOF_REG + SIZEOF_MEM)); gwion->st = new_symbol_table(gwion->mp, 65347); gwion->ppa = mp_calloc(gwion->mp, PPArg);