Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-03-17 18:27:46 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-03-17 18:27:46 +0400
commit1f6ae5e4fbc4a67afd9655d55f9930c196c9e754 (patch)
tree7f3a0911f733b7c8aa06cfef927bb064e4efb01a /source/blender/modifiers
parente4cc4b3e952b479d4bcf04c47c81622a5a167dff (diff)
Minor UI messages fixes, and enabling i18n for all modifier_setError() error messages.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_boolean.c3
-rw-r--r--source/blender/modifiers/intern/MOD_decimate.c9
-rw-r--r--source/blender/modifiers/intern/MOD_meshdeform.c9
3 files changed, 12 insertions, 9 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.c b/source/blender/modifiers/intern/MOD_boolean.c
index 76560d14e3b..9f15060033d 100644
--- a/source/blender/modifiers/intern/MOD_boolean.c
+++ b/source/blender/modifiers/intern/MOD_boolean.c
@@ -38,6 +38,7 @@
#include "BLI_utildefines.h"
+#include "BLF_translation.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_modifier.h"
@@ -155,7 +156,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
if(result)
return result;
else
- modifier_setError(md, "Can't execute boolean operation.");
+ modifier_setError(md, TIP_("Can't execute boolean operation."));
}
return derivedData;
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c
index bc7771d86b0..5fc3c506d36 100644
--- a/source/blender/modifiers/intern/MOD_decimate.c
+++ b/source/blender/modifiers/intern/MOD_decimate.c
@@ -38,6 +38,8 @@
#include "BLI_math.h"
#include "BLI_utildefines.h"
+#include "BLF_translation.h"
+
#include "MEM_guardedalloc.h"
#include "BKE_mesh.h"
@@ -96,8 +98,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob),
}
if(numTris<3) {
- modifier_setError(md,
- "Modifier requires more than 3 input faces (triangles).");
+ modifier_setError(md, TIP_("Modifier requires more than 3 input faces (triangles)."));
dm = CDDM_copy(dm);
return dm;
}
@@ -172,12 +173,12 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob),
CDDM_calc_edges_tessface(result);
}
else
- modifier_setError(md, "Out of memory.");
+ modifier_setError(md, TIP_("Out of memory."));
LOD_FreeDecimationData(&lod);
}
else
- modifier_setError(md, "Non-manifold mesh as input.");
+ modifier_setError(md, TIP_("Non-manifold mesh as input."));
MEM_freeN(lod.vertex_buffer);
MEM_freeN(lod.vertex_normal_buffer);
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;
}