X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Flayersetdesc.cpp;h=d62ec6f188a67c71982f4ed10f65608ad85d4860;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=3bd636c1da87c9318e1cf29ac4542bd1f87e1b54;hpb=8ef042c40521681cea99944097c4f90a5ac6cf74;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp b/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp index 3bd636c..d62ec6f 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 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 @@ -44,8 +45,8 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::LayerSetDesc); -ACTION_SET_NAME(Action::LayerSetDesc,"layer_set_desc"); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerSetDesc); +ACTION_SET_NAME(Action::LayerSetDesc,"LayerSetDesc"); ACTION_SET_LOCAL_NAME(Action::LayerSetDesc,N_("Set Layer Description")); ACTION_SET_TASK(Action::LayerSetDesc,"set_desc"); ACTION_SET_CATEGORY(Action::LayerSetDesc,Action::CATEGORY_LAYER); @@ -65,6 +66,16 @@ Action::LayerSetDesc::LayerSetDesc() { } +synfig::String +Action::LayerSetDesc::get_local_name()const +{ + return strprintf("%s: '%s' -> '%s'", + _("Set Layer Description"), + /* TRANSLATORS: this is the string used in the history dialog when renaming a layer to/from its default name */ + old_description.empty() ? _("[default]") : old_description.c_str(), + new_description.empty() ? _("[default]") : new_description.c_str()); +} + Action::ParamVocab Action::LayerSetDesc::get_param_vocab() {