diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:57 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:57 +0100 |
commit | 59dccf358523dfc7679d1d8c120452a71e42243c (patch) | |
tree | f0f3cc006e8157d6bd699bd644b7dd7b35387ac2 /app/bin/i18n.c | |
parent | fd6639655b399a79fb72f494786a4f57da9c90e7 (diff) | |
parent | d0ca838c7ab297036b4a7c45351761a48fe05efd (diff) |
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'app/bin/i18n.c')
-rw-r--r-- | app/bin/i18n.c | 11 |
1 files changed, 1 insertions, 10 deletions
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 <locale.h> -#include <stdio.h> #include <stdlib.h> #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); |