diff options
author | David Robillard <d@drobilla.net> | 2012-05-10 06:24:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-10 06:24:07 +0000 |
commit | 0c9e861caa8b1eed5068942edc35d5f91bac816e (patch) | |
tree | b241856ddf49e1b1192f8ea442d1733d9d31b2f2 /src/client/PluginUI.cpp | |
parent | 8ec295a0f2a40086ed83e8d2ad8ad38c8125bcb4 (diff) | |
download | ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.gz ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.bz2 ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.zip |
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
Diffstat (limited to 'src/client/PluginUI.cpp')
-rw-r--r-- | src/client/PluginUI.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
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(); } |