/* === M A C R O S ========================================================= */
-ACTION_INIT(Action::LayerAdd);
+ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerAdd);
ACTION_SET_NAME(Action::LayerAdd,"layer_add");
ACTION_SET_LOCAL_NAME(Action::LayerAdd,N_("Add Layer"));
ACTION_SET_TASK(Action::LayerAdd,"add");
{
}
+synfig::String
+Action::LayerAdd::get_local_name()const
+{
+ if (layer)
+ return strprintf("%s '%s'", _("Add Layer"), layer->get_local_name().c_str());
+ else
+ return _("Add Layer");
+}
+
Action::ParamVocab
Action::LayerAdd::get_param_vocab()
{