From 2e7fd51065ba36fc990b825f2842da8baa2fed39 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 13 Jan 2008 22:46:44 +0000 Subject: [PATCH] Import the History dialog's display when ValueNodes are exported. git-svn-id: http://svn.voria.com/code@1349 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp index 0ae1453..5f85105 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp @@ -50,7 +50,7 @@ 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,N_("Export")); ACTION_SET_TASK(Action::ValueDescExport,"export"); @@ -69,6 +69,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() { -- 2.7.4