add locale-guard when saving engine states, also #6418
[ardour.git] / gtk2_ardour / engine_dialog.cc
index e54829000f7a859166f85c83cf339703af64d345..3e9b12348502b510c0fbec87ec69b1392dafcdb4 100644 (file)
@@ -553,7 +553,7 @@ EngineControl::build_no_control_notebook ()
        vector<string> strings;
        AttachOptions xopt = AttachOptions (FILL|EXPAND);
        int row = 1; // row zero == backend combo
-       const string msg = string_compose (_("The %1 audio backend was configured and started externally.\nThis limits your control over it."), backend->name());
+       const string msg = string_compose (_("%1 is already running. %2 will connect to it and use the existing settings."), backend->name(), PROGRAM_NAME);
 
        label = manage (new Label);
        label->set_markup (string_compose ("<span weight=\"bold\" foreground=\"red\">%1</span>", msg));
@@ -1537,6 +1537,8 @@ EngineControl::maybe_display_saved_state ()
 XMLNode&
 EngineControl::get_state ()
 {
+       LocaleGuard lg (X_("C"));
+
        XMLNode* root = new XMLNode ("AudioMIDISetup");
        std::string path;