/* === M A C R O S ========================================================= */
-ACTION_INIT(Action::LayerEncapsulate);
+ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerEncapsulate);
ACTION_SET_NAME(Action::LayerEncapsulate,"layer_encapsulate");
ACTION_SET_LOCAL_NAME(Action::LayerEncapsulate,N_("Encapsulate"));
ACTION_SET_TASK(Action::LayerEncapsulate,"encapsulate");
{
}
+synfig::String
+Action::LayerEncapsulate::get_local_name()const
+{
+ return get_layer_descriptions(layers, _("Encapsulate Layer"), _("Encapsulate Layers"));
+}
+
Action::ParamVocab
Action::LayerEncapsulate::get_param_vocab()
{
return;
if(layers.empty())
- throw Error("No layers to encapsulate");
+ throw Error(_("No layers to encapsulate"));
// First create the new canvas and layer
if(!child_canvas)