Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | def dump_rna_messages(msgs, reports, settings, verbose=False): | ||||
| Dump into messages dict all RNA-defined UI messages (labels en tooltips). | Dump into messages dict all RNA-defined UI messages (labels en tooltips). | ||||
| """ | """ | ||||
| def class_blacklist(): | def class_blacklist(): | ||||
| blacklist_rna_class = {getattr(bpy.types, cls_id) for cls_id in ( | blacklist_rna_class = {getattr(bpy.types, cls_id) for cls_id in ( | ||||
| # core classes | # core classes | ||||
| "Context", "Event", "Function", "UILayout", "UnknownType", "Property", "Struct", | "Context", "Event", "Function", "UILayout", "UnknownType", "Property", "Struct", | ||||
| # registerable classes | # registerable classes | ||||
| "Panel", "Menu", "Header", "RenderEngine", "Operator", "OperatorMacro", "Macro", "KeyingSetInfo", | "Panel", "Menu", "Header", "RenderEngine", "Operator", "OperatorMacro", "Macro", "KeyingSetInfo", | ||||
| # window classes | |||||
| "Window", | |||||
| ) | ) | ||||
| } | } | ||||
| # More builtin classes we don't need to parse. | # More builtin classes we don't need to parse. | ||||
| blacklist_rna_class |= {cls for cls in bpy.types.Property.__subclasses__()} | blacklist_rna_class |= {cls for cls in bpy.types.Property.__subclasses__()} | ||||
| return blacklist_rna_class | return blacklist_rna_class | ||||
| ▲ Show 20 Lines • Show All 828 Lines • Show Last 20 Lines | |||||