diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-08-26 16:44:37 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-08-26 16:46:56 +0300 |
commit | 1a1bcad43abcd401943da4603b2fd27ab8273a1b (patch) | |
tree | e93ed08fa7fe3312017967400df41cf9f0519006 | |
parent | fcffb14d7b9db44647b324a80213206d0e0decb1 (diff) |
Fix T49158: Untranslatable elements in UI.
We cannot skip 'collections clesse' when generating i18n messages from RNA, some of them
are visible and UI...
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | 13 |
1 files changed, 7 insertions, 6 deletions
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 |