summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-12-19 14:36:09 +0100
committerJosJuice <josjuice@gmail.com>2016-08-10 18:18:25 +0200
commitccc4e6de023d8aed336c16cdad876b1f34ae6cd5 (patch)
tree92fb360dc422e748f70e86825f9eb767f5aa4d17 /Source/Core
parent7914e4d19d7b966009383dea065955ce68afc9ee (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')
-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 feee9730f5..852fc9c4b9 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);
}