Show the old and new names of the ValueNode in the History dialog when renaming it.
[synfig.git] / 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()
 {