1
0
Fork 0
mirror of synced 2024-05-04 20:52:58 +12:00

Settings: Translate titles

This commit is contained in:
loathingKernel 2024-02-24 02:25:47 +02:00
parent 379cbd2f89
commit 2e8dcc49ca
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -22,12 +22,14 @@ class SettingsTab(SideTabWidget):
self.settings_index = self.addTab(game_settings, self.tr("Defaults"))
self.about = About(self)
self.about_index = self.addTab(self.about, "About", "About")
title = self.tr("About")
self.about_index = self.addTab(self.about, title, title)
self.about.update_available_ready.connect(
lambda: self.tabBar().setTabText(self.about_index, "About (!)")
)
if self.args.debug:
self.debug_index = self.addTab(DebugSettings(self), "Debug")
title = self.tr("Debug")
self.debug_index = self.addTab(DebugSettings(self), title, title)
self.setCurrentIndex(self.rare_index)