From ff0d7917839ece5575b0f152e09b3fb82afcf6af Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Wed, 23 Apr 2025 19:48:12 +0100 Subject: [PATCH] Debugger: Use a consistent context string when translating layout names --- pcsx2-qt/Debugger/Docking/DockManager.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/Debugger/Docking/DockManager.cpp b/pcsx2-qt/Debugger/Docking/DockManager.cpp index 701556295d..820b3c8243 100644 --- a/pcsx2-qt/Debugger/Docking/DockManager.cpp +++ b/pcsx2-qt/Debugger/Docking/DockManager.cpp @@ -298,7 +298,10 @@ void DockManager::resetAllLayouts() m_layouts.clear(); for (const DockTables::DefaultDockLayout& layout : DockTables::DEFAULT_DOCK_LAYOUTS) - createLayout(tr(layout.name.c_str()), layout.cpu, true, layout.name); + { + QString name = QCoreApplication::translate("DebuggerLayout", layout.name.c_str()); + createLayout(name, layout.cpu, true, layout.name); + } switchToLayout(0); updateLayoutSwitcher(); @@ -313,7 +316,10 @@ void DockManager::resetDefaultLayouts() m_layouts = std::vector(); for (const DockTables::DefaultDockLayout& layout : DockTables::DEFAULT_DOCK_LAYOUTS) - createLayout(tr(layout.name.c_str()), layout.cpu, true, layout.name); + { + QString name = QCoreApplication::translate("DebuggerLayout", layout.name.c_str()); + createLayout(name, layout.cpu, true, layout.name); + } for (DockLayout& layout : old_layouts) if (!layout.isDefault())