[buoh] Fix internationalization again
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [buoh] Fix internationalization again
- Date: Sat, 2 Feb 2019 18:18:16 +0000 (UTC)
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]