diff options
Diffstat (limited to 'src/util/program.c')
-rw-r--r-- | src/util/program.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/util/program.c b/src/util/program.c index 1462a03a8..73beb8d57 100644 --- a/src/util/program.c +++ b/src/util/program.c | |||
@@ -200,14 +200,19 @@ GNUNET_PROGRAM_run2 (int argc, | |||
200 | cc.cfg = cfg = GNUNET_CONFIGURATION_create (); | 200 | cc.cfg = cfg = GNUNET_CONFIGURATION_create (); |
201 | /* prepare */ | 201 | /* prepare */ |
202 | #if ENABLE_NLS | 202 | #if ENABLE_NLS |
203 | setlocale (LC_ALL, ""); | 203 | if (NULL != pd->gettext_domain) |
204 | path = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LOCALEDIR); | 204 | { |
205 | if (NULL != path) | 205 | setlocale (LC_ALL, ""); |
206 | { | 206 | path = (NULL == pd->gettext_path) |
207 | BINDTEXTDOMAIN ("GNUnet", path); | 207 | ? GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LOCALEDIR) |
208 | GNUNET_free (path); | 208 | : GNUNET_strdup (pd->gettext_path); |
209 | } | 209 | if (NULL != path) |
210 | textdomain ("GNUnet"); | 210 | { |
211 | BINDTEXTDOMAIN (pd->gettext_domain, path); | ||
212 | GNUNET_free (path); | ||
213 | } | ||
214 | textdomain (pd->gettext_domain); | ||
215 | } | ||
211 | #endif | 216 | #endif |
212 | cnt = 0; | 217 | cnt = 0; |
213 | while (NULL != options[cnt].name) | 218 | while (NULL != options[cnt].name) |