X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Flayerencapsulate.cpp;h=183768838d80940ba94450a1a1a6c07e2420d89e;hb=2349d242e18afb3d3f440dba872cb7b5b40e7096;hp=1ee585ca7bee03b05ec046f1b3e4cb532779c52d;hpb=37600b4b217caa5e316984ec0b035c5e8f9698af;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp b/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp index 1ee585c..1837688 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layerencapsulate.cpp @@ -35,6 +35,8 @@ #include "layerremove.h" #include +#include + #endif using namespace std; @@ -45,9 +47,9 @@ 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,"Encapsulate"); +ACTION_SET_LOCAL_NAME(Action::LayerEncapsulate,N_("Encapsulate")); ACTION_SET_TASK(Action::LayerEncapsulate,"encapsulate"); ACTION_SET_CATEGORY(Action::LayerEncapsulate,Action::CATEGORY_LAYER); ACTION_SET_PRIORITY(Action::LayerEncapsulate,0); @@ -64,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() { @@ -130,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)