Some error message formatting tidy-ups.
authorCarl Hetherington <cth@carlh.net>
Fri, 20 Jan 2017 21:23:28 +0000 (21:23 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 20 Jan 2017 21:23:28 +0000 (21:23 +0000)
src/lib/film.cc
src/tools/dcpomatic.cc

index b337c50deffd70894fea9c2b9da1cb21476213b3..9ffe09f6b811953e36e3fb6ea6b7a4e1fca38968 100644 (file)
@@ -293,7 +293,7 @@ Film::make_dcp ()
        }
 
        if (content().empty()) {
-               throw runtime_error (_("you must add some content to the DCP before creating it."));
+               throw runtime_error (_("you must add some content to the DCP before creating it"));
        }
 
        if (dcp_content_type() == 0) {
@@ -306,14 +306,14 @@ Film::make_dcp ()
 
        BOOST_FOREACH (shared_ptr<const Content> i, content ()) {
                if (!i->paths_valid()) {
-                       throw runtime_error (_("some of your content is missing."));
+                       throw runtime_error (_("some of your content is missing"));
                }
                shared_ptr<const DCPContent> dcp = dynamic_pointer_cast<const DCPContent> (i);
                if (dcp && dcp->needs_kdm()) {
-                       throw runtime_error (_("some of your content needs a KDM."));
+                       throw runtime_error (_("some of your content needs a KDM"));
                }
                if (dcp && dcp->needs_assets()) {
-                       throw runtime_error (_("some of your content needs an OV."));
+                       throw runtime_error (_("some of your content needs an OV"));
                }
        }
 
index 972436c474820f21427519386068db34669f0c9c..2b6a62f11f4ec4730fe5db983fc91183bbe5da78 100644 (file)
@@ -507,7 +507,7 @@ private:
                } catch (BadSettingError& e) {
                        error_dialog (this, wxString::Format (_("Bad setting for %s (%s)"), std_to_wx(e.setting()).data(), std_to_wx(e.what()).data()));
                } catch (std::exception& e) {
-                       error_dialog (this, wxString::Format (_("Could not make DCP: %s"), std_to_wx(e.what()).data()));
+                       error_dialog (this, wxString::Format (_("Could not make DCP: %s."), std_to_wx(e.what()).data()));
                }
        }