Browse Source
Merge pull request #8293 from Docteh/translate_network
ui: retranslate the network tab
pull/15/merge
Mai M
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
2 deletions
-
src/yuzu/configuration/configure_network.cpp
-
src/yuzu/configuration/configure_network.h
|
|
@ -26,7 +26,15 @@ void ConfigureNetwork::ApplyConfiguration() { |
|
|
Settings::values.network_interface = ui->network_interface->currentText().toStdString(); |
|
|
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); |
|
|
ui->retranslateUi(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -18,9 +18,10 @@ public: |
|
|
~ConfigureNetwork() override; |
|
|
~ConfigureNetwork() override; |
|
|
|
|
|
|
|
|
void ApplyConfiguration(); |
|
|
void ApplyConfiguration(); |
|
|
void RetranslateUi(); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
|
|
|
void changeEvent(QEvent*) override; |
|
|
|
|
|
void RetranslateUI(); |
|
|
void SetConfiguration(); |
|
|
void SetConfiguration(); |
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureNetwork> ui; |
|
|
std::unique_ptr<Ui::ConfigureNetwork> ui; |
|
|
|