From 0c9e861caa8b1eed5068942edc35d5f91bac816e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 May 2012 06:24:07 +0000 Subject: Work towards translatable strings and a cleaner log interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4338 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginUI.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/client/PluginUI.cpp') diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 939716ef..59d4c1b4 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -24,7 +24,6 @@ #include "lv2/lv2plug.in/ns/extensions/ui/ui.h" using namespace std; -using namespace Raul; namespace Ingen { namespace Client { @@ -42,8 +41,8 @@ lv2_ui_write(SuilController controller, const NodeModel::Ports& ports = ui->node()->ports(); if (port_index >= ports.size()) { - error << "UI for " << ui->node()->plugin()->uri() - << " tried to write to non-existent port " << port_index << endl; + Raul::error << (Raul::fmt("%1% UI tried to write to invalid port %2%") + % ui->node()->plugin()->uri() % port_index) << endl; return; } @@ -71,8 +70,8 @@ lv2_ui_write(SuilController controller, val); } else { - warn << "Unknown value format " << format - << " from LV2 UI " << ui->node()->plugin()->uri() << endl; + Raul::warn(Raul::fmt("Unknown value format %1% from LV2 UI\n") + % format % ui->node()->plugin()->uri()); } } @@ -145,7 +144,7 @@ PluginUI::create(Ingen::Shared::World* world, if (instance) { ret->_instance = instance; } else { - error << "Failed to instantiate LV2 UI" << endl; + Raul::error << "Failed to instantiate LV2 UI" << endl; ret.reset(); } -- cgit v1.2.1