Fix a few format strings.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Mar 2013 14:49:13 +0000 (14:49 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Mar 2013 14:49:13 +0000 (14:49 +0000)
src/wx/audio_dialog.cc
src/wx/film_editor.cc
src/wx/job_wrapper.cc

index 3e43d484fda83ed9943d075a42d92133f19550f3..3d17988b617bb39f980bd8c1ccd2f992537ad7e7 100644 (file)
@@ -98,7 +98,7 @@ AudioDialog::set_film (boost::shared_ptr<Film> f)
        _film_changed_connection = _film->Changed.connect (bind (&AudioDialog::film_changed, this, _1));
        _film_audio_analysis_succeeded_connection = _film->AudioAnalysisSucceeded.connect (bind (&AudioDialog::try_to_load_analysis, this));
 
-       SetTitle (wxString::Format (_("DVD-o-matic audio - %1"), std_to_wx(_film->name()).data()));
+       SetTitle (wxString::Format (_("DVD-o-matic audio - %s"), std_to_wx(_film->name()).data()));
 }
 
 void
index a94ed7b2d8e3bc056f90211a65b072d32c17384d..c1d679665026d82b3160d2c8f46f68fb8b65699e 100644 (file)
@@ -501,7 +501,7 @@ FilmEditor::content_changed (wxCommandEvent &)
                _film->set_content (wx_to_std (_content->GetPath ()));
        } catch (std::exception& e) {
                _content->SetPath (std_to_wx (_film->directory ()));
-               error_dialog (this, wxString::Format (_("Could not set content: %1"), std_to_wx (e.what()).data()));
+               error_dialog (this, wxString::Format (_("Could not set content: %s"), std_to_wx (e.what()).data()));
        }
 }
 
index d6ae828b480d5206c3908941b399ba2ddcd3572b..df4aa7d2e78a740c786caffb1250a798c065a864 100644 (file)
@@ -35,8 +35,8 @@ JobWrapper::make_dcp (wxWindow* parent, shared_ptr<Film> film)
        try {
                film->make_dcp ();
        } catch (BadSettingError& e) {
-               error_dialog (parent, wxString::Format (_("Bad setting for %1 (%2)"), std_to_wx(e.setting()).data(), std_to_wx(e.what()).data()));
+               error_dialog (parent, wxString::Format (_("Bad setting for %s (%s)"), std_to_wx(e.setting()).data(), std_to_wx(e.what()).data()));
        } catch (std::exception& e) {
-               error_dialog (parent, wxString::Format (_("Could not make DCP: %1"), std_to_wx(e.what()).data()));
+               error_dialog (parent, wxString::Format (_("Could not make DCP: %s"), std_to_wx(e.what()).data()));
        }
 }