X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Flayerencapsulate.cpp;h=898b8284403e8f5b252daa4a46d05b3427e8bdca;hb=80031a8a28bb53f89ad750ec94a1b447b419d616;hp=e548ab430f277787b1d8787b1022574cf34236e7;hpb=8ef042c40521681cea99944097c4f90a5ac6cf74;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp b/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp index e548ab4..898b828 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 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 @@ -47,7 +47,7 @@ using namespace Action; /* === 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"); @@ -66,6 +66,12 @@ Action::LayerEncapsulate::LayerEncapsulate() { } +synfig::String +Action::LayerEncapsulate::get_local_name()const +{ + return get_layer_descriptions(layers, _("Encapsulate Layer"), _("Encapsulate Layers")); +} + Action::ParamVocab Action::LayerEncapsulate::get_param_vocab() { @@ -132,7 +138,7 @@ Action::LayerEncapsulate::prepare() 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)