diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-11-02 09:58:10 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-11-02 09:58:10 -0600 |
| commit | 2c602137b15580f540d17f098b795d4fa8fb7481 (patch) | |
| tree | a8ec86979f4fa16efa03534315001d87331347e5 /Source/Core | |
| parent | 13d58b3f162b978caa1103a78cdcfc9d043fe003 (diff) | |
| parent | 3d83433e90812b1f2cf12dbf1a25c985798c91cf (diff) | |
Merge pull request #1472 from lioncash/i18n
DolphinWX: Make the TAS dialog window titles translatable.
Diffstat (limited to 'Source/Core')
| -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)); } } } |
