aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-15 16:02:48 -0500
committerTed Gould <ted@canonical.com>2009-09-15 16:02:48 -0500
commitfe35fc4c2c9ea545ba1086781b3f07d48d60fc46 (patch)
treed7ae6299c0a2d7e7d19f1bd5de3ab43c79048990
parent7587fb13ecb70a8a2d5eb6965197572e50fbd5c8 (diff)
downloadayatana-indicator-messages-fe35fc4c2c9ea545ba1086781b3f07d48d60fc46.tar.gz
ayatana-indicator-messages-fe35fc4c2c9ea545ba1086781b3f07d48d60fc46.tar.bz2
ayatana-indicator-messages-fe35fc4c2c9ea545ba1086781b3f07d48d60fc46.zip
Setting up the gettext stuff.
-rw-r--r--src/messages-service.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 0ba0deb..4911124 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -22,6 +22,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <string.h>
#include <locale.h>
+#include <config.h>
#include <pango/pango-utils.h>
#include <dbus/dbus-glib-bindings.h>
#include <libindicate/listener.h>
@@ -1220,7 +1221,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();