Exceptions: translation support

This commit is contained in:
Abdullah Tahiri
2017-05-14 00:06:05 +02:00
committed by wmayer
parent a5080329d8
commit 3c630dc319
3 changed files with 52 additions and 6 deletions

View File

@@ -57,6 +57,7 @@
# include <Standard_Version.hxx>
# include <cmath>
# include <vector>
//# include <QtGlobal>
#endif
#include <boost/bind.hpp>
@@ -4167,7 +4168,7 @@ bool SketchObject::modifyBSplineKnotMultiplicity(int GeoId, int knotIndex, int m
int curmult = bsp->getMultiplicity(knotIndex);
if ( (curmult + multiplicityincr) > degree ) // zero is removing the knot, degree is just positional continuity
THROWM(Base::ValueError,"The multiplicity cannot be increased beyond the degree of the b-spline.");
THROWM(Base::ValueError,QT_TRANSLATE_NOOP("Exceptions","The multiplicity cannot be increased beyond the degree of the b-spline."));
if ( (curmult + multiplicityincr) < 0) // zero is removing the knot, degree is just positional continuity
THROWM(Base::ValueError,"The multiplicity cannot be decreased beyond zero.");