mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #1472 from lioncash/i18n
DolphinWX: Make the TAS dialog window titles translatable.
This commit is contained in:
commit
2c602137b1
@ -720,21 +720,20 @@ void CFrame::OnRecordReadOnly(wxCommandEvent& event)
|
|||||||
|
|
||||||
void CFrame::OnTASInput(wxCommandEvent& event)
|
void CFrame::OnTASInput(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
std::string number[4] = {"1","2","3","4"};
|
|
||||||
|
|
||||||
for (int i = 0; i < 4; ++i)
|
for (int i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
if (SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_NONE && SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_GC_GBA)
|
if (SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_NONE && SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_GC_GBA)
|
||||||
{
|
{
|
||||||
g_TASInputDlg[i]->CreateGCLayout();
|
g_TASInputDlg[i]->CreateGCLayout();
|
||||||
g_TASInputDlg[i]->Show(true);
|
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))
|
if (g_wiimote_sources[i] == WIIMOTE_SRC_EMU && !(Core::IsRunning() && !SConfig::GetInstance().m_LocalCoreStartupParameter.bWii))
|
||||||
{
|
{
|
||||||
g_TASInputDlg[i+4]->CreateWiiLayout();
|
g_TASInputDlg[i+4]->CreateWiiLayout();
|
||||||
g_TASInputDlg[i+4]->Show(true);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user