Commit: 814f143acf5ffdcb0cba6706823bd509d2105f63
Author: Bastien Montagne
Date:   Tue Apr 10 10:22:40 2018 +0200
Branches: master
https://developer.blender.org/rB814f143acf5ffdcb0cba6706823bd509d2105f63

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

===================================================================

M       source/blender/makesrna/intern/rna_access.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_access.c 
b/source/blender/makesrna/intern/rna_access.c
index 18e42488829..bec6830f8c3 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -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;
        }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to