summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-27 12:26:41 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-27 12:26:41 +0000
commitd3167c49a0b497a288529a837d2ca3eb5121fb37 (patch)
treefd7a2278fb70bf9e2cec3fc253261631a64fd372
parent419bcdc816802e50fdebb89bc9dd4a73ede103f5 (diff)
Another try at the wxString / std / i18n confusions.
-rw-r--r--src/wx/audio_dialog.cc2
-rw-r--r--src/wx/film_editor.cc2
-rw-r--r--src/wx/film_viewer.cc4
-rw-r--r--src/wx/gain_calculator_dialog.cc2
-rw-r--r--src/wx/job_wrapper.cc4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc
index ba7ddd8f7..3e43d484f 100644
--- a/src/wx/audio_dialog.cc
+++ b/src/wx/audio_dialog.cc
@@ -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 (std_to_wx (String::compose (wx_to_std (_("DVD-o-matic audio - %1")), _film->name())));
+ SetTitle (wxString::Format (_("DVD-o-matic audio - %1"), std_to_wx(_film->name()).data()));
}
void
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc
index 4ef30fd05..a94ed7b2d 100644
--- a/src/wx/film_editor.cc
+++ b/src/wx/film_editor.cc
@@ -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, std_to_wx (String::compose (wx_to_std (_("Could not set content: %1")), e.what ())));
+ error_dialog (this, wxString::Format (_("Could not set content: %1"), std_to_wx (e.what()).data()));
}
}
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index a7f370f00..08eade4d0 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -105,7 +105,7 @@ FilmViewer::film_changed (Film::Property p)
try {
_decoders = decoder_factory (_film, o);
} catch (StringError& e) {
- error_dialog (this, std_to_wx (String::compose (wx_to_std (_("Could not open content file (%1)")), e.what())));
+ error_dialog (this, wxString::Format (_("Could not open content file (%s)"), std_to_wx(e.what()).data()));
return;
}
@@ -411,7 +411,7 @@ FilmViewer::get_frame ()
} catch (DecodeError& e) {
_play_button->SetValue (false);
check_play_state ();
- error_dialog (this, std_to_wx (String::compose (wx_to_std (_("Could not decode video for view (%1)")), e.what())));
+ error_dialog (this, wxString::Format (_("Could not decode video for view (%s)"), std_to_wx(e.what()).data()));
}
}
diff --git a/src/wx/gain_calculator_dialog.cc b/src/wx/gain_calculator_dialog.cc
index 7f4b774c0..22e6b447a 100644
--- a/src/wx/gain_calculator_dialog.cc
+++ b/src/wx/gain_calculator_dialog.cc
@@ -24,7 +24,7 @@
using namespace boost;
GainCalculatorDialog::GainCalculatorDialog (wxWindow* parent)
- : wxDialog (parent, wxID_ANY, wxString (_("Gain Calculator")))
+ : wxDialog (parent, wxID_ANY, _("Gain Calculator"))
{
wxFlexGridSizer* table = new wxFlexGridSizer (2, 6, 6);
table->AddGrowableCol (1, 1);
diff --git a/src/wx/job_wrapper.cc b/src/wx/job_wrapper.cc
index f0b506ba5..d6ae828b4 100644
--- a/src/wx/job_wrapper.cc
+++ b/src/wx/job_wrapper.cc
@@ -35,8 +35,8 @@ JobWrapper::make_dcp (wxWindow* parent, shared_ptr<Film> film)
try {
film->make_dcp ();
} catch (BadSettingError& e) {
- error_dialog (parent, std_to_wx (String::compose (wx_to_std (_("Bad setting for %1 (%2)")), e.setting(), e.what())));
+ error_dialog (parent, wxString::Format (_("Bad setting for %1 (%2)"), std_to_wx(e.setting()).data(), std_to_wx(e.what()).data()));
} catch (std::exception& e) {
- error_dialog (parent, std_to_wx (String::compose (wx_to_std (_("Could not make DCP: %1")), e.what())));
+ error_dialog (parent, wxString::Format (_("Could not make DCP: %1"), std_to_wx(e.what()).data()));
}
}