From 1a1bcad43abcd401943da4603b2fd27ab8273a1b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 26 Aug 2016 15:44:37 +0200 Subject: Fix T49158: Untranslatable elements in UI. We cannot skip 'collections clesse' when generating i18n messages from RNA, some of them are visible and UI... --- .../scripts/modules/bl_i18n_utils/bl_extract_messages.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'release') diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py index dc1ddbfe057..3b7eff6db9c 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -230,12 +230,13 @@ def dump_rna_messages(msgs, reports, settings, verbose=False): _rna = {getattr(bpy.types, cls) for cls in dir(bpy.types)} # Classes which are attached to collections can be skipped too, these are api access only. - for cls in _rna: - for prop in cls.bl_rna.properties: - if prop.type == 'COLLECTION': - prop_cls = prop.srna - if prop_cls is not None: - blacklist_rna_class.add(prop_cls.__class__) + # XXX This is not true, some of those show in UI, see e.g. tooltip of KeyingSets.active... + #~ for cls in _rna: + #~ for prop in cls.bl_rna.properties: + #~ if prop.type == 'COLLECTION': + #~ prop_cls = prop.srna + #~ if prop_cls is not None: + #~ blacklist_rna_class.add(prop_cls.__class__) # Now here is the *ugly* hack! # Unfortunately, all classes we want to access are not available from bpy.types (OperatorProperties subclasses -- cgit v1.2.3