**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007, 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
/* === 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");
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. The first %s is what is converted, the 2nd is the local name of the ValueNode's type.
+ return strprintf(_("Convert '%s' to ValueNode type '%s'"),
+ value_desc.get_description().c_str(),
+ LinkableValueNode::book()[type].local_name.c_str());
+}
+
Action::ParamVocab
Action::ValueDescConvert::get_param_vocab()
{