aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-16 09:07:14 -0500
committerTed Gould <ted@canonical.com>2009-09-16 09:07:14 -0500
commitddff85ec43142d492143f6a914217de1df092b8b (patch)
tree719c6662e22df88314b84d99133185d2220c4064 /src
parenta30c0ed9436d96f59dab24c58e63a45a40e91628 (diff)
parent62a047790465aaee453f1cb1cbd9042762f0486b (diff)
downloadayatana-indicator-messages-ddff85ec43142d492143f6a914217de1df092b8b.tar.gz
ayatana-indicator-messages-ddff85ec43142d492143f6a914217de1df092b8b.tar.bz2
ayatana-indicator-messages-ddff85ec43142d492143f6a914217de1df092b8b.zip
Merging in i18n branch to add i18n.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 575de8e..e37a721 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -21,6 +21,9 @@ 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>
@@ -1219,6 +1222,12 @@ main (int argc, char ** argv)
return 1;
}
+ /* 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();
listener = indicate_listener_ref_default();