summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2011-06-04 04:34:44 +0000
committerGlenn Rice <glennricster@gmail.com>2011-06-04 04:34:44 +0000
commit0e6bb4de3536efeeee07edafb9d6e8230ec30de1 (patch)
tree43799796e0093884f5adb6ca9aa96eaf69b26185 /Source/Core
parent2d852f579c70b0c6e4758a6c7b2023c3a6c65cd8 (diff)
Fix a couple of strings for translation.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7584 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/GameListCtrl.cpp10
-rw-r--r--Source/Core/DolphinWX/Src/VideoConfigDiag.cpp4
-rw-r--r--Source/Core/DolphinWX/Src/VideoConfigDiag.h7
3 files changed, 9 insertions, 12 deletions
diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
index 38a2bbae16..de7bd83581 100644
--- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
@@ -593,13 +593,9 @@ void CGameListCtrl::ScanForISOs()
std::string FileName;
SplitPath(rFilenames[i], NULL, &FileName, NULL);
- wxString msg;
- char tempstring[128];
- sprintf(tempstring,"Scanning %s", FileName.c_str());
- msg = wxString(tempstring, *wxConvCurrent);
-
- // Update with the progress (i) and the message (msg)
- bool Cont = dialog.Update(i, msg);
+ // Update with the progress (i) and the message
+ bool Cont = dialog.Update(i,
+ wxString::Format(_("Scanning %s"), wxString(FileName.c_str(), *wxConvCurrent).c_str()));
if (!Cont)
break;
diff --git a/Source/Core/DolphinWX/Src/VideoConfigDiag.cpp b/Source/Core/DolphinWX/Src/VideoConfigDiag.cpp
index 6bc8323f56..b411bc7752 100644
--- a/Source/Core/DolphinWX/Src/VideoConfigDiag.cpp
+++ b/Source/Core/DolphinWX/Src/VideoConfigDiag.cpp
@@ -218,10 +218,10 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
it = g_available_video_backends.begin(),
itend = g_available_video_backends.end();
for (; it != itend; ++it)
- choice_backend->AppendString(wxString::FromAscii((*it)->GetName().c_str()));
+ choice_backend->AppendString(wxGetTranslation(wxString::FromAscii((*it)->GetName().c_str())));
// TODO: How to get the translated plugin name?
- choice_backend->SetStringSelection(wxString::FromAscii(g_video_backend->GetName().c_str()));
+ choice_backend->SetStringSelection(wxGetTranslation(wxString::FromAscii(g_video_backend->GetName().c_str())));
_connect_macro_(choice_backend, VideoConfigDiag::Event_Backend, wxEVT_COMMAND_CHOICE_SELECTED, this);
szr_basic->Add(label_backend, 1, wxALIGN_CENTER_VERTICAL, 5);
diff --git a/Source/Core/DolphinWX/Src/VideoConfigDiag.h b/Source/Core/DolphinWX/Src/VideoConfigDiag.h
index 82a9322a70..5765524f03 100644
--- a/Source/Core/DolphinWX/Src/VideoConfigDiag.h
+++ b/Source/Core/DolphinWX/Src/VideoConfigDiag.h
@@ -78,15 +78,16 @@ protected:
if (g_video_backend != new_backend)
{
bool do_switch = true;
- if (strcmp(new_backend->GetName().c_str(), _trans("Software Renderer")) == 0)
+ if (new_backend->GetName() == "Software Renderer")
{
do_switch = (wxYES == wxMessageBox(_("Software rendering is an order of magnitude slower than using the other backends.\nIt's only useful for debugging purposes.\nDo you really want to enable software rendering? If unsure, select 'No'."),
- _("Warning"), wxYES_NO | wxNO_DEFAULT | wxICON_EXCLAMATION, wxGetActiveWindow()));
+ _("Warning"), wxYES_NO | wxNO_DEFAULT | wxICON_EXCLAMATION, wxGetActiveWindow()));
}
if (do_switch)
{
- // TODO: Only reopen the dialog if the software backend is selected (make sure to reinitialize backend info)
+ // TODO: Only reopen the dialog if the software backend is
+ // selected (make sure to reinitialize backend info)
// reopen the dialog
Close();