Add missing GUI message.
[dcpomatic.git] / src / wx / verify_dcp_dialog.cc
index 07e3589e52bc4f0dfa2577b502ea3f8e831a0009..2f43f3c8f9d1b24dd1de7fd37d1f7b896fd8dcae 100644 (file)
@@ -106,6 +106,12 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                if (note.size()) {
                        message.Replace("%size", std_to_wx(dcp::raw_convert<string>(note.size().get())));
                }
+               if (note.id()) {
+                       message.Replace("%id", std_to_wx(note.id().get()));
+               }
+               if (note.other_id()) {
+                       message.Replace("%other_id", std_to_wx(note.other_id().get()));
+               }
                add_bullet (note.type(), message);
                counts[note.type()]++;
        };
@@ -419,6 +425,18 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                case dcp::VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT:
                        add(i, _("The XML in the subtitle asset %n has more than one namespace declaration."));
                        break;
+               case dcp::VerificationNote::Code::MISSING_LOAD_FONT_FOR_FONT:
+                       add(i, _("A subtitle or closed caption refers to a font with ID %id that does not have a corresponding <LoadFont> node."));
+                       break;
+               case dcp::VerificationNote::Code::MISSING_LOAD_FONT:
+                       add(i, _("The SMPTE subtitle asset %id has <Text> nodes but no <LoadFont> node"));
+                       break;
+               case dcp::VerificationNote::Code::MISMATCHED_ASSET_MAP_ID:
+                       add(i, _("The asset with ID %id in the asset map actually has an id of %other_id"));
+                       break;
+               case dcp::VerificationNote::Code::EMPTY_CONTENT_VERSION_LABEL_TEXT:
+                       add(i, _("The <LabelText> in a <ContentVersion> in CPL %id is empty"));
+                       break;
                }
        }