aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorAlyssa Milburn2011-06-06 12:44:28 +0200
committerAlyssa Milburn2011-06-06 12:44:28 +0200
commit4af3045188b8bbd4fecd663233fa412cef179193 (patch)
treeb0b80d0ad5bab71507b755d52b5218785868ed50 /audio
parent5da1427d0cb6578d29512279614a744b49f346d6 (diff)
downloadscummvm-rg350-4af3045188b8bbd4fecd663233fa412cef179193.tar.gz
scummvm-rg350-4af3045188b8bbd4fecd663233fa412cef179193.tar.bz2
scummvm-rg350-4af3045188b8bbd4fecd663233fa412cef179193.zip
I18N: Make MidiDriver detection errors translatable.
Diffstat (limited to 'audio')
-rw-r--r--audio/mididrv.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/mididrv.cpp b/audio/mididrv.cpp
index 69214fdca1..2cccfccaf8 100644
--- a/audio/mididrv.cpp
+++ b/audio/mididrv.cpp
@@ -25,6 +25,7 @@
#include "common/str.h"
#include "common/system.h"
#include "common/textconsole.h"
+#include "common/translation.h"
#include "common/util.h"
#include "gui/message.h"
#include "audio/mididrv.h"
@@ -202,7 +203,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
} else {
// If the expressly selected device is unavailable we display a warning and continue.
failedDevStr = getDeviceString(hdl, MidiDriver::kDeviceName);
- Common::String warningMsg = "Failed to detect the selected audio device '" + failedDevStr +"'. See log file for more information. Attempting to fall back to the next available device...";
+ Common::String warningMsg = Common::String::format(_("Failed to detect the selected audio device '%s'. See log file for more information. Attempting to fall back to the next available device..."), failedDevStr.c_str());
GUI::MessageDialog dialog(warningMsg);
dialog.runModal();
}
@@ -242,7 +243,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
// Don't warn about the missing device if we did already (this becomes relevant if the failing
// device is selected as preferred device and also as GM or MT-32 device).
if (failedDevStr != getDeviceString(hdl, MidiDriver::kDeviceName)) {
- Common::String warningMsg = "Failed to detect the preferred device '" + getDeviceString(hdl, MidiDriver::kDeviceName) + "'. See log file for more information. Attempting to fall back to the next available device...";
+ Common::String warningMsg = Common::String::format(_("Failed to detect the preferred device '%s'. See log file for more information. Attempting to fall back to the next available device..."), getDeviceString(hdl, MidiDriver::kDeviceName).c_str());
GUI::MessageDialog dialog(warningMsg);
dialog.runModal();
}