diff options
| author | JosJuice <josjuice@gmail.com> | 2015-12-19 14:36:09 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2016-08-10 18:18:25 +0200 |
| commit | ccc4e6de023d8aed336c16cdad876b1f34ae6cd5 (patch) | |
| tree | 92fb360dc422e748f70e86825f9eb767f5aa4d17 /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 7914e4d19d7b966009383dea065955ce68afc9ee (diff) | |
DolphinWX: Don't translate OSD messages
OSD messages other than these one and a half aren't translated,
and OSD only supports ASCII. (Also, that "Wiimote %i %s" uses %s
like it does is bad for translation, but that's easy to fix.)
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 4dc8789796..dcb22c20a7 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -30,6 +30,7 @@ #include "Common/FileSearch.h" #include "Common/FileUtil.h" #include "Common/NandPaths.h" +#include "Common/StringUtil.h" #include "Core/BootManager.h" #include "Core/ConfigManager.h" @@ -1553,9 +1554,8 @@ void CFrame::ConnectWiimote(int wm_idx, bool connect) { bool was_unpaused = Core::PauseAndLock(true); GetUsbPointer()->AccessWiiMote(wm_idx | 0x100)->Activate(connect); - wxString msg(wxString::Format(_("Wiimote %i %s"), wm_idx + 1, - connect ? _("Connected") : _("Disconnected"))); - Core::DisplayMessage(WxStrToStr(msg), 3000); + const char* message = connect ? "Wiimote %i connected" : "Wiimote %i disconnected"; + Core::DisplayMessage(StringFromFormat(message, wm_idx + 1), 3000); Host_UpdateMainFrame(); Core::PauseAndLock(false, was_unpaused); } @@ -1675,7 +1675,7 @@ void CFrame::OnSelectSlot(wxCommandEvent& event) { m_saveSlot = event.GetId() - IDM_SELECT_SLOT_1 + 1; Core::DisplayMessage(StringFromFormat("Selected slot %d - %s", m_saveSlot, - State::GetInfoStringOfSlot(m_saveSlot).c_str()), + State::GetInfoStringOfSlot(m_saveSlot, false).c_str()), 2500); } |
