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