I18n: make some boid physics messages translatable

A few UI messages were not extracted in the particle physics panels.
This commit is contained in:
2023-02-19 21:40:54 +01:00
committed by Bastien Montagne
parent 79c1dc65a7
commit f2121d94bb
2 changed files with 5 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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!"));
}
}