diff options
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c index fc762980..aa1c0938 100644 --- a/src/core/main.c +++ b/src/core/main.c | |||
@@ -78,6 +78,9 @@ int main(int argc, | |||
78 | int i; | 78 | int i; |
79 | struct GE_Context * ectx; | 79 | struct GE_Context * ectx; |
80 | struct GC_Configuration * cfg; | 80 | struct GC_Configuration * cfg; |
81 | #if ENABLE_NLS | ||
82 | char * path; | ||
83 | #endif | ||
81 | 84 | ||
82 | #ifdef WINDOWS | 85 | #ifdef WINDOWS |
83 | SetCursor(LoadCursor(NULL, IDC_APPSTARTING)); | 86 | SetCursor(LoadCursor(NULL, IDC_APPSTARTING)); |
@@ -102,7 +105,10 @@ int main(int argc, | |||
102 | #endif | 105 | #endif |
103 | 106 | ||
104 | #if ENABLE_NLS | 107 | #if ENABLE_NLS |
105 | BINDTEXTDOMAIN("gnunet-gtk", PACKAGE_LOCALE_DIR); | 108 | setlocale (LC_ALL, ""); |
109 | path = os_get_installation_path(IPK_LOCALEDIR); | ||
110 | BINDTEXTDOMAIN("gnunet-gtk", path); | ||
111 | FREE(path); | ||
106 | textdomain("gnunet-gtk"); | 112 | textdomain("gnunet-gtk"); |
107 | bind_textdomain_codeset("GNUnet", "UTF-8"); | 113 | bind_textdomain_codeset("GNUnet", "UTF-8"); |
108 | bind_textdomain_codeset("gnunet-gtk", "UTF-8"); | 114 | bind_textdomain_codeset("gnunet-gtk", "UTF-8"); |