mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
Removed my previous PanicAlert translation hack. Fixed with a better method suggested by BhaaL. The translation is done by a callback in the MsgHandler routine that is set at program start. Added macros PanicAlertT, SuccessAlertT, PanicYesNoT, and AskYesNoT that are identical to the non T versions except those strings will be added by gettext to the po files to be translated. These can and should be used anywhere in the code for strings that should be translated.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6838 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
be5c732254
commit
c6e0ea59b9
78 changed files with 17744 additions and 3451 deletions
|
@ -174,13 +174,13 @@ void NetPlaySetupDiag::OnHost(wxCommandEvent&)
|
|||
{
|
||||
if (::netplay_ptr)
|
||||
{
|
||||
PanicAlert("%s", _wxt("A NetPlay window is already open!!"));
|
||||
PanicAlertT("A NetPlay window is already open!!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (-1 == m_game_lbox->GetSelection())
|
||||
{
|
||||
PanicAlert("%s", _wxt("You must choose a game!!"));
|
||||
PanicAlertT("You must choose a game!!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ void NetPlaySetupDiag::OnHost(wxCommandEvent&)
|
|||
}
|
||||
else
|
||||
{
|
||||
PanicAlert("%s", _wxt("Failed to Listen!!"));
|
||||
PanicAlertT("Failed to Listen!!");
|
||||
npd->Destroy();
|
||||
// dialog will delete netplay
|
||||
//delete ::netplay_ptr;
|
||||
|
@ -210,7 +210,7 @@ void NetPlaySetupDiag::OnJoin(wxCommandEvent&)
|
|||
{
|
||||
if (::netplay_ptr)
|
||||
{
|
||||
PanicAlert("%s", _wxt("A NetPlay window is already open!!"));
|
||||
PanicAlertT("A NetPlay window is already open!!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -227,7 +227,7 @@ void NetPlaySetupDiag::OnJoin(wxCommandEvent&)
|
|||
}
|
||||
else
|
||||
{
|
||||
//PanicAlert("Failed to Connect!!");
|
||||
//PanicAlertT("Failed to Connect!!");
|
||||
npd->Destroy();
|
||||
// dialog will delete netplay
|
||||
//delete ::netplay_ptr;
|
||||
|
@ -373,7 +373,7 @@ void NetPlayDiag::OnStart(wxCommandEvent&)
|
|||
if (path.length())
|
||||
::netplay_ptr->StartGame(path);
|
||||
else
|
||||
PanicAlert("%s", _wxt("Game not found!!"));
|
||||
PanicAlertT("Game not found!!");
|
||||
}
|
||||
|
||||
void NetPlayDiag::OnStop(wxCommandEvent&)
|
||||
|
@ -492,7 +492,8 @@ void NetPlayDiag::OnConfigPads(wxCommandEvent&)
|
|||
pmd->Destroy();
|
||||
|
||||
if (false == ((NetPlayServer*)::netplay_ptr)->SetPadMapping(pid, mapping))
|
||||
PanicAlert("%s", _wxt("Could not set pads. The player left or the game is currently running!\n(setting pads while the game is running is not yet supported)"));
|
||||
PanicAlertT("Could not set pads. The player left or the game is currently running!\n"
|
||||
"(setting pads while the game is running is not yet supported)");
|
||||
}
|
||||
|
||||
ChangeGameDiag::ChangeGameDiag(wxWindow* const parent, const CGameListCtrl* const game_list, wxString& game_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue