projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use translated versions of the type names everywhere other than in the .sif(z) files.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_stripes.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp
b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp
index
c881015
..
44399b4
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_stripes.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_stripes.cpp
@@
-1,6
+1,6
@@
/* === S Y N F I G ========================================================= */
/*! \file valuenode_stripes.cpp
/* === S Y N F I G ========================================================= */
/*! \file valuenode_stripes.cpp
-** \brief
Template File
+** \brief
Implementation of the "Stripes" valuenode conversion.
**
** $Id$
**
**
** $Id$
**
@@
-74,7
+74,7
@@
ValueNode_Stripes::create(const ValueBase& x)
if(id!=ValueBase::TYPE_GRADIENT)
{
assert(0);
if(id!=ValueBase::TYPE_GRADIENT)
{
assert(0);
- throw runtime_error(
"synfig::ValueNode_Stripes:Bad type "+ValueBase::type
_name(id));
+ throw runtime_error(
_("synfig::ValueNode_Stripes:Bad type ")+ValueBase::type_local
_name(id));
}
ValueNode_Stripes* value_node=new ValueNode_Stripes();
}
ValueNode_Stripes* value_node=new ValueNode_Stripes();
@@
-164,6
+164,7
@@
bool
ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle x)
{
assert(i>=0 && i<link_count());
ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle x)
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
switch(i)
{
case 0:
@@
-187,6
+188,7
@@
ValueNode::LooseHandle
ValueNode_Stripes::get_link_vfunc(int i)const
{
assert(i>=0 && i<link_count());
ValueNode_Stripes::get_link_vfunc(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
switch(i)
{
case 0:
@@
-211,6
+213,7
@@
String
ValueNode_Stripes::link_local_name(int i)const
{
assert(i>=0 && i<link_count());
ValueNode_Stripes::link_local_name(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
switch(i)
{
case 0:
@@
-221,14
+224,16
@@
ValueNode_Stripes::link_local_name(int i)const
return _("Stripe Count");
case 3:
return _("Width");
return _("Stripe Count");
case 3:
return _("Width");
+ default:
+ return String();
}
}
- return String();
}
String
ValueNode_Stripes::link_name(int i)const
{
assert(i>=0 && i<link_count());
}
String
ValueNode_Stripes::link_name(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
switch(i)
{
case 0:
@@
-239,8
+244,9
@@
ValueNode_Stripes::link_name(int i)const
return "stripes";
case 3:
return "width";
return "stripes";
case 3:
return "width";
+ default:
+ return String();
}
}
- return String();
}
int
}
int