aboutsummaryrefslogtreecommitdiff
path: root/src/lib/nls.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 22:37:19 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 22:37:19 +0000
commit4bd2dd5f82dceecd597b5829bf43b2dda9ebb505 (patch)
treeeefec7343dcafac33c1f5bd36cef628229211741 /src/lib/nls.c
parent91e7c712a11e09ad4849f6272fd79abe3505dec2 (diff)
downloadgnunet-gtk-4bd2dd5f82dceecd597b5829bf43b2dda9ebb505.tar.gz
gnunet-gtk-4bd2dd5f82dceecd597b5829bf43b2dda9ebb505.zip
indent
Diffstat (limited to 'src/lib/nls.c')
-rw-r--r--src/lib/nls.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/nls.c b/src/lib/nls.c
index 96e44a99..a040f8e5 100644
--- a/src/lib/nls.c
+++ b/src/lib/nls.c
@@ -40,10 +40,8 @@ GNUNET_GTK_setup_nls ()
40 char *path; 40 char *path;
41 41
42 setlocale (LC_ALL, ""); 42 setlocale (LC_ALL, "");
43 GNUNET_asprintf (&path, 43 GNUNET_asprintf (&path, "%s/%s/locale/", GNUNET_GTK_get_data_dir (),
44 "%s/%s/locale/", 44 PACKAGE_NAME);
45 GNUNET_GTK_get_data_dir (),
46 PACKAGE_NAME);
47 bindtextdomain ("gnunet-gtk", path); 45 bindtextdomain ("gnunet-gtk", path);
48 textdomain ("gnunet-gtk"); 46 textdomain ("gnunet-gtk");
49 bind_textdomain_codeset ("GNUnet", "UTF-8"); 47 bind_textdomain_codeset ("GNUnet", "UTF-8");
@@ -51,7 +49,7 @@ GNUNET_GTK_setup_nls ()
51 GNUNET_free (path); 49 GNUNET_free (path);
52#else 50#else
53 fprintf (stderr, 51 fprintf (stderr,
54 "WARNING: gnunet-gtk was compiled without i18n support (did CFLAGS contain -Werror?).\n"); 52 "WARNING: gnunet-gtk was compiled without i18n support (did CFLAGS contain -Werror?).\n");
55#endif 53#endif
56} 54}
57 55