Added copyright lines for files I've edited this year.
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / layerencapsulate.cpp
index 3c551c3..898b828 100644 (file)
@@ -2,10 +2,11 @@
 /*!    \file layerencapsulate.cpp
 **     \brief Template File
 **
-**     $Id: layerencapsulate.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
+**     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     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
@@ -34,6 +35,8 @@
 #include "layerremove.h"
 #include <synfigapp/canvasinterface.h>
 
+#include <synfigapp/general.h>
+
 #endif
 
 using namespace std;
@@ -44,14 +47,14 @@ 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);
 ACTION_SET_VERSION(Action::LayerEncapsulate,"0.0");
-ACTION_SET_CVS_ID(Action::LayerEncapsulate,"$Id: layerencapsulate.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $");
+ACTION_SET_CVS_ID(Action::LayerEncapsulate,"$Id$");
 
 /* === G L O B A L S ======================================================= */
 
@@ -63,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()
 {
@@ -129,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)