X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=4703d7d6eb921632f203416eda9ead477f689a17;hb=bb97a20777e74d681e5f1912f5b243f19253600b;hp=40b614a9e8211ffad913dd42bcc7cec6f8fce827;hpb=2c5d755bd8bfea13fc9830c74b00877e17294e61;p=chaz%2Fopenbox 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);