Yet another try at the wxString / std::string / i18n mess.
[dcpomatic.git] / src / wx / film_viewer.cc
index a40a3c78df34b2892b5de52bed3e40aab28f888d..a7f370f00188c8acc8a65dee722783ee8680c75e 100644 (file)
@@ -105,7 +105,7 @@ FilmViewer::film_changed (Film::Property p)
                try {
                        _decoders = decoder_factory (_film, o);
                } catch (StringError& e) {
-                       error_dialog (this, wxString::Format (_("Could not open content file (%s)"), e.what()));
+                       error_dialog (this, std_to_wx (String::compose (wx_to_std (_("Could not open content file (%1)")), e.what())));
                        return;
                }
                
@@ -411,7 +411,7 @@ FilmViewer::get_frame ()
        } catch (DecodeError& e) {
                _play_button->SetValue (false);
                check_play_state ();
-               error_dialog (this, wxString::Format (_("Could not decode video for view (%s)"), e.what()));
+               error_dialog (this, std_to_wx (String::compose (wx_to_std (_("Could not decode video for view (%1)")), e.what())));
        }
 }