X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_player.cc;h=a75f6b9f40d2422fde57527920c1e50f37cf4872;hb=f1dbcec7552052856369631e77c5eb160badd619;hp=f6f329c42e0fa41cc487441de6f1b21624b673b3;hpb=166fa3304a8125c3dfb311df153f4934e9c1764d;p=dcpomatic.git diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index f6f329c42..a75f6b9f4 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -289,13 +289,12 @@ private: DCPOMATIC_ASSERT (dcp); try { dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()), MAX_KDM_SIZE))); + dcp->examine (shared_ptr()); } catch (exception& e) { - error_dialog (this, wxString::Format (_("Could not load KDM (%s)"), std_to_wx(e.what()))); + error_dialog (this, wxString::Format (_("Could not load KDM.")), std_to_wx(e.what())); d->Destroy (); return; } - - dcp->examine (shared_ptr()); } d->Destroy (); @@ -483,7 +482,7 @@ private: try { _frame->load_dcp (_dcp_to_load); } catch (exception& e) { - error_dialog (0, std_to_wx (String::compose (wx_to_std (_("Could not load DCP %1 (%2)")), _dcp_to_load, e.what()))); + error_dialog (0, std_to_wx (String::compose (wx_to_std (_("Could not load DCP %1.")), _dcp_to_load)), std_to_wx(e.what())); } } @@ -497,7 +496,7 @@ private: } catch (exception& e) { - error_dialog (0, wxString::Format ("DCP-o-matic Player could not start: %s", std_to_wx(e.what()))); + error_dialog (0, _("DCP-o-matic Player could not start."), std_to_wx(e.what())); return true; }