diff options
author | Jamie Mansfield <jmansfield@cadixdev.org> | 2022-02-22 18:23:53 +0000 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-20 20:48:12 +0100 |
commit | dd5c4b6864397184152d8e7183cb7c97ae4e65db (patch) | |
tree | 632999259de4d82d31c9dace268cc05c2197f3d2 /launcher/ui/pages/modplatform/ftb | |
parent | a2c85a8531208194c992590fe4d89b853b057da2 (diff) | |
download | PrismLauncher-dd5c4b6864397184152d8e7183cb7c97ae4e65db.tar.gz PrismLauncher-dd5c4b6864397184152d8e7183cb7c97ae4e65db.tar.bz2 PrismLauncher-dd5c4b6864397184152d8e7183cb7c97ae4e65db.zip |
App: Retranslate all pages when the language is changed
Diffstat (limited to 'launcher/ui/pages/modplatform/ftb')
-rw-r--r-- | launcher/ui/pages/modplatform/ftb/FtbPage.cpp | 5 | ||||
-rw-r--r-- | launcher/ui/pages/modplatform/ftb/FtbPage.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/ftb/FtbPage.cpp b/launcher/ui/pages/modplatform/ftb/FtbPage.cpp index b6b5dcd4..e2f3a99d 100644 --- a/launcher/ui/pages/modplatform/ftb/FtbPage.cpp +++ b/launcher/ui/pages/modplatform/ftb/FtbPage.cpp @@ -78,6 +78,11 @@ bool FtbPage::shouldDisplay() const return true; } +void FtbPage::retranslate() +{ + ui->retranslateUi(this); +} + void FtbPage::openedImpl() { if(!initialised) diff --git a/launcher/ui/pages/modplatform/ftb/FtbPage.h b/launcher/ui/pages/modplatform/ftb/FtbPage.h index 28a189f0..5f20832d 100644 --- a/launcher/ui/pages/modplatform/ftb/FtbPage.h +++ b/launcher/ui/pages/modplatform/ftb/FtbPage.h @@ -55,6 +55,7 @@ public: return "FTB-platform"; } virtual bool shouldDisplay() const override; + void retranslate() override; void openedImpl() override; |