From 86dda6552c53fd89f859a09dbcc8e8d3857f1ca9 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 14 Jan 2008 00:06:57 +0000 Subject: [PATCH] Improve the History dialog's "Connect" entry. git-svn-id: http://svn.voria.com/code@1351 1f10aa63-cdf2-0310-b900-c93c546f37ac --- .../trunk/src/synfigapp/actions/valuedescconnect.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp index 2979ed8..eea57f0 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp @@ -48,7 +48,7 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::ValueDescConnect); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescConnect); ACTION_SET_NAME(Action::ValueDescConnect,"value_desc_connect"); ACTION_SET_LOCAL_NAME(Action::ValueDescConnect,N_("Connect")); ACTION_SET_TASK(Action::ValueDescConnect,"connect"); @@ -67,6 +67,15 @@ Action::ValueDescConnect::ValueDescConnect() { } +synfig::String +Action::ValueDescConnect::get_local_name()const +{ + // TRANSLATORS: This is used in the 'history' dialog when a connection is made. + return strprintf(_("Connect '%s' to '%s'"), + value_desc.get_description(false).c_str(), + value_node->get_id().c_str()); +} + Action::ParamVocab Action::ValueDescConnect::get_param_vocab() { -- 2.7.4