summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2016-09-16 12:39:11 -0500
committerGitHub <noreply@github.com>2016-09-16 12:39:11 -0500
commit533ee4ccbe1879ce2277872b657228d8aede7e87 (patch)
treed343f1bc9515b83560b7c9035eede7097ce1e188 /Source/Core
parent4c004b6dc978d7585bf0765e22351ef1edd39a3a (diff)
parentccc4e6de023d8aed336c16cdad876b1f34ae6cd5 (diff)
Merge pull request #3275 from JosJuice/wiimote-message
DolphinWX: Don't translate OSD messages
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/State.cpp6
-rw-r--r--Source/Core/Core/State.h2
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp8
3 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp
index 402f174a47..c4e4d0db7b 100644
--- a/Source/Core/Core/State.cpp
+++ b/Source/Core/Core/State.cpp
@@ -440,15 +440,15 @@ bool ReadHeader(const std::string& filename, StateHeader& header)
return true;
}
-std::string GetInfoStringOfSlot(int slot)
+std::string GetInfoStringOfSlot(int slot, bool translate)
{
std::string filename = MakeStateFilename(slot);
if (!File::Exists(filename))
- return GetStringT("Empty");
+ return translate ? GetStringT("Empty") : "Empty";
State::StateHeader header;
if (!ReadHeader(filename, header))
- return GetStringT("Unknown");
+ return translate ? GetStringT("Unknown") : "Unknown";
return Common::Timer::GetDateTimeFormatted(header.time);
}
diff --git a/Source/Core/Core/State.h b/Source/Core/Core/State.h
index 779f7f014e..5818cd4830 100644
--- a/Source/Core/Core/State.h
+++ b/Source/Core/Core/State.h
@@ -33,7 +33,7 @@ bool ReadHeader(const std::string& filename, StateHeader& header);
// Returns a string containing information of the savestate in the given slot
// which can be presented to the user for identification purposes
-std::string GetInfoStringOfSlot(int slot);
+std::string GetInfoStringOfSlot(int slot, bool translate = true);
// These don't happen instantly - they get scheduled as events.
// ...But only if we're not in the main CPU thread.
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);
}