summaryrefslogtreecommitdiff
path: root/tools/mate-session-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mate-session-save.c')
-rw-r--r--tools/mate-session-save.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mate-session-save.c b/tools/mate-session-save.c
index 31e302c..27a7ad9 100644
--- a/tools/mate-session-save.c
+++ b/tools/mate-session-save.c
@@ -3,6 +3,7 @@
Copyright (C) 1998 Tom Tromey
Copyright (C) 2008 Red Hat, Inc.
+ * Copyright (C) 2012-2021 MATE Developers
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -72,7 +73,7 @@ static GOptionEntry options[] = {
{"session-name", 's', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &session_name, N_("Set the current session name"), N_("NAME")},
{"kill", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &kill_session, N_("Kill session"), NULL},
{"silent", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &no_interaction, N_("Do not require confirmation"), NULL},
- {NULL}
+ {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}
};
static void display_error(const char* message)
@@ -206,9 +207,11 @@ int main(int argc, char* argv[])
int conflicting_options;
/* Initialize the i18n stuff */
+#ifdef ENABLE_NLS
bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
error = NULL;