I18n: make some boid physics messages translatable
A few UI messages were not extracted in the particle physics panels.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "BKE_particle.h"
|
||||
#include "BLI_kdopbvh.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "BKE_modifier.h"
|
||||
|
||||
#include "RNA_enum_types.h"
|
||||
@@ -1607,7 +1609,7 @@ BoidRule *boid_new_rule(int type)
|
||||
|
||||
rule->type = type;
|
||||
rule->flag |= BOIDRULE_IN_AIR | BOIDRULE_ON_LAND;
|
||||
BLI_strncpy(rule->name, rna_enum_boidrule_type_items[type - 1].name, sizeof(rule->name));
|
||||
BLI_strncpy(rule->name, DATA_(rna_enum_boidrule_type_items[type - 1].name), sizeof(rule->name));
|
||||
|
||||
return rule;
|
||||
}
|
||||
|
||||
@@ -1190,11 +1190,11 @@ static void rna_ParticleTarget_name_get(PointerRNA *ptr, char *str)
|
||||
}
|
||||
}
|
||||
else {
|
||||
strcpy(str, "Invalid target!");
|
||||
strcpy(str, TIP_("Invalid target!"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
strcpy(str, "Invalid target!");
|
||||
strcpy(str, TIP_("Invalid target!"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user