summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-16 23:42:22 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-16 23:42:22 +0100
commitcc471c30e8aee47f7ef704c2ace995b0fce3e872 (patch)
tree528cee1b30fc6b1a7946131a9e355e795428e4c1 /src/tools
parent78a95b32af03460182abccc62c784e696cf53e17 (diff)
Fix i18n of an error report.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 5abf47182..ac07e1785 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -919,9 +919,22 @@ private:
try {
throw;
} catch (FileError& e) {
- error_dialog (0, wxString::Format (_("An exception occurred: %s (%s).\n\n" + REPORT_PROBLEM), e.what(), e.file().string().c_str ()));
+ error_dialog (
+ 0,
+ wxString::Format (
+ _("An exception occurred: %s (%s)\n\n") + REPORT_PROBLEM,
+ std_to_wx (e.what()),
+ std_to_wx (e.file().string().c_str ())
+ )
+ );
} catch (exception& e) {
- error_dialog (0, wxString::Format (_("An exception occurred: %s.\n\n"), e.what ()) + " " + REPORT_PROBLEM);
+ error_dialog (
+ 0,
+ wxString::Format (
+ _("An exception occurred: %s.\n\n") + " " + REPORT_PROBLEM,
+ std_to_wx (e.what ())
+ )
+ );
} catch (...) {
error_dialog (0, _("An unknown exception occurred.") + " " + REPORT_PROBLEM);
}