mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #7190 from Techjar/video-backend-translation
Mark all video backend names for translation
This commit is contained in:
commit
a9841e4fc4
@ -5,6 +5,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#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()
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ Make AA apply instantly during gameplay if possible
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#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()
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#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()
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user