From 76b95f7fc9573fb396673475d0875f42d46dd6fc Mon Sep 17 00:00:00 2001 From: Techjar Date: Fri, 5 Apr 2019 00:57:27 -0400 Subject: [PATCH] NetPlayChatUI: Translate strings --- Source/Core/VideoCommon/NetPlayChatUI.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/NetPlayChatUI.cpp b/Source/Core/VideoCommon/NetPlayChatUI.cpp index 7587229ee0..3bfb5026a7 100644 --- a/Source/Core/VideoCommon/NetPlayChatUI.cpp +++ b/Source/Core/VideoCommon/NetPlayChatUI.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/MsgHandler.h" + #include "VideoCommon/NetPlayChatUI.h" #include @@ -27,7 +29,7 @@ void NetPlayChatUI::Display() ImVec2(DEFAULT_WINDOW_WIDTH * scale, DEFAULT_WINDOW_HEIGHT * scale), ImGui::GetIO().DisplaySize); - if (!ImGui::Begin("Chat", nullptr, ImGuiWindowFlags_None)) + if (!ImGui::Begin(GetStringT("Chat").c_str(), nullptr, ImGuiWindowFlags_None)) { ImGui::End(); return; @@ -72,7 +74,7 @@ void NetPlayChatUI::Display() ImGui::SameLine(); - if (ImGui::Button("Send")) + if (ImGui::Button(GetStringT("Send").c_str())) SendMessage(); ImGui::End();