From bb181e605f02c7c65d4fe2b38da8be75c4be3db4 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 25 Nov 2017 00:20:26 -0500 Subject: main(): Call *textdomain*() and setlocale() iff ENABLE_NLS --- 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, -- cgit v0.9.1