mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -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:
@ -41,14 +41,14 @@ bool WaveFileWriter::Start(const char *filename)
|
||||
// Check if the file is already open
|
||||
if (file)
|
||||
{
|
||||
PanicAlert("The file %s was alrady open, the file header will not be written.", filename);
|
||||
PanicAlertT("The file %s was alrady open, the file header will not be written.", filename);
|
||||
return false;
|
||||
}
|
||||
|
||||
file = fopen(filename, "wb");
|
||||
if (!file)
|
||||
{
|
||||
PanicAlert("The file %s could not be opened for writing. Please check if it's already opened by another program.", filename);
|
||||
PanicAlertT("The file %s could not be opened for writing. Please check if it's already opened by another program.", filename);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ void WaveFileWriter::Write4(const char *ptr)
|
||||
void WaveFileWriter::AddStereoSamples(const short *sample_data, int count)
|
||||
{
|
||||
if (!file)
|
||||
PanicAlert("WaveFileWriter - file not open.");
|
||||
PanicAlertT("WaveFileWriter - file not open.");
|
||||
if (skip_silence) {
|
||||
bool all_zero = true;
|
||||
for (int i = 0; i < count * 2; i++)
|
||||
@ -122,7 +122,7 @@ void WaveFileWriter::AddStereoSamples(const short *sample_data, int count)
|
||||
void WaveFileWriter::AddStereoSamplesBE(const short *sample_data, int count)
|
||||
{
|
||||
if (!file)
|
||||
PanicAlert("WaveFileWriter - file not open.");
|
||||
PanicAlertT("WaveFileWriter - file not open.");
|
||||
|
||||
if (count > BUF_SIZE * 2)
|
||||
PanicAlert("WaveFileWriter - buffer too small (count = %i).", count);
|
||||
|
Reference in New Issue
Block a user