mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Add a little hack to make it so panic alerts and questions can be translated if they are in the wxWidgets portion of the code, as well as make a few strings in the config dialog translatable.
Add Hungarian translations by Delirious. Update Italian translations by RebuMan. Update German translations by JackyCola and LucasX. Update Greek translations by Gpower2. Update Frensh translations by Pascal. Make sure the game list is refreshed when the GC language is changed. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6826 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -294,7 +294,7 @@ void CMemcardManager::ChangePath(int slot)
|
||||
if (!strcasecmp(m_MemcardPath[slot2]->GetPath().mb_str(), m_MemcardPath[slot]->GetPath().mb_str()))
|
||||
{
|
||||
if(m_MemcardPath[slot]->GetPath().length())
|
||||
PanicAlert("Memcard already opened");
|
||||
PanicAlert("%s", _wxt("Memcard already opened"));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -420,7 +420,7 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
|
||||
switch (error)
|
||||
{
|
||||
case GCS:
|
||||
SuccessAlert("File converted to .gci");
|
||||
SuccessAlert("%s", _wxt("File converted to .gci"));
|
||||
break;
|
||||
case SUCCESS:
|
||||
if (slot != -1)
|
||||
@ -432,10 +432,10 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
|
||||
}
|
||||
break;
|
||||
case NOMEMCARD:
|
||||
PanicAlert("File is not recognized as a memcard");
|
||||
PanicAlert("%s", _wxt("File is not recognized as a memcard"));
|
||||
break;
|
||||
case OPENFAIL:
|
||||
PanicAlert("File could not be opened\nor does not have a valid extension");
|
||||
PanicAlert("%s", _wxt("File could not be opened\nor does not have a valid extension"));
|
||||
break;
|
||||
case OUTOFBLOCKS:
|
||||
if (slot == -1)
|
||||
@ -443,40 +443,40 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
|
||||
PanicAlert(E_UNK);
|
||||
break;
|
||||
}
|
||||
PanicAlert("Only %d blocks available", memoryCard[slot]->GetFreeBlocks());
|
||||
PanicAlert(_wxt("Only %d blocks available"), memoryCard[slot]->GetFreeBlocks());
|
||||
break;
|
||||
case OUTOFDIRENTRIES:
|
||||
PanicAlert("No free dir index entries");
|
||||
PanicAlert("%s", _wxt("No free dir index entries"));
|
||||
break;
|
||||
case LENGTHFAIL:
|
||||
PanicAlert("Imported file has invalid length");
|
||||
PanicAlert("%s", _wxt("Imported file has invalid length"));
|
||||
break;
|
||||
case INVALIDFILESIZE:
|
||||
PanicAlert("The save you are trying to copy has an invalid file size");
|
||||
PanicAlert("%s", _wxt("The save you are trying to copy has an invalid file size"));
|
||||
break;
|
||||
case TITLEPRESENT:
|
||||
PanicAlert("Memcard already has a save for this title");
|
||||
PanicAlert("%s", _wxt("Memcard already has a save for this title"));
|
||||
break;
|
||||
case SAVFAIL:
|
||||
PanicAlert("Imported file has sav extension\nbut does not have a correct header");
|
||||
PanicAlert("%s", _wxt("Imported file has sav extension\nbut does not have a correct header"));
|
||||
break;
|
||||
case GCSFAIL:
|
||||
PanicAlert("Imported file has gsc extension\nbut does not have a correct header");
|
||||
PanicAlert("%s", _wxt("Imported file has gsc extension\nbut does not have a correct header"));
|
||||
break;
|
||||
case FAIL:
|
||||
if (slot == -1)
|
||||
{
|
||||
PanicAlert("Export Failed");
|
||||
PanicAlert("%s", _wxt("Export Failed"));
|
||||
return false;
|
||||
}
|
||||
PanicAlert("Invalid bat.map or dir entry");
|
||||
PanicAlert("%s", _wxt("Invalid bat.map or dir entry"));
|
||||
break;
|
||||
case WRITEFAIL:
|
||||
PanicAlert(E_SAVEFAILED);
|
||||
break;
|
||||
case DELETE_FAIL:
|
||||
PanicAlert("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 the saves to a new memcard\n");
|
||||
PanicAlert("%s", _wxt("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 the saves to a new memcard\n"));
|
||||
break;
|
||||
default:
|
||||
PanicAlert(E_UNK);
|
||||
@ -514,7 +514,7 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
|
||||
case ID_FIXCHECKSUM_B:
|
||||
if (memoryCard[slot]->FixChecksums() && memoryCard[slot]->Save())
|
||||
{
|
||||
SuccessAlert("The checksum was successfully fixed");
|
||||
SuccessAlert("%s", _wxt("The checksum was successfully fixed"));
|
||||
}
|
||||
else PanicAlert(E_SAVEFAILED);
|
||||
break;
|
||||
@ -587,9 +587,9 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
|
||||
SplitPath(mpath, &path1, &path2, NULL);
|
||||
path1 += path2;
|
||||
File::CreateDir(path1.c_str());
|
||||
if(PanicYesNo("Warning: This will overwrite any existing saves "
|
||||
if(PanicYesNo(_wxt("Warning: This will overwrite any existing saves "
|
||||
"that are in the folder:\n%s\nand have the same name"
|
||||
" as a file on your memcard\nContinue?", path1.c_str()))
|
||||
" as a file on your memcard\nContinue?"), path1.c_str()))
|
||||
for (int i = 0; i < DIRLEN; i++)
|
||||
{
|
||||
CopyDeleteSwitch(memoryCard[slot]->ExportGci(i, ".", &path1), -1);
|
||||
|
Reference in New Issue
Block a user