Import the History dialog's display when ValueNodes are exported.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 13 Jan 2008 22:46:44 +0000 (22:46 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 13 Jan 2008 22:46:44 +0000 (22:46 +0000)
git-svn-id: http://svn.voria.com/code@1349 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp

index 0ae1453..5f85105 100644 (file)
@@ -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()
 {