Usual i18n fixes, and cleanup: fix 'randomise' -> 'randomize' spelling in code.

This commit is contained in:
Bastien Montagne 2015-12-14 19:20:31 +01:00
parent 1fbd74296d
commit 6f6c26bdb4
9 changed files with 14 additions and 13 deletions

View File

@ -408,6 +408,7 @@ class SpellChecker:
# Blender terms
"audaspace",
"bbone",
"bmesh",
"breakdowner",
"bspline",
"bweight",

View File

@ -408,7 +408,7 @@ class GPENCIL_PIE_sculpt(Menu):
row = pie.row()
row.prop_enum(settings, "tool", value='SMOOTH')
row.prop_enum(settings, "tool", value='THICKNESS')
row.prop_enum(settings, "tool", value='RANDOMISE')
row.prop_enum(settings, "tool", value='RANDOMIZE')
###############################

View File

@ -786,7 +786,7 @@ void BKE_scene_init(Scene *sce)
gp_brush->strength = 0.5f; // XXX?
gp_brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
gp_brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMISE];
gp_brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMIZE];
gp_brush->size = 25;
gp_brush->strength = 0.5f;
gp_brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;

View File

@ -974,7 +974,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
brush->strength = 0.5f; // XXX?
brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMISE];
brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMIZE];
brush->size = 25;
brush->strength = 0.5f;
brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;

View File

@ -126,7 +126,7 @@ void BLO_update_defaults_startup_blend(Main *bmain)
brush->strength = 0.5f; // XXX?
brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMISE];
brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMIZE];
brush->size = 25;
brush->strength = 0.5f;
brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;

View File

@ -632,10 +632,10 @@ static bool gp_brush_twist_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i,
/* ----------------------------------------------- */
/* Randomise Brush */
/* Randomize Brush */
/* Apply some random jitter to the point */
static bool gp_brush_randomise_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i,
static bool gp_brush_randomize_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i,
const int radius, const int co[2])
{
bGPDspoint *pt = gps->points + i;
@ -1257,7 +1257,7 @@ static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso)
break;
}
case GP_EDITBRUSH_TYPE_RANDOMISE: /* Random jitter */
case GP_EDITBRUSH_TYPE_RANDOMIZE: /* Random jitter */
{
/* compute the displacement vector for the cursor (in data space) */
gp_brush_grab_calc_dvec(gso);
@ -1321,14 +1321,14 @@ static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso)
break;
}
case GP_EDITBRUSH_TYPE_RANDOMISE: /* Apply jitter */
case GP_EDITBRUSH_TYPE_RANDOMIZE: /* Apply jitter */
{
changed |= gpsculpt_brush_do_stroke(gso, gps, gp_brush_randomise_apply);
changed |= gpsculpt_brush_do_stroke(gso, gps, gp_brush_randomize_apply);
break;
}
default:
printf("ERROR: Unknown type of GPencil Sculpt brush - %d\n", gso->brush_type);
printf("ERROR: Unknown type of GPencil Sculpt brush - %u\n", gso->brush_type);
break;
}
}

View File

@ -510,7 +510,7 @@ void GPENCIL_OT_unlock_all(wmOperatorType *ot)
/* identifiers */
ot->name = "Unlock All Layers";
ot->idname = "GPENCIL_OT_unlock_all";
ot->description = "unlock all Grease Pencil layers so that they can be edited";
ot->description = "Unlock all Grease Pencil layers so that they can be edited";
/* callbacks */
ot->exec = gp_unlock_all_exec;

View File

@ -1079,7 +1079,7 @@ typedef enum eGP_EditBrush_Types {
GP_EDITBRUSH_TYPE_PUSH = 3,
GP_EDITBRUSH_TYPE_TWIST = 4,
GP_EDITBRUSH_TYPE_PINCH = 5,
GP_EDITBRUSH_TYPE_RANDOMISE = 6,
GP_EDITBRUSH_TYPE_RANDOMIZE = 6,
GP_EDITBRUSH_TYPE_SUBDIVIDE = 7,
GP_EDITBRUSH_TYPE_SIMPLIFY = 8,
GP_EDITBRUSH_TYPE_CLONE = 9,

View File

@ -67,7 +67,7 @@ EnumPropertyItem rna_enum_gpencil_sculpt_brush_items[] = {
{GP_EDITBRUSH_TYPE_PUSH, "PUSH", 0, "Push", "Move points out of the way, as if combing them"},
{GP_EDITBRUSH_TYPE_TWIST, "TWIST", 0, "Twist", "Rotate points around the midpoint of the brush"},
{GP_EDITBRUSH_TYPE_PINCH, "PINCH", 0, "Pinch", "Pull points towards the midpoint of the brush"},
{GP_EDITBRUSH_TYPE_RANDOMISE, "RANDOMISE", 0, "Randomise", "Introduce jitter/randomness into strokes"},
{GP_EDITBRUSH_TYPE_RANDOMIZE, "RANDOMIZE", 0, "Randomize", "Introduce jitter/randomness into strokes"},
//{GP_EDITBRUSH_TYPE_SUBDIVIDE, "SUBDIVIDE", 0, "Subdivide", "Increase point density for higher resolution strokes when zoomed in"},
//{GP_EDITBRUSH_TYPE_SIMPLIFY, "SIMPLIFY", 0, "Simplify", "Reduce density of stroke points"},
{GP_EDITBRUSH_TYPE_CLONE, "CLONE", 0, "Clone", "Paste copies of the strokes stored on the clipboard"},