summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-25 00:20:26 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-25 00:20:26 (EST)
commitbb181e605f02c7c65d4fe2b38da8be75c4be3db4 (patch)
tree57020f41f794ff4f544390b6b6a168a1aff83d1b
parent9c81c642379ac4b6d79543bd862c989883638325 (diff)
downloadmarquee-bb181e605f02c7c65d4fe2b38da8be75c4be3db4.zip
marquee-bb181e605f02c7c65d4fe2b38da8be75c4be3db4.tar.gz
marquee-bb181e605f02c7c65d4fe2b38da8be75c4be3db4.tar.bz2
main(): Call *textdomain*() and setlocale() iff ENABLE_NLS
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d07f560..ad06a7e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,10 +59,12 @@ main(int argc, char *argv[])
GError *error;
MqApplication *application;
+#if defined(ENABLE_NLS) && ENABLE_NLS
bindtextdomain(PACKAGE, LOCALEDIR);
bind_textdomain_codeset(PACKAGE, "UTF-8");
textdomain(PACKAGE);
setlocale(LC_ALL, "");
+#endif
error = NULL;
if (G_UNLIKELY(!gtk_init_with_args(&argc, &argv, N_("[URI]"), entries,