X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fmissing_file_dialog.cc;h=c7cb7f5edccf8a08902bde16c6b0a7f9d54de28c;hb=92e5a13fd41eba37a2634caf921606b7d915c557;hp=df09d8c21811365fe60e7bda2995d60b9ad62afb;hpb=429ff2547b2652a86d32799fbab9b83ceaeb5cdd;p=ardour.git
diff --git a/gtk2_ardour/missing_file_dialog.cc b/gtk2_ardour/missing_file_dialog.cc
index df09d8c218..c7cb7f5edc 100644
--- a/gtk2_ardour/missing_file_dialog.cc
+++ b/gtk2_ardour/missing_file_dialog.cc
@@ -23,6 +23,7 @@
#include "ardour/session.h"
#include "missing_file_dialog.h"
+#include "i18n.h"
using namespace Gtk;
using namespace std;
@@ -42,6 +43,7 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT
set_session (s);
add_button (_("Done"), RESPONSE_OK);
+ set_default_response (RESPONSE_OK);
string typestr;
@@ -57,12 +59,11 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT
string dirstr;
dirstr = s->source_search_path (type);
- cerr << "Search path = " << dirstr << endl;
replace_all (dirstr, ":", "\n");
msg.set_justify (JUSTIFY_CENTER);
- msg.set_markup (string_compose (_("Ardour cannot find the %1 file\n\n%2\n\nin any of these folders:\n\n\
-%3\n\n"), typestr, path, dirstr));
+ msg.set_markup (string_compose (_("%1 cannot find the %2 file\n\n%3\n\nin any of these folders:\n\n\
+%4\n\n"), PROGRAM_NAME, typestr, Glib::Markup::escape_text(path), Glib::Markup::escape_text (dirstr)));
HBox* hbox = manage (new HBox);
hbox->pack_start (msg, false, true);
@@ -81,7 +82,7 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT
button_packer_box->pack_start (stop_loading_button, false, false);
button_packer_box->show_all ();
-
+
get_vbox()->set_spacing (6);
get_vbox()->set_border_width (25);
get_vbox()->set_homogeneous (false);
@@ -139,8 +140,8 @@ MissingFileDialog::add_chosen ()
if (!str.empty()) {
str += ':';
- }
-
+ }
+
str += newdir;
switch (filetype) {