From d9305ba412dce8cf3d714d7ab69e335dabdae8b9 Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Sun, 15 Sep 2024 16:43:39 +0700 Subject: [PATCH] Qt: More Translatable Strings --- pcsx2/GS/GS.cpp | 2 +- pcsx2/GS/Renderers/DX11/GSDevice11.cpp | 4 ++-- pcsx2/GS/Renderers/Metal/GSDeviceMTL.mm | 2 +- pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp | 2 +- pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pcsx2/GS/GS.cpp b/pcsx2/GS/GS.cpp index 98bb62ba502a56..fb4d8a745f45e4 100644 --- a/pcsx2/GS/GS.cpp +++ b/pcsx2/GS/GS.cpp @@ -528,7 +528,7 @@ void GSUpdateDisplayWindow() { if (!g_gs_device->UpdateWindow()) { - Host::ReportErrorAsync("Error", "Failed to change window after update. The log may contain more information."); + Host::ReportErrorAsync("Error", TRANSLATE_SV("GS", "Failed to change window after update. The log may contain more information.")); return; } diff --git a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp index e1cf00c7a296e6..b3fd4ccd792b0a 100644 --- a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp +++ b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp @@ -112,8 +112,8 @@ bool GSDevice11::Create(GSVSyncMode vsync_mode, bool allow_present_throttle) { Host::ReportErrorAsync("GS", fmt::format( - "Failed to create D3D device: 0x{:08X}. A GPU which supports Direct3D Feature Level 10.0 is required.", - hr)); + TRANSLATE_FS("GS", "Failed to create D3D device: 0x{:08X}. A GPU which supports Direct3D Feature Level 10.0 is required.", + hr))); return false; } diff --git a/pcsx2/GS/Renderers/Metal/GSDeviceMTL.mm b/pcsx2/GS/Renderers/Metal/GSDeviceMTL.mm index f8a249f0c5eb64..f068304da72dd4 100644 --- a/pcsx2/GS/Renderers/Metal/GSDeviceMTL.mm +++ b/pcsx2/GS/Renderers/Metal/GSDeviceMTL.mm @@ -855,7 +855,7 @@ static void OnMainThread(Fn&& fn) Console.Warning("Metal: Couldn't find adapter %s, using default", GSConfig.Adapter.c_str()); m_dev = GSMTLDevice(MRCTransfer(MTLCreateSystemDefaultDevice())); if (!m_dev.dev) - Host::ReportErrorAsync("No Metal Devices Available", "No Metal-supporting GPUs were found. PCSX2 requires a Metal GPU (available on all macs from 2012 onwards)."); + Host::ReportErrorAsync(TRANSLATE_SV("GSDeviceMTL", "No Metal Devices Available"), TRANSLATE_SV("GSDeviceMTL", "No Metal-supporting GPUs were found. PCSX2 requires a Metal GPU (available on all Macs from 2012 onwards).")); } m_name = [[m_dev.dev name] UTF8String]; diff --git a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp index a1e17a87d1e8e1..209cd7e22435d2 100644 --- a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp +++ b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp @@ -638,7 +638,7 @@ bool GSDeviceOGL::CheckFeatures(bool& buggy_pbo) if (!GLAD_GL_VERSION_3_3) { Host::ReportErrorAsync( - "GS", fmt::format("OpenGL renderer is not supported. Only OpenGL {}.{}\n was found", major_gl, minor_gl)); + "GS", fmt::format(TRANSLATE_FS("GSDeviceOGL", "OpenGL renderer is not supported. Only OpenGL {}.{}\n was found"), major_gl, minor_gl)); return false; } diff --git a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp index 31f56457f2a67f..b84cd355643673 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp +++ b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp @@ -2054,7 +2054,7 @@ bool GSDeviceVK::Create(GSVSyncMode vsync_mode, bool allow_present_throttle) if (!CheckFeatures()) { - Host::ReportErrorAsync("GS", "Your GPU does not support the required Vulkan features."); + Host::ReportErrorAsync("GS", TRANSLATE_SV("GSDeviceVK", "Your GPU does not support the required Vulkan features.")); return false; }