Permalink
Browse files

Mark all video backend names for translation

  • Loading branch information...
Techjar committed Jun 30, 2018
1 parent e22c533 commit dc2f22516c07342203ed7ee2e9efc75632cdc200
@@ -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 @@ class VideoBackend : public VideoBackendBase
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;
};
}

0 comments on commit dc2f225

Please sign in to comment.