GUI: Fix TR Units - Size and Time - more... (#1927)

* GUI: TR Units - Size and Time

Added translation for these units:
B, KB, MB, GB, TB
h, m, s

Added missing text:
Games: - text in the lower left corner
Compatibility...
Update database
View report
Submit a report

Fixed the size of the settings menu

* Audio Backend

* Fixed the size of the settings menu
This commit is contained in:
DanielSvoboda 2024-12-27 17:23:11 -03:00 committed by GitHub
parent f4c1d827d5
commit abe85fd3e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 1963 additions and 11 deletions

View file

@ -133,16 +133,16 @@ void GameListFrame::PopulateGameList() {
QString formattedPlayTime;
if (hours > 0) {
formattedPlayTime += QString("%1h ").arg(hours);
formattedPlayTime += QString("%1").arg(hours) + tr("h");
}
if (minutes > 0) {
formattedPlayTime += QString("%1m ").arg(minutes);
formattedPlayTime += QString("%1").arg(minutes) + tr("m");
}
formattedPlayTime = formattedPlayTime.trimmed();
m_game_info->m_games[i].play_time = playTime.toStdString();
if (formattedPlayTime.isEmpty()) {
SetTableItem(i, 8, QString("%1s").arg(seconds));
SetTableItem(i, 8, QString("%1").arg(seconds) + tr("s"));
} else {
SetTableItem(i, 8, formattedPlayTime);
}