Show the old and new names of the ValueNode in the History dialog when renaming it.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 14 Jan 2008 00:28:32 +0000 (00:28 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 14 Jan 2008 00:28:32 +0000 (00:28 +0000)
git-svn-id: http://svn.voria.com/code@1353 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 54957b2..b45bde0 100644 (file)
@@ -44,7 +44,7 @@ using namespace Action;
 
 /* === M A C R O S ========================================================= */
 
-ACTION_INIT(Action::ValueNodeRename);
+ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueNodeRename);
 ACTION_SET_NAME(Action::ValueNodeRename,"value_node_rename");
 ACTION_SET_LOCAL_NAME(Action::ValueNodeRename,N_("Rename ValueNode"));
 ACTION_SET_TASK(Action::ValueNodeRename,"rename");
@@ -63,6 +63,15 @@ Action::ValueNodeRename::ValueNodeRename()
 {
 }
 
+synfig::String
+Action::ValueNodeRename::get_local_name()const
+{
+       // TRANSLATORS: This is used in the 'history' dialog when a ValueNode is renamed.
+       return strprintf(_("Rename ValueNode from '%s' to '%s'"),
+                                        old_name.c_str(),
+                                        new_name.c_str());
+}
+
 Action::ParamVocab
 Action::ValueNodeRename::get_param_vocab()
 {