Improve the appearance of a few error messages (#1187).
authorCarl Hetherington <cth@carlh.net>
Thu, 22 Mar 2018 22:01:17 +0000 (22:01 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 22 Mar 2018 22:01:17 +0000 (22:01 +0000)
src/lib/exceptions.cc
src/lib/film.cc

index 4e1e1ade3b8e5a1b9da47aa7cb1523ac67472b56..43a8f3b86bfc1fb45f9f1160158a15386037af92 100644 (file)
@@ -52,7 +52,7 @@ WriteFileError::WriteFileError (boost::filesystem::path f, int e)
 }
 
 MissingSettingError::MissingSettingError (string s)
-       : SettingError (s, String::compose (_("missing required setting %1"), s))
+       : SettingError (s, String::compose (_("Missing required setting %1"), s))
 {
 
 }
index 1d2123e5debcdd2e914edd1a28956e41dbcd528f..df4a5586e4f8a1b11f3584da2bfe46df42b9ca8f 100644 (file)
@@ -293,7 +293,7 @@ void
 Film::make_dcp ()
 {
        if (dcp_name().find ("/") != string::npos) {
-               throw BadSettingError (_("name"), _("cannot contain slashes"));
+               throw BadSettingError (_("name"), _("Cannot contain slashes"));
        }
 
        if (container() == 0) {
@@ -301,7 +301,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) {
@@ -318,10 +318,10 @@ Film::make_dcp ()
                }
                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"));
                }
        }