#include <getopt.h>
#include <stdlib.h>
#include <signal.h>
+#include <locale.h>
#include <string.h>
#include <waiter/waiter.h>
#include <log/log.h>
#include <process/process.h>
#include <talloc/talloc.h>
+#include <i18n/i18n.h>
#include "discover-server.h"
#include "device-handler.h"
struct opts opts;
FILE *log;
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
if (opts_parse(&opts, argc, argv)) {
print_usage();
return EXIT_FAILURE;
if (opts.no_autoboot == opt_yes)
config_set_autoboot(false);
+ if (config_get()->lang)
+ setlocale(LC_ALL, config_get()->lang);
+
+ if (config_get()->debug)
+ pb_log_set_debug(true);
+
system_info_init(server);
handler = device_handler_init(server, waitset, opts.dry_run == opt_yes);