mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -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:
@ -345,7 +345,7 @@ void CheatSearchTab::StartNewSearch(wxCommandEvent& WXUNUSED (event))
|
||||
const u8* const memptr = Memory::GetPointer(0);
|
||||
if (NULL == memptr)
|
||||
{
|
||||
PanicAlert("A game is not currently running.");
|
||||
PanicAlert("%s", _wxt("A game is not currently running."));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -376,7 +376,7 @@ void CheatSearchTab::FilterCheatSearchResults(wxCommandEvent&)
|
||||
const u8* const memptr = Memory::GetPointer(0);
|
||||
if (NULL == memptr)
|
||||
{
|
||||
PanicAlert("A game is not currently running.");
|
||||
PanicAlert("%s", _wxt("A game is not currently running."));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -431,7 +431,7 @@ void CheatSearchTab::FilterCheatSearchResults(wxCommandEvent&)
|
||||
|
||||
if (!x_val.ToLong(&parsed_x_val, val_base))
|
||||
{
|
||||
PanicAlert("You must enter a valid decimal or hex value.");
|
||||
PanicAlert("%s", _wxt("You must enter a valid decimal or hex value."));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -598,14 +598,14 @@ void CreateCodeDialog::PressOK(wxCommandEvent&)
|
||||
const wxString code_name = textctrl_name->GetValue();
|
||||
if (code_name.empty())
|
||||
{
|
||||
PanicAlert("You must enter a name!");
|
||||
PanicAlert("%s", _wxt("You must enter a name!"));
|
||||
return;
|
||||
}
|
||||
|
||||
long code_value;
|
||||
if (!textctrl_value->GetValue().ToLong(&code_value, 10 + checkbox_use_hex->GetValue()*6))
|
||||
{
|
||||
PanicAlert("Invalid Value!");
|
||||
PanicAlert("%s", _wxt("Invalid Value!"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user