X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fvaluedescexport.cpp;h=fdedc372b623a978a48e714a6fdb9b7d3d18510d;hb=acb13618841e7cecba6f4c989b7670909f8ac235;hp=77a68a4612ccdf805a5d1a01b29974ef9ad1a1d1;hpb=c6af6e1c3816eb3b15c573089b32e6ae65cd2f49;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp index 77a68a4..fdedc37 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp @@ -2,10 +2,11 @@ /*! \file valuedescexport.cpp ** \brief Template File ** -** $Id: valuedescexport.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) 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 @@ -38,6 +39,8 @@ #include #include +#include + #endif using namespace std; @@ -48,14 +51,14 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::ValueDescExport); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescExport); ACTION_SET_NAME(Action::ValueDescExport,"value_desc_export"); -ACTION_SET_LOCAL_NAME(Action::ValueDescExport,"Export"); +ACTION_SET_LOCAL_NAME(Action::ValueDescExport,N_("Export")); ACTION_SET_TASK(Action::ValueDescExport,"export"); ACTION_SET_CATEGORY(Action::ValueDescExport,Action::CATEGORY_VALUEDESC); ACTION_SET_PRIORITY(Action::ValueDescExport,0); ACTION_SET_VERSION(Action::ValueDescExport,"0.0"); -ACTION_SET_CVS_ID(Action::ValueDescExport,"$Id: valuedescexport.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $"); +ACTION_SET_CVS_ID(Action::ValueDescExport,"$Id$"); /* === G L O B A L S ======================================================= */ @@ -67,6 +70,15 @@ Action::ValueDescExport::ValueDescExport() { } +synfig::String +Action::ValueDescExport::get_local_name()const +{ + // TRANSLATORS: This is used in the 'history' dialog when a ValueNode is exported. The first %s is what is exported, the 2nd is the name it is given. + return strprintf(_("Export '%s' as '%s'"), + value_desc.get_description(false).c_str(), + name.c_str()); +} + Action::ParamVocab Action::ValueDescExport::get_param_vocab() {