Basics of in-place i18n with support for wxStaticText and wxCheckBox.
[dcpomatic.git] / src / wx / message_dialog.cc
index b3cbb53fce7a57eda426383c703e1a5041dd9fd1..56258b1a0ebe0f5a40f7e97cb27b1231dc3c9609 100644 (file)
 
 #include "message_dialog.h"
 #include "wx_util.h"
+#include "static_text.h"
 
 MessageDialog::MessageDialog (wxWindow* parent, wxString title, wxString message)
        : wxDialog (parent, wxID_ANY, title)
 {
        wxSizer* sizer = new wxBoxSizer (wxVERTICAL);
-       wxStaticText* text = new wxStaticText (this, wxID_ANY, message);
+       wxStaticText* text = new StaticText (this, message);
        sizer->Add (text, 1, wxALL, DCPOMATIC_DIALOG_BORDER);
        wxSizer* buttons = CreateSeparatedButtonSizer (wxCLOSE);
        if (buttons) {