From 6af8e5d25649ab2e52437b8cb48d24bd7288c75d Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 13 Jan 2008 10:37:49 +0000 Subject: [PATCH] Improve the entry in the History dialog made when a ValueNode is converted. git-svn-id: http://svn.voria.com/code@1339 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp index 2d894a3..8737144 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp @@ -54,7 +54,7 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::ValueDescConvert); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescConvert); ACTION_SET_NAME(Action::ValueDescConvert,"value_desc_convert"); ACTION_SET_LOCAL_NAME(Action::ValueDescConvert,N_("Convert")); ACTION_SET_TASK(Action::ValueDescConvert,"convert"); @@ -74,6 +74,13 @@ Action::ValueDescConvert::ValueDescConvert() time=(Time::begin()-1); } +synfig::String +Action::ValueDescConvert::get_local_name()const +{ + // TRANSLATORS: This is used in the 'history' dialog when a ValueNode is converted. %s is the local name of the valuenode's type. + return strprintf(_("Convert to '%s'"), LinkableValueNode::book()[type].local_name.c_str()); +} + Action::ParamVocab Action::ValueDescConvert::get_param_vocab() { -- 2.7.4