[gnome-settings-daemon] common: call setlocale
- From: Sebastien Bacher <sbacher src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: call setlocale
- Date: Tue, 29 Aug 2017 15:26:49 +0000 (UTC)
commit 9fddecc4641709308dec0300a778a32a2b17aafd
Author: Sebastien Bacher <seb128 ubuntu com>
Date: Tue Aug 29 16:16:46 2017 +0200
common: call setlocale
Without that the notifications are displayed untranslated
https://bugzilla.gnome.org/show_bug.cgi?id=786978
plugins/common/daemon-skeleton-gtk.h | 1 +
plugins/common/daemon-skeleton.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/daemon-skeleton-gtk.h b/plugins/common/daemon-skeleton-gtk.h
index cdf15d8..5da2157 100644
--- a/plugins/common/daemon-skeleton-gtk.h
+++ b/plugins/common/daemon-skeleton-gtk.h
@@ -193,6 +193,7 @@ main (int argc, char **argv)
bindtextdomain (GETTEXT_PACKAGE, GNOME_SETTINGS_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+ setlocale (LC_ALL, "");
set_empty_gtk_theme (TRUE);
diff --git a/plugins/common/daemon-skeleton.h b/plugins/common/daemon-skeleton.h
index f019774..f66a2e4 100644
--- a/plugins/common/daemon-skeleton.h
+++ b/plugins/common/daemon-skeleton.h
@@ -171,6 +171,7 @@ main (int argc, char **argv)
bindtextdomain (GETTEXT_PACKAGE, GNOME_SETTINGS_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+ setlocale (LC_ALL, "");
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]