From 28fde3660a780849d3d426ccac8c28a348a24d04 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Mon, 11 Jan 2016 15:12:21 +0800 Subject: [PATCH] Call setlocale in main function of zeitgeist-daemon It is required to correctly show translated messages on some locales. https://bugs.freedesktop.org/show_bug.cgi?id=93662 --- src/zeitgeist-daemon.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zeitgeist-daemon.vala b/src/zeitgeist-daemon.vala index 51d27a5..8d1f7db 100644 --- a/src/zeitgeist-daemon.vala +++ b/src/zeitgeist-daemon.vala @@ -462,6 +462,8 @@ namespace Zeitgeist Posix.signal (Posix.SIGINT, safe_exit); Posix.signal (Posix.SIGTERM, safe_exit); + Intl.setlocale (LocaleCategory.ALL, ""); + var opt_context = new OptionContext (" - Zeitgeist daemon"); opt_context.add_main_entries (options, null); -- 2.7.0