[buoh] Fix internationalization again



commit 250517872afadce8a3a53e641c00a7e5b7e71edd
Author: Jan Tojnar <jtojnar gmail com>
Date:   Sat Feb 2 19:15:45 2019 +0100

    Fix internationalization again
    
    GTK+ only calls `setlocale (LC_ALL, "")`, not any other gettext calls.

 src/main.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index 47ba1ab..c591472 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,6 +31,10 @@ main (int argc, char *argv[])
         BuohApplication *buoh;
         gint status;
 
+        bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
+        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+        textdomain (GETTEXT_PACKAGE);
+
         buoh = buoh_application_new ();
 
         status = g_application_run (G_APPLICATION (buoh), argc, argv);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]