diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-26 21:13:40 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-26 21:13:40 +0000 |
| commit | a97ae09e4e9946f168c38174cb83f7dd29235997 (patch) | |
| tree | 3ffaeba71d02da4afa1462e7e36bf4eb5f3fd9d1 /src/tools/dvdomatic.cc | |
| parent | d4b0043f4024d3b51fbb2b527994a569f3245a6c (diff) | |
Yet another try at the wxString / std::string / i18n mess.
Diffstat (limited to 'src/tools/dvdomatic.cc')
| -rw-r--r-- | src/tools/dvdomatic.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index 2ad41b2cb..f6dc587c9 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -71,7 +71,7 @@ public: { _dialog = new wxMessageDialog ( 0, - std_to_wx (String::compose ("Save changes to film \"%1\" before closing?", film->name())), + std_to_wx (String::compose (wx_to_std (_("Save changes to film \"%1\" before closing?")), film->name())), _("Film changed"), wxYES_NO | wxYES_DEFAULT | wxICON_QUESTION ); @@ -300,7 +300,7 @@ private: if (r == wxID_OK) { if (boost::filesystem::exists (d->get_path())) { - error_dialog (this, wxString::Format (_("The directory %s already exists."), d->get_path().c_str())); + error_dialog (this, std_to_wx (String::compose (wx_to_std (_("The directory %1 already exists.")), d->get_path().c_str()))); return; } @@ -328,7 +328,7 @@ private: } catch (std::exception& e) { wxString p = c->GetPath (); wxCharBuffer b = p.ToUTF8 (); - error_dialog (this, wxString::Format (_("Could not open film at %s (%s)"), p.data(), std_to_wx (e.what()))); + error_dialog (this, std_to_wx (String::compose (wx_to_std (_("Could not open film at %1 (%2)")), wx_to_std (p), e.what()))); } } |
