Fix T54423: Messages from RNA_property_editable_info() were not translatable.

This commit is contained in:
Bastien Montagne 2018-04-10 10:22:40 +02:00
parent bd76c88754
commit 814f143acf
Notes: blender-bot 2023-02-14 06:54:28 +01:00
Referenced by issue #54423, Translation text is still in English
1 changed files with 2 additions and 2 deletions

View File

@ -1842,14 +1842,14 @@ bool RNA_property_editable_info(PointerRNA *ptr, PropertyRNA *prop, const char *
else {
flag = prop->flag;
if ((flag & PROP_EDITABLE) == 0 || (flag & PROP_REGISTER)) {
*r_info = "This property is for internal use only and can't be edited.";
*r_info = N_("This property is for internal use only and can't be edited");
}
}
/* property from linked data-block */
if (id && ID_IS_LINKED(id) && (prop->flag & PROP_LIB_EXCEPTION) == 0) {
if (!(*r_info)[0]) {
*r_info = "Can't edit this property from a linked data-block.";
*r_info = N_("Can't edit this property from a linked data-block");
}
return false;
}