UI: Use configured language for software update dialog

The software update dialog should use the language configured
with preferences.

Change-Id: If7a4b39d47ce9af505540555a653eb4a3aed8b94
Reviewed-on: https://code.wireshark.org/review/24325
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Uli Heilmeier 2017-11-07 23:28:19 +01:00 committed by Anders Broman
parent 645dff11e1
commit 784ad7297e
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "config.h"
#include "software_update.h"
#include "language.h"
#include "../epan/prefs.h"
/*
@ -105,6 +106,9 @@ software_update_init(void) {
win_sparkle_set_update_check_interval(prefs.gui_update_interval);
win_sparkle_set_can_shutdown_callback(software_update_can_shutdown_callback);
win_sparkle_set_shutdown_request_callback(software_update_shutdown_request_callback);
if (strcmp(language, "system") != 0) {
win_sparkle_set_lang(language);
}
win_sparkle_init();
}