diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-03-17 18:27:46 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-03-17 18:27:46 +0400 |
commit | 1f6ae5e4fbc4a67afd9655d55f9930c196c9e754 (patch) | |
tree | 7f3a0911f733b7c8aa06cfef927bb064e4efb01a /source/blender/modifiers/intern/MOD_meshdeform.c | |
parent | e4cc4b3e952b479d4bcf04c47c81622a5a167dff (diff) |
Minor UI messages fixes, and enabling i18n for all modifier_setError() error messages.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshdeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshdeform.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c index 84d1b3c92ad..afee0e2c79e 100644 --- a/source/blender/modifiers/intern/MOD_meshdeform.c +++ b/source/blender/modifiers/intern/MOD_meshdeform.c @@ -39,6 +39,7 @@ #include "BLI_math.h" #include "BLI_utildefines.h" +#include "BLF_translation.h" #include "BKE_cdderivedmesh.h" #include "BKE_global.h" @@ -217,7 +218,7 @@ static void meshdeformModifier_do( } if(!cagedm) { - modifier_setError(md, "Can't get mesh from cage object."); + modifier_setError(md, TIP_("Can't get mesh from cage object.")); return; } @@ -245,16 +246,16 @@ static void meshdeformModifier_do( totcagevert= cagedm->getNumVerts(cagedm); if(mmd->totvert != totvert) { - modifier_setError(md, "Verts changed from %d to %d.", mmd->totvert, totvert); + modifier_setError(md, TIP_("Verts changed from %d to %d."), mmd->totvert, totvert); cagedm->release(cagedm); return; } else if (mmd->totcagevert != totcagevert) { - modifier_setError(md, "Cage verts changed from %d to %d.", mmd->totcagevert, totcagevert); + modifier_setError(md, TIP_("Cage verts changed from %d to %d."), mmd->totcagevert, totcagevert); cagedm->release(cagedm); return; } else if (mmd->bindcagecos == NULL) { - modifier_setError(md, "Bind data missing."); + modifier_setError(md, TIP_("Bind data missing.")); cagedm->release(cagedm); return; } |