diff --git a/src/yuzu/configuration/configure_network.cpp b/src/yuzu/configuration/configure_network.cpp index f87d3d53a..8ed08fa6a 100644 --- a/src/yuzu/configuration/configure_network.cpp +++ b/src/yuzu/configuration/configure_network.cpp @@ -26,7 +26,15 @@ void ConfigureNetwork::ApplyConfiguration() { Settings::values.network_interface = ui->network_interface->currentText().toStdString(); } -void ConfigureNetwork::RetranslateUi() { +void ConfigureNetwork::changeEvent(QEvent* event) { + if (event->type() == QEvent::LanguageChange) { + RetranslateUI(); + } + + QWidget::changeEvent(event); +} + +void ConfigureNetwork::RetranslateUI() { ui->retranslateUi(this); } diff --git a/src/yuzu/configuration/configure_network.h b/src/yuzu/configuration/configure_network.h index e8245cfdc..f666edbd1 100644 --- a/src/yuzu/configuration/configure_network.h +++ b/src/yuzu/configuration/configure_network.h @@ -18,9 +18,10 @@ public: ~ConfigureNetwork() override; void ApplyConfiguration(); - void RetranslateUi(); private: + void changeEvent(QEvent*) override; + void RetranslateUI(); void SetConfiguration(); std::unique_ptr ui;