summaryrefslogtreecommitdiff
path: root/app/bin/i18n.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2022-02-06 16:04:24 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2022-02-06 16:04:24 +0100
commit5d2c2b27a6323e2666378b986129b2a7c2c39e5c (patch)
treece8982b6c0111f79791068de2c2d4c6ce3138a49 /app/bin/i18n.c
parentb623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff)
New upstream version 5.2.2GAupstream/5.2.2GA
Diffstat (limited to 'app/bin/i18n.c')
-rw-r--r--app/bin/i18n.c11
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);