X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fvaluedescconvert.cpp;h=a8105db3ecdba2d04ca81c482c7b11005ea820a6;hb=3aaa0f97639b12eb4fee879a8d540603c1ccdc1f;hp=2d894a3fe8fe25761d8e4de5cd6492831aae5e96;hpb=a36569b0f414c9964a8232f54820aee9f34b8379;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescconvert.cpp index 2d894a3..a8105db 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,15 @@ 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. 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() {