X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Flayersetdesc.cpp;h=4dc570b0d66931a593006da8714df7ef6c3e2821;hb=343b52e397572ae6630ad0f128de1290f89b8f81;hp=e0e2cf5151ad4a687efa68b2c60f96727493ca16;hpb=837b63e9fb829d66d43f4f169861f8979f76820d;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp b/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp index e0e2cf5..4dc570b 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layersetdesc.cpp @@ -32,6 +32,8 @@ #include "layersetdesc.h" #include +#include + #endif using namespace std; @@ -42,9 +44,9 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::LayerSetDesc); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerSetDesc); ACTION_SET_NAME(Action::LayerSetDesc,"layer_set_desc"); -ACTION_SET_LOCAL_NAME(Action::LayerSetDesc,_("Set Layer Description")); +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); ACTION_SET_PRIORITY(Action::LayerSetDesc,0); @@ -63,6 +65,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() {