mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
Internationalize audio and midi device info reports...
... following the substitute, don't concatenate rule in many places. The end users have commands to generate these reports in menus, so they should be translated then; however, they are also part of crash reports meant for developers, so temporarily set English locale for generating those.
This commit is contained in:
@@ -1162,6 +1162,10 @@ void AudacityApp::GenerateCrashReport(wxDebugReport::Context ctx)
|
||||
|
||||
if (ctx == wxDebugReport::Context_Current)
|
||||
{
|
||||
auto saveLang = GetLang();
|
||||
InitLang( wxT("en") );
|
||||
auto cleanup = finally( [&]{ InitLang( saveLang ); } );
|
||||
|
||||
rpt.AddText(wxT("audiodev.txt"), gAudioIO->GetDeviceInfo(), wxT("Audio Device Info"));
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
rpt.AddText(wxT("mididev.txt"), gAudioIO->GetMidiDeviceInfo(), wxT("MIDI Device Info"));
|
||||
|
||||
Reference in New Issue
Block a user