From: dooglus Date: Wed, 5 Sep 2007 15:57:41 +0000 (+0000) Subject: Use translatable, 'human readable' strings when displaying the valuenode types (eg... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4a851e51dfc20c03cda8c614edb91062741390b7;p=synfig.git Use translatable, 'human readable' strings when displaying the valuenode types (eg. in the 'Convert' menu). git-svn-id: http://svn.voria.com/code@605 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode.cpp b/synfig-core/trunk/src/synfig/valuenode.cpp index 34843d0..4426181 100644 --- a/synfig-core/trunk/src/synfig/valuenode.cpp +++ b/synfig-core/trunk/src/synfig/valuenode.cpp @@ -88,26 +88,28 @@ ValueNode::subsys_init() { book_=new LinkableValueNode::Book(); -#define ADD_VALUENODE(c,n) (*book_)[n].factory=reinterpret_cast(&c::create); (*book_)[n].check_type=&c::check_type;(*book_)[n].local_name=n -#define ADD_VALUENODE2(c,n) (*book_)[n].factory=reinterpret_cast(&c::create_from); (*book_)[n].check_type=&c::check_type;(*book_)[n].local_name=n - - ADD_VALUENODE(ValueNode_Linear,"linear"); - ADD_VALUENODE(ValueNode_Composite,"composite"); - ADD_VALUENODE(ValueNode_RadialComposite,"radial_composite"); - ADD_VALUENODE(ValueNode_Reference,"reference"); - ADD_VALUENODE(ValueNode_Scale,"scale"); - ADD_VALUENODE(ValueNode_SegCalcTangent,"segcalctangent"); - ADD_VALUENODE(ValueNode_SegCalcVertex,"segcalcvertex"); - ADD_VALUENODE(ValueNode_Stripes,"stripes"); - ADD_VALUENODE(ValueNode_Subtract,"subtract"); - //ADD_VALUENODE(ValueNode_TimedSwap,"timed_swap"); - ADD_VALUENODE(ValueNode_TwoTone,"twotone"); - ADD_VALUENODE(ValueNode_BLine,"bline"); - ADD_VALUENODE2(ValueNode_DynamicList,"dynamic_list"); - ADD_VALUENODE(ValueNode_GradientRotate,"gradient_rotate"); - ADD_VALUENODE(ValueNode_Sine,"sine"); +#define ADD_VALUENODE(c,n,l) (*book_)[n].factory=reinterpret_cast(&c::create); (*book_)[n].check_type=&c::check_type;(*book_)[n].local_name=l +#define ADD_VALUENODE2(c,n,l) (*book_)[n].factory=reinterpret_cast(&c::create_from); (*book_)[n].check_type=&c::check_type;(*book_)[n].local_name=l + + ADD_VALUENODE(ValueNode_Linear, "linear", _("Linear") );x + ADD_VALUENODE(ValueNode_Composite, "composite", _("Composite") );x + ADD_VALUENODE(ValueNode_RadialComposite,"radial_composite", _("Radial Composite") );x + ADD_VALUENODE(ValueNode_Reference, "reference", _("Reference") );x + ADD_VALUENODE(ValueNode_Scale, "scale", _("Scale") );x + ADD_VALUENODE(ValueNode_SegCalcTangent, "segcalctangent", _("Seg Calc Tangent") );x + ADD_VALUENODE(ValueNode_SegCalcVertex, "segcalcvertex", _("Seg Calc Vertex") );x + ADD_VALUENODE(ValueNode_Stripes, "stripes", _("Stripes") );x + ADD_VALUENODE(ValueNode_Subtract, "subtract", _("Subtract") );x + //ADD_VALUENODE(ValueNode_TimedSwap, "timed_swap", _("Timed Swap") );x + ADD_VALUENODE(ValueNode_TwoTone, "twotone", _("Two-Tone") );x + ADD_VALUENODE(ValueNode_BLine, "bline", _("BLine") );x + ADD_VALUENODE2(ValueNode_DynamicList, "dynamic_list", _("Dynamic List") );x + ADD_VALUENODE(ValueNode_GradientRotate, "gradient_rotate", _("Gradient Rotate") );x + ADD_VALUENODE(ValueNode_Sine, "sine", _("Sine") );x #undef ADD_VALUENODE +#undef ADD_VALUENODE2 + return true; } diff --git a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp index bfa02c4..5797825 100644 --- a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp @@ -265,7 +265,7 @@ ValueNode_RadialComposite::get_name()const String ValueNode_RadialComposite::get_local_name()const { - return _("RadialComposite"); + return _("Radial Composite"); } bool diff --git a/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp b/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp index 659f8e5..3755f89 100644 --- a/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp @@ -101,7 +101,7 @@ ValueNode_SegCalcTangent::get_name()const String ValueNode_SegCalcTangent::get_local_name()const { - return _("SegCalcTangent"); + return _("Seg Calc Tangent"); } bool diff --git a/synfig-core/trunk/src/synfig/valuenode_segcalcvertex.cpp b/synfig-core/trunk/src/synfig/valuenode_segcalcvertex.cpp index 0e8e6b0..46879c5 100644 --- a/synfig-core/trunk/src/synfig/valuenode_segcalcvertex.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_segcalcvertex.cpp @@ -95,7 +95,7 @@ ValueNode_SegCalcVertex::get_name()const String ValueNode_SegCalcVertex::get_local_name()const { - return _("SegCalcVertex"); + return _("Seg Calc Vertex"); } bool