X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fvaluedesclink.cpp;h=a3ec049e7239cc85a1df525b687c9557b2cab817;hb=828216f2051e31236e9edbc79be2cf7833abbc7e;hp=202e1dda8a5bc7032f622826a5cf0c6b1bc1c940;hpb=3d5774e06918f597c71486e3efc3edc712e809a8;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp index 202e1dd..a3ec049 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -34,6 +35,8 @@ #include #include +#include + #endif using namespace std; @@ -46,7 +49,7 @@ using namespace Action; ACTION_INIT(Action::ValueDescLink); ACTION_SET_NAME(Action::ValueDescLink,"value_desc_link"); -ACTION_SET_LOCAL_NAME(Action::ValueDescLink,"Link"); +ACTION_SET_LOCAL_NAME(Action::ValueDescLink,N_("Link")); ACTION_SET_TASK(Action::ValueDescLink,"connect"); ACTION_SET_CATEGORY(Action::ValueDescLink,Action::CATEGORY_VALUEDESC); ACTION_SET_PRIORITY(Action::ValueDescLink,0); @@ -203,9 +206,9 @@ Action::ValueDescLink::set_param(const synfig::String& name, const Action::Param { // Everything must be of the same type poison=true; - status_message = (_("Cannot link two values of different types ('") + - value_desc.get_value().type_name() + _("' and '") + - value_desc_list.front().get_value().type_name() +_("')")); + status_message = (strprintf(_("Cannot link two values of different types ('%s' and '%s')"), + ValueBase::type_local_name(value_desc.get_value_type()).c_str(), + ValueBase::type_local_name(value_desc_list.front().get_value_type()).c_str())); return false; }