summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-20 13:54:43 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-20 13:54:43 (EST)
commit3c485c6535b350cc5e1ff2421107220f77ed3e5e (patch)
tree0d137b137b014f425cfd098994f052db1215ec26 /src
parentf3ddb2c141c268e2f5e2074863fcee2ac9676abf (diff)
downloadmarquee-3c485c6535b350cc5e1ff2421107220f77ed3e5e.zip
marquee-3c485c6535b350cc5e1ff2421107220f77ed3e5e.tar.gz
marquee-3c485c6535b350cc5e1ff2421107220f77ed3e5e.tar.bz2
main(): Set text domain and locale
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index bd9e7ef..d07f560 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,6 +59,11 @@ main(int argc, char *argv[])
GError *error;
MqApplication *application;
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset(PACKAGE, "UTF-8");
+ textdomain(PACKAGE);
+ setlocale(LC_ALL, "");
+
error = NULL;
if (G_UNLIKELY(!gtk_init_with_args(&argc, &argv, N_("[URI]"), entries,
NULL, &error))) {