save the LC_MESSAGES locale category
This commit is contained in:
parent
d826971d72
commit
d356058237
2 changed files with 6 additions and 0 deletions
|
@ -91,6 +91,7 @@ gchar *ob_sm_id = NULL;
|
||||||
gchar *ob_sm_save_file = NULL;
|
gchar *ob_sm_save_file = NULL;
|
||||||
gboolean ob_sm_restore = TRUE;
|
gboolean ob_sm_restore = TRUE;
|
||||||
gboolean ob_debug_xinerama = FALSE;
|
gboolean ob_debug_xinerama = FALSE;
|
||||||
|
const gchar *ob_locale_msg = NULL;
|
||||||
|
|
||||||
static ObState state;
|
static ObState state;
|
||||||
static gboolean xsync = FALSE;
|
static gboolean xsync = FALSE;
|
||||||
|
@ -120,6 +121,8 @@ gint main(gint argc, gchar **argv)
|
||||||
ob_debug_startup();
|
ob_debug_startup();
|
||||||
|
|
||||||
/* initialize the locale */
|
/* initialize the locale */
|
||||||
|
if (!(ob_locale_msg = setlocale(LC_MESSAGES, "")))
|
||||||
|
g_message("Couldn't set messages locale category from environment.");
|
||||||
if (!setlocale(LC_ALL, ""))
|
if (!setlocale(LC_ALL, ""))
|
||||||
g_message("Couldn't set locale from environment.");
|
g_message("Couldn't set locale from environment.");
|
||||||
bindtextdomain(PACKAGE_NAME, LOCALEDIR);
|
bindtextdomain(PACKAGE_NAME, LOCALEDIR);
|
||||||
|
|
|
@ -46,6 +46,9 @@ extern gboolean ob_sm_restore;
|
||||||
extern gboolean ob_replace_wm;
|
extern gboolean ob_replace_wm;
|
||||||
extern gboolean ob_debug_xinerama;
|
extern gboolean ob_debug_xinerama;
|
||||||
|
|
||||||
|
/*! The current locale for the LC_MESSAGES category */
|
||||||
|
extern const gchar *ob_locale_msg;
|
||||||
|
|
||||||
/* The state of execution of the window manager */
|
/* The state of execution of the window manager */
|
||||||
ObState ob_state(void);
|
ObState ob_state(void);
|
||||||
void ob_set_state(ObState state);
|
void ob_set_state(ObState state);
|
||||||
|
|
Loading…
Reference in a new issue