diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-12-06 12:01:21 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-12-06 12:04:32 +0100 |
commit | 4053ab0a968ca580edc670536b9d85431e7870fc (patch) | |
tree | 2feb4247064960c3e4b0f27bbcb63dcff9937b55 /src | |
parent | 84fb494bf2da26fb2071d26a3e1a3f0e34d9ba50 (diff) | |
download | ayatana-indicator-notifications-4053ab0a968ca580edc670536b9d85431e7870fc.tar.gz ayatana-indicator-notifications-4053ab0a968ca580edc670536b9d85431e7870fc.tar.bz2 ayatana-indicator-notifications-4053ab0a968ca580edc670536b9d85431e7870fc.zip |
Enable locale support at runtime.
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-notifications.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |