Allow customisation of error report email address.
[dcpomatic.git] / src / lib / job.cc
index 94c23aac68d2621c40c69b055d541dccda95cf6f..ee6ad4e700cfd03908bb3574b1827ca70a86fd63 100644 (file)
@@ -167,7 +167,7 @@ Job::run_wrapper ()
                if (!done) {
                        set_error (
                                e.what (),
-                               string (_("It is not known what caused this error.")) + "  " + REPORT_PROBLEM
+                               String::compose(_("It is not known what caused this error.  %1"), report_problem())
                                );
                }
 
@@ -202,7 +202,7 @@ Job::run_wrapper ()
                } else {
                        set_error (
                                e.what (),
-                               string (_("It is not known what caused this error.")) + "  " + REPORT_PROBLEM
+                               String::compose(_("It is not known what caused this error.  %1"), report_problem())
                                );
                }
 
@@ -262,7 +262,7 @@ Job::run_wrapper ()
 
                set_error (
                        e.what (),
-                       string (_("It is not known what caused this error.")) + "  " + REPORT_PROBLEM
+                       String::compose(_("It is not known what caused this error.  %1"), report_problem())
                        );
 
                set_progress (1);
@@ -272,7 +272,7 @@ Job::run_wrapper ()
 
                set_error (
                        _("Unknown error"),
-                       string (_("It is not known what caused this error.")) + "  " + REPORT_PROBLEM
+                       String::compose(_("It is not known what caused this error.  %1"), report_problem())
                        );
 
                set_progress (1);