Fix i18n of an error report.
authorCarl Hetherington <cth@carlh.net>
Wed, 16 Sep 2015 22:42:22 +0000 (23:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 16 Sep 2015 22:42:22 +0000 (23:42 +0100)
src/tools/dcpomatic.cc

index 5abf47182a89a46e44dc131256c4678b062cffcb..ac07e1785daf0cd16066be4872bbbe41992ade19 100644 (file)
@@ -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);
                }