Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(135)

Unified Diff: source/blender/python/intern/bpy_props.c

Issue 7102054: Blender i18n enhancements (Closed) Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Updated, removed the "context in text string" feature Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/blender/python/intern/bpy_props.c
===================================================================
--- source/blender/python/intern/bpy_props.c (révision 53816)
+++ source/blender/python/intern/bpy_props.c (copie de travail)
@@ -74,13 +74,18 @@
{0, NULL, 0, NULL, NULL}};
/* subtypes */
+/* XXX Keep in sync with rna_rna.c's property_subtype_items ???
+ * Currently it is not...
+ */
static EnumPropertyItem property_subtype_string_items[] = {
{PROP_FILEPATH, "FILE_PATH", 0, "File Path", ""},
{PROP_DIRPATH, "DIR_PATH", 0, "Directory Path", ""},
{PROP_FILENAME, "FILE_NAME", 0, "Filename", ""},
{PROP_BYTESTRING, "BYTE_STRING", 0, "Byte String", ""},
- {PROP_TRANSLATE, "TRANSLATE", 0, "Translate", ""},
- {PROP_PASSWORD, "PASSWORD", 0, "Password", 0},
+ {PROP_PY_TRANSLATE, "TRANSLATE", 0, "Translate",
+ "Translate the string when setting the property from a py string (you should never need to use "
+ "this sub-type!)"},
+ {PROP_PASSWORD, "PASSWORD", 0, "Password", "A string that is displayed hidden ('********')"},
{PROP_NONE, "NONE", 0, "None", ""},
{0, NULL, 0, NULL, NULL}};

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b