Use PanicAlertT instead of PanicAlert when appropriate

I tried to change messages that contained instructions for users,
while avoiding messages that are so technical that most users
wouldn't understand them even if they were in the right language.
This commit is contained in:
JosJuice
2015-03-15 16:42:22 +01:00
parent 98ed5881ab
commit 95a2abc1ce
13 changed files with 47 additions and 56 deletions

View File

@ -421,7 +421,7 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
if (slot != -1)
{
memoryCard[slot]->FixChecksums();
if (!memoryCard[slot]->Save()) PanicAlertT(E_SAVEFAILED);
if (!memoryCard[slot]->Save()) PanicAlertT("File write failed");
page[slot] = FIRSTPAGE;
ReloadMemcard(WxStrToStr(m_MemcardPath[slot]->GetPath()), slot);
}
@ -435,7 +435,7 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
case OUTOFBLOCKS:
if (slot == -1)
{
WxUtils::ShowErrorDialog(_(E_UNK));
WxUtils::ShowErrorDialog(_("Unknown memory card error"));
break;
}
wxMessageBox(wxString::Format(_("Only %d blocks available"), memoryCard[slot]->GetFreeBlocks()));
@ -467,14 +467,14 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
WxUtils::ShowErrorDialog(_("Invalid bat.map or dir entry."));
break;
case WRITEFAIL:
WxUtils::ShowErrorDialog(_(E_SAVEFAILED));
WxUtils::ShowErrorDialog(_("File write failed"));
break;
case DELETE_FAIL:
WxUtils::ShowErrorDialog(_("Order of files in the File Directory do not match the block order\n"
"Right click and export all of the saves,\nand import the saves to a new memcard\n"));
break;
default:
WxUtils::ShowErrorDialog(_(E_UNK));
WxUtils::ShowErrorDialog(_("Unknown memory card error"));
break;
}
SetFocus();
@ -515,7 +515,7 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
}
else
{
WxUtils::ShowErrorDialog(_(E_SAVEFAILED));
WxUtils::ShowErrorDialog(_("File write failed"));
}
break;
case ID_CONVERTTOGCI: