From: dooglus Date: Mon, 14 Jan 2008 00:28:32 +0000 (+0000) Subject: Show the old and new names of the ValueNode in the History dialog when renaming it. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5427871f0dbad9e44594af867615f6b0847c063d;p=synfig.git Show the old and new names of the ValueNode in the History dialog when renaming it. git-svn-id: http://svn.voria.com/code@1353 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuenoderename.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuenoderename.cpp index 54957b2..b45bde0 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuenoderename.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuenoderename.cpp @@ -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() {