Qt: Make hotkey categories translatable

This commit is contained in:
Connor McLaughlin committed 2020-10-03 01:06:04 +10:00
1 parent 7cf8f60464
commit caf100ec0d
2 files changed
+47 -47

No files matched your search

+1 -1
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())