Qt: Make hotkey categories translatable

This commit is contained in:
Connor McLaughlin
2020-10-03 00:54:31 +10:00
parent 7cf8f60464
commit caf100ec0d
2 changed files with 47 additions and 47 deletions

View File

@ -38,7 +38,7 @@ void HotkeySettingsWidget::createButtons()
const auto& hotkeys = m_host_interface->getHotkeyInfoList();
for (const auto& hi : hotkeys)
{
const auto category = QString::fromUtf8(hi.category);
const auto category = qApp->translate("Hotkeys", hi.category);
auto iter = m_categories.find(category);
if (iter == m_categories.end())