Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / layersetdesc.cpp
index 3bd636c..d62ec6f 100644 (file)
@@ -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()
 {