From 99bd2febc090ec3bf10463b180c388fe55474b46 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 13 Jan 2008 22:03:46 +0000 Subject: [PATCH] Improve the 'Disconnect' message in the History dialog. Patch from Timo Paulssen (timonator on IRC). git-svn-id: http://svn.voria.com/code@1347 1f10aa63-cdf2-0310-b900-c93c546f37ac --- .../trunk/src/synfigapp/actions/valuedescdisconnect.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescdisconnect.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescdisconnect.cpp index 091ab9a..c703b6d 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescdisconnect.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescdisconnect.cpp @@ -50,7 +50,7 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::ValueDescDisconnect); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescDisconnect); ACTION_SET_NAME(Action::ValueDescDisconnect,"value_desc_disconnect"); ACTION_SET_LOCAL_NAME(Action::ValueDescDisconnect,N_("Disconnect")); ACTION_SET_TASK(Action::ValueDescDisconnect,"disconnect"); @@ -70,6 +70,16 @@ Action::ValueDescDisconnect::ValueDescDisconnect(): { } +synfig::String +Action::ValueDescDisconnect::get_local_name()const +{ + // TRANSLATORS: This is used in the History dialog when a ValueNode is disconnected. + return strprintf(_("Disconnect %s"), + value_desc + ? value_desc.get_description().c_str() + : _("ValueDesc")); +} + Action::ParamVocab Action::ValueDescDisconnect::get_param_vocab() { -- 2.7.4