aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-15 15:34:14 -0500
committerTed Gould <ted@canonical.com>2009-09-15 15:34:14 -0500
commit0bdc32e6c8475228c1510c428cbed1a3ee13c4e6 (patch)
tree251469bee042b838b173d8abb32d75d6016d09a3 /src/session-service.c
parent82395ac94e6daaf020d0310602756007a6b89451 (diff)
downloadayatana-indicator-session-0bdc32e6c8475228c1510c428cbed1a3ee13c4e6.tar.gz
ayatana-indicator-session-0bdc32e6c8475228c1510c428cbed1a3ee13c4e6.tar.bz2
ayatana-indicator-session-0bdc32e6c8475228c1510c428cbed1a3ee13c4e6.zip
Adding in gettext init stuff.
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 59a3a97..4db0a6e 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -21,6 +21,7 @@ You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
#include <glib/gi18n.h>
@@ -282,6 +283,12 @@ main (int argc, char ** argv)
{
g_type_init();
+ /* Setting up i18n and gettext. Apparently, we need
+ all of these. */
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+
DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
DBusGProxy * bus_proxy = dbus_g_proxy_new_for_name(connection, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
GError * error = NULL;