From 549b5e8af00d2afecf24653df043395afb241682 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 18 May 2021 03:06:09 +1000 Subject: [PATCH] Qt: Translate button names in auto-fire config --- src/duckstation-qt/controllersettingswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/controllersettingswidget.cpp b/src/duckstation-qt/controllersettingswidget.cpp index 9a88ff869..0afb8aeee 100644 --- a/src/duckstation-qt/controllersettingswidget.cpp +++ b/src/duckstation-qt/controllersettingswidget.cpp @@ -463,7 +463,7 @@ void ControllerSettingsWidget::createPortBindingSettingsUi(int index, PortSettin QStringList option_list; option_list.push_back(QString()); for (const auto& [button_name, button_code] : buttons) - option_list.push_back(QString::fromStdString(button_name)); + option_list.push_back(qApp->translate(cname, button_name.c_str())); for (u32 autofire_index = 0; autofire_index < QtHostInterface::NUM_CONTROLLER_AUTOFIRE_BUTTONS; autofire_index++) {