mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Qt: fix game category localization
This commit is contained in:
parent
5dcb91b671
commit
0c8611bd49
1 changed files with 4 additions and 4 deletions
|
@ -923,7 +923,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
||||||
hide_serial->setChecked(m_hidden_list.contains(serial));
|
hide_serial->setChecked(m_hidden_list.contains(serial));
|
||||||
myMenu.addSeparator();
|
myMenu.addSeparator();
|
||||||
QMenu* remove_menu = myMenu.addMenu(tr("&Remove"));
|
QMenu* remove_menu = myMenu.addMenu(tr("&Remove"));
|
||||||
QAction* removeGame = remove_menu->addAction(tr("&Remove %1").arg(qstr(currGame.category)));
|
QAction* removeGame = remove_menu->addAction(tr("&Remove %1").arg(gameinfo->localized_category));
|
||||||
if (gameinfo->hasCustomConfig)
|
if (gameinfo->hasCustomConfig)
|
||||||
{
|
{
|
||||||
QAction* remove_custom_config = remove_menu->addAction(tr("&Remove Custom Configuration"));
|
QAction* remove_custom_config = remove_menu->addAction(tr("&Remove Custom Configuration"));
|
||||||
|
@ -1076,7 +1076,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QMessageBox* mb = new QMessageBox(QMessageBox::Question, tr("Confirm %1 Removal").arg(qstr(currGame.category)), tr("Permanently remove %0 from drive?\nPath: %1").arg(name).arg(qstr(currGame.path)), QMessageBox::Yes | QMessageBox::No, this);
|
QMessageBox* mb = new QMessageBox(QMessageBox::Question, tr("Confirm %1 Removal").arg(gameinfo->localized_category), tr("Permanently remove %0 from drive?\nPath: %1").arg(name).arg(qstr(currGame.path)), QMessageBox::Yes | QMessageBox::No, this);
|
||||||
mb->setCheckBox(new QCheckBox(tr("Remove caches and custom configs")));
|
mb->setCheckBox(new QCheckBox(tr("Remove caches and custom configs")));
|
||||||
mb->deleteLater();
|
mb->deleteLater();
|
||||||
if (mb->exec() == QMessageBox::Yes)
|
if (mb->exec() == QMessageBox::Yes)
|
||||||
|
@ -1093,12 +1093,12 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
||||||
RemoveCustomPadConfiguration(currGame.serial);
|
RemoveCustomPadConfiguration(currGame.serial);
|
||||||
}
|
}
|
||||||
m_game_data.erase(std::remove(m_game_data.begin(), m_game_data.end(), gameinfo), m_game_data.end());
|
m_game_data.erase(std::remove(m_game_data.begin(), m_game_data.end(), gameinfo), m_game_data.end());
|
||||||
game_list_log.success("Removed %s %s in %s", currGame.category, currGame.name, currGame.path);
|
game_list_log.success("Removed %s %s in %s", sstr(gameinfo->localized_category), currGame.name, currGame.path);
|
||||||
Refresh(true);
|
Refresh(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
game_list_log.error("Failed to remove %s %s in %s (%s)", currGame.category, currGame.name, currGame.path, fs::g_tls_error);
|
game_list_log.error("Failed to remove %s %s in %s (%s)", sstr(gameinfo->localized_category), currGame.name, currGame.path, fs::g_tls_error);
|
||||||
QMessageBox::critical(this, tr("Failure!"), tr(remove_caches ? "Failed to remove %0 from drive!\nPath: %1\nCaches and custom configs have been left intact." : "Failed to remove %0 from drive!\nPath: %1").arg(name).arg(qstr(currGame.path)));
|
QMessageBox::critical(this, tr("Failure!"), tr(remove_caches ? "Failed to remove %0 from drive!\nPath: %1\nCaches and custom configs have been left intact." : "Failed to remove %0 from drive!\nPath: %1").arg(name).arg(qstr(currGame.path)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue