X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ftext_panel.cc;h=88857b0eb7b6a1acdbfc43054b70fb5ec687bd93;hp=27465ad6879ee6336db60bd5064e60842216f143;hb=886e0f9d08a241bef5baf328beb08a0d6996ae14;hpb=1f88a38a2a607c21988a403e76f315444c4be36b diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 27465ad68..88857b0eb 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -523,7 +523,13 @@ TextPanel::setup_sensitivity () string why_not; bool const can_reference = dcp && dcp->can_reference_text (_parent->film(), _original_type, why_not); - setup_refer_button (_reference, _reference_note, dcp, can_reference, why_not); + wxString cannot; + if (why_not.empty()) { + cannot = _("Cannot reference this DCP's subtitles or captions."); + } else { + cannot = _("Cannot reference this DCP's subtitles or captions: ") + std_to_wx(why_not); + } + setup_refer_button (_reference, _reference_note, dcp, can_reference, cannot); bool const reference = _reference->GetValue ();