forked from osmocom/wireshark
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:
parent
645dff11e1
commit
784ad7297e
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue