From 5d2c2b27a6323e2666378b986129b2a7c2c39e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 6 Feb 2022 16:04:24 +0100 Subject: New upstream version 5.2.2GA --- app/bin/i18n.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'app/bin/i18n.c') diff --git a/app/bin/i18n.c b/app/bin/i18n.c index a8ed631..e6abe70 100644 --- a/app/bin/i18n.c +++ b/app/bin/i18n.c @@ -20,7 +20,6 @@ */ #include -#include #include #include "i18n.h" @@ -43,19 +42,11 @@ void InitGettext( void ) setlocale(LC_ALL, ""); -#ifdef WINDOWS // build the correct directory path strcpy(directory, wGetAppLibDir()); strcat( directory, "/../locale" ); +#ifdef WINDOWS _fullpath( directory, directory, 2048 ); -#else - #ifdef XTRKCAD_CMAKE_BUILD - strcpy(directory, XTRKCAD_INSTALL_PREFIX); - strcat(directory, "/share"); - #else - strcpy(directory, wGetAppLibDir()); - #endif - strcat(directory, "/locale"); #endif // initialize gettext bindtextdomain(XTRKCAD_PACKAGE, directory); -- cgit v1.2.3