diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-11-02 02:10:00 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-11-02 02:11:40 -0500 |
| commit | 3d83433e90812b1f2cf12dbf1a25c985798c91cf (patch) | |
| tree | 40d0fd899c1225172ed2f67776f806079cc19f61 /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 9daaf94f3c8caf71dab16c7e591ce7905c1416c4 (diff) | |
DolphinWX: Make the TAS dialog window titles translatable.
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 0c27b52308..1a71da97f9 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -720,21 +720,20 @@ void CFrame::OnRecordReadOnly(wxCommandEvent& event) void CFrame::OnTASInput(wxCommandEvent& event) { - std::string number[4] = {"1","2","3","4"}; - for (int i = 0; i < 4; ++i) { if (SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_NONE && SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_GC_GBA) { g_TASInputDlg[i]->CreateGCLayout(); g_TASInputDlg[i]->Show(true); - g_TASInputDlg[i]->SetTitle("TAS Input - Controller " + number[i]); + g_TASInputDlg[i]->SetTitle(wxString::Format(_("TAS Input - Controller %d"), i + 1)); } + if (g_wiimote_sources[i] == WIIMOTE_SRC_EMU && !(Core::IsRunning() && !SConfig::GetInstance().m_LocalCoreStartupParameter.bWii)) { g_TASInputDlg[i+4]->CreateWiiLayout(); g_TASInputDlg[i+4]->Show(true); - g_TASInputDlg[i+4]->SetTitle("TAS Input - Wiimote " + number[i]); + g_TASInputDlg[i+4]->SetTitle(wxString::Format(_("TAS Input - Wiimote %d"), i + 1)); } } } |
