MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / retranslateUi

Method retranslateUi

launcher/ui/MainWindow.cpp:1111–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109#endif
1110
1111void MainWindow::retranslateUi()
1112{
1113 auto accounts = APPLICATION->accounts();
1114 MinecraftAccountPtr defaultAccount = accounts->defaultAccount();
1115 if(defaultAccount) {
1116 auto profileLabel = profileInUseFilter(defaultAccount->profileName(), defaultAccount->isInUse());
1117 accountMenuButton->setText(profileLabel);
1118 }
1119 else {
1120 accountMenuButton->setText(tr("Profiles"));
1121 }
1122
1123 if (m_selectedInstance) {
1124 m_statusLeft->setText(m_selectedInstance->getStatusbarDescription());
1125 } else {
1126 m_statusLeft->setText(tr("No instance selected"));
1127 }
1128
1129 ui->retranslateUi(this);
1130}
1131
1132MainWindow::~MainWindow()
1133{

Callers 15

retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45
retranslateMethod · 0.45

Calls 7

profileInUseFilterFunction · 0.85
accountsMethod · 0.80
defaultAccountMethod · 0.80
isInUseMethod · 0.80
profileNameMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected