diff options
author | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-08-12 02:14:07 +0400 |
---|---|---|
committer | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-08-12 02:14:07 +0400 |
commit | b99f7af35725255cafffb03555e8eb21e326797e (patch) | |
tree | 58865b7c1b3a0a90a1bb0864e299ca8f8736e476 /source/blender/makesrna/intern/rna_access.c | |
parent | 465c3b82fa8320c0366eaa72b2319c8b42f9c8f1 (diff) |
remove gettext from mkaesrna, and update language packs
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 6c0b996a14e..df821ac4a87 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -98,6 +98,23 @@ void RNA_exit(void) RNA_free(&BLENDER_RNA); } +/* make every name and description field surrounded by gettext */ +EnumPropertyItem* RNA_enum_items_gettexted(EnumPropertyItem *item) +{ + if( item ) + { + int i; + for(i=0; item[i].identifier; i++) + { + if( item[i].name ) + item[i].name = _(item[i].name); + if( item[i].description ) + item[i].description = _(item[i].description); + } + } + return item; +} + void RNA_struct_gettexted( StructRNA* ptr ) { PropertyRNA *temp_property, *end_property; |