Fix reversed logic in legacy tempo secton detection
[ardour.git] / libs / ardour / rc_configuration.cc
index f6366b54638f9bdfb1970082bfda01858366b2f1..e16bf40fb7b0ca274b8574a28b56629e8d8e4063 100644 (file)
@@ -35,8 +35,9 @@
 #include "ardour/port.h"
 #include "ardour/rc_configuration.h"
 #include "ardour/session_metadata.h"
+#include "ardour/types_convert.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace std;
@@ -89,7 +90,7 @@ RCConfiguration::load_state ()
                }
 
                if (statbuf.st_size != 0) {
-                       info << string_compose (_("Loading system configuration file %1"), rcfile) << endl;
+                       info << string_compose (_("Loading system configuration file %1"), rcfile) << endmsg;
 
                        XMLTree tree;
                        if (!tree.read (rcfile.c_str())) {
@@ -117,7 +118,7 @@ RCConfiguration::load_state ()
                }
 
                if (statbuf.st_size != 0) {
-                       info << string_compose (_("Loading user configuration file %1"), rcfile) << endl;
+                       info << string_compose (_("Loading user configuration file %1"), rcfile) << endmsg;
 
                        XMLTree tree;
                        if (!tree.read (rcfile)) {
@@ -220,6 +221,7 @@ RCConfiguration::set_state (const XMLNode& root, int version)
        XMLNodeList nlist = root.children();
        XMLNodeConstIterator niter;
        XMLNode *node;
+       LocaleGuard lg;
 
        Stateful::save_extra_xml (root);