enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / ardour / session_command.cc
index 2fdcfb17a2077b749a3b55d35642b4b3ab4be256..a99738a613dea2bab463323c5ee49d23012a4613 100644 (file)
@@ -43,7 +43,7 @@ class Command;
 using namespace PBD;
 using namespace ARDOUR;
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 void Session::register_with_memento_command_factory(PBD::ID id, PBD::StatefulDestructible *ptr)
 {
@@ -84,8 +84,8 @@ Session::memento_command_factory(XMLNode *n)
     }
 
     if (!child) {
-       error << _("Tried to reconstitute a MementoCommand with no contents, failing. id=%1") << id.to_s() << endmsg;
-       return 0;
+           error << string_compose (_("Tried to reconstitute a MementoCommand with no contents, failing. id=%1"), id.to_s()) << endmsg;
+           return 0;
     }
 
     /* create command */
@@ -145,7 +145,7 @@ Session::memento_command_factory(XMLNode *n)
     }
 
     /* we failed */
-    error << string_compose (_("could not reconstitute MementoCommand from XMLNode. object type = %1 id = %2"), obj_T, id.to_s()) << endmsg;
+    info << string_compose (_("could not reconstitute MementoCommand from XMLNode. object type = %1 id = %2"), obj_T, id.to_s()) << endmsg;
 
     return 0 ;
 }