aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-17 10:04:37 -0500
committerTed Gould <ted@canonical.com>2009-09-17 10:04:37 -0500
commitc99553f4efc2b2a1a113ed47e8847ead4bf3b619 (patch)
tree26358b19015680f60130c5b52046e37de93008bd /src/messages-service.c
parent6e72241e9c5805bd0f0b1fae1acdb2e938ea850d (diff)
parent40a0102f12f2c355d32394a8480fe953726b65c9 (diff)
downloadayatana-indicator-messages-c99553f4efc2b2a1a113ed47e8847ead4bf3b619.tar.gz
ayatana-indicator-messages-c99553f4efc2b2a1a113ed47e8847ead4bf3b619.tar.bz2
ayatana-indicator-messages-c99553f4efc2b2a1a113ed47e8847ead4bf3b619.zip
Upstream release 0.2.3
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 0ba0deb..e37a721 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -22,6 +22,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <string.h>
#include <locale.h>
+#include <libintl.h>
+#include <config.h>
#include <pango/pango-utils.h>
#include <dbus/dbus-glib-bindings.h>
#include <libindicate/listener.h>
@@ -1220,7 +1222,11 @@ main (int argc, char ** argv)
return 1;
}
- setlocale(LC_ALL,"");
+ /* Setting up i18n and gettext. Apparently, we need
+ all of these. */
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
dbus_interface = message_service_dbus_new();