From 4053ab0a968ca580edc670536b9d85431e7870fc Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 6 Dec 2017 12:01:21 +0100 Subject: Enable locale support at runtime. --- src/indicator-notifications.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c index b9a123d..0655445 100644 --- a/src/indicator-notifications.c +++ b/src/indicator-notifications.c @@ -141,6 +141,10 @@ indicator_notifications_class_init(IndicatorNotificationsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + setlocale(LC_ALL, ""); + bindtextdomain( GETTEXT_PACKAGE, LOCALEDIR ); + textdomain( GETTEXT_PACKAGE ); + g_type_class_add_private(klass, sizeof(IndicatorNotificationsPrivate)); object_class->dispose = indicator_notifications_dispose; -- cgit v1.2.3