diff options
author | Ted Gould <ted@canonical.com> | 2009-09-15 16:02:48 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-15 16:02:48 -0500 |
commit | fe35fc4c2c9ea545ba1086781b3f07d48d60fc46 (patch) | |
tree | d7ae6299c0a2d7e7d19f1bd5de3ab43c79048990 /src/messages-service.c | |
parent | 7587fb13ecb70a8a2d5eb6965197572e50fbd5c8 (diff) | |
download | ayatana-indicator-messages-fe35fc4c2c9ea545ba1086781b3f07d48d60fc46.tar.gz ayatana-indicator-messages-fe35fc4c2c9ea545ba1086781b3f07d48d60fc46.tar.bz2 ayatana-indicator-messages-fe35fc4c2c9ea545ba1086781b3f07d48d60fc46.zip |
Setting up the gettext stuff.
Diffstat (limited to 'src/messages-service.c')
-rw-r--r-- | src/messages-service.c | 7 |
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(); |