summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-03-29 21:22:19 -0400
committerDana Jansens <danakj@orodu.net>2010-03-29 21:22:19 -0400
commitd35605823736410c4910ec1affe9563e4e8a8769 (patch)
tree447cbf17e13f05597697407fbf2987f101b11377 /openbox/openbox.c
parentd826971d7206b3ecc99e9eabf64625303825952a (diff)
save the LC_MESSAGES locale category
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index 40b614a9..4703d7d6 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -91,6 +91,7 @@ gchar *ob_sm_id = NULL;
gchar *ob_sm_save_file = NULL;
gboolean ob_sm_restore = TRUE;
gboolean ob_debug_xinerama = FALSE;
+const gchar *ob_locale_msg = NULL;
static ObState state;
static gboolean xsync = FALSE;
@@ -120,6 +121,8 @@ gint main(gint argc, gchar **argv)
ob_debug_startup();
/* initialize the locale */
+ if (!(ob_locale_msg = setlocale(LC_MESSAGES, "")))
+ g_message("Couldn't set messages locale category from environment.");
if (!setlocale(LC_ALL, ""))
g_message("Couldn't set locale from environment.");
bindtextdomain(PACKAGE_NAME, LOCALEDIR);