aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/ftb
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2022-02-22 18:23:53 +0000
committerSefa Eyeoglu <contact@scrumplex.net>2022-03-20 20:48:12 +0100
commitdd5c4b6864397184152d8e7183cb7c97ae4e65db (patch)
tree632999259de4d82d31c9dace268cc05c2197f3d2 /launcher/ui/pages/modplatform/ftb
parenta2c85a8531208194c992590fe4d89b853b057da2 (diff)
downloadPrismLauncher-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.cpp5
-rw-r--r--launcher/ui/pages/modplatform/ftb/FtbPage.h1
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;