From dc2f22516c07342203ed7ee2e9efc75632cdc200 Mon Sep 17 00:00:00 2001 From: Techjar Date: Sat, 30 Jun 2018 04:53:24 -0400 Subject: [PATCH] Mark all video backend names for translation --- Source/Core/VideoBackends/D3D/main.cpp | 3 ++- Source/Core/VideoBackends/Null/VideoBackend.h | 7 ++++++- Source/Core/VideoBackends/OGL/main.cpp | 5 +++-- Source/Core/VideoBackends/Software/SWmain.cpp | 3 ++- Source/Core/VideoBackends/Vulkan/VideoBackend.h | 3 ++- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Source/Core/VideoBackends/D3D/main.cpp b/Source/Core/VideoBackends/D3D/main.cpp index 03d2929322..f2299945cc 100644 --- a/Source/Core/VideoBackends/D3D/main.cpp +++ b/Source/Core/VideoBackends/D3D/main.cpp @@ -5,6 +5,7 @@ #include #include +#include "Common/Common.h" #include "Common/CommonTypes.h" #include "Common/MsgHandler.h" #include "Common/StringUtil.h" @@ -34,7 +35,7 @@ std::string VideoBackend::GetName() const std::string VideoBackend::GetDisplayName() const { - return "Direct3D 11"; + return _trans("Direct3D 11"); } void VideoBackend::InitBackendInfo() diff --git a/Source/Core/VideoBackends/Null/VideoBackend.h b/Source/Core/VideoBackends/Null/VideoBackend.h index eb1d419775..2f5f0dc057 100644 --- a/Source/Core/VideoBackends/Null/VideoBackend.h +++ b/Source/Core/VideoBackends/Null/VideoBackend.h @@ -4,6 +4,7 @@ #pragma once +#include "Common/Common.h" #include "VideoCommon/VideoBackendBase.h" namespace Null @@ -14,7 +15,11 @@ class VideoBackend : public VideoBackendBase void Shutdown() override; std::string GetName() const override { return "Null"; } - std::string GetDisplayName() const override { return "Null"; } + std::string GetDisplayName() const override + { + // i18n: Null is referring to the null video backend, which renders nothing + return _trans("Null"); + } void InitBackendInfo() override; }; } diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp index 1ac21b03b0..52d643543f 100644 --- a/Source/Core/VideoBackends/OGL/main.cpp +++ b/Source/Core/VideoBackends/OGL/main.cpp @@ -38,6 +38,7 @@ Make AA apply instantly during gameplay if possible #include #include +#include "Common/Common.h" #include "Common/GL/GLInterfaceBase.h" #include "Common/GL/GLUtil.h" #include "Common/MsgHandler.h" @@ -66,9 +67,9 @@ std::string VideoBackend::GetName() const std::string VideoBackend::GetDisplayName() const { if (GLInterface != nullptr && GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGLES3) - return "OpenGLES"; + return _trans("OpenGL ES"); else - return "OpenGL"; + return _trans("OpenGL"); } void VideoBackend::InitBackendInfo() diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 2acd694f76..546cf0a45c 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -7,6 +7,7 @@ #include #include +#include "Common/Common.h" #include "Common/CommonTypes.h" #include "Common/GL/GLInterfaceBase.h" @@ -51,7 +52,7 @@ std::string VideoSoftware::GetName() const std::string VideoSoftware::GetDisplayName() const { - return "Software Renderer"; + return _trans("Software Renderer"); } void VideoSoftware::InitBackendInfo() diff --git a/Source/Core/VideoBackends/Vulkan/VideoBackend.h b/Source/Core/VideoBackends/Vulkan/VideoBackend.h index ef60212a9a..d4f284962b 100644 --- a/Source/Core/VideoBackends/Vulkan/VideoBackend.h +++ b/Source/Core/VideoBackends/Vulkan/VideoBackend.h @@ -4,6 +4,7 @@ #pragma once +#include "Common/Common.h" #include "VideoCommon/VideoBackendBase.h" namespace Vulkan @@ -15,7 +16,7 @@ public: void Shutdown() override; std::string GetName() const override { return "Vulkan"; } - std::string GetDisplayName() const override { return "Vulkan"; } + std::string GetDisplayName() const override { return _trans("Vulkan"); } void InitBackendInfo() override; }; }