]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
save the LC_MESSAGES locale category
[chaz/openbox] / openbox / openbox.c
index 40b614a9e8211ffad913dd42bcc7cec6f8fce827..4703d7d6eb921632f203416eda9ead477f689a17 100644 (file)
@@ -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);
This page took 0.021005 seconds and 4 git commands to generate.