[Bf-blender-cvs] [52f2c8a] master: Add support for new "bl_category" member (new panels "tabs" system).
Bastien Montagne
noreply at git.blender.org
Thu Jan 23 22:30:41 CET 2014
Commit: 52f2c8aec5e29ed81fd81ebfd8f9965c470a765a
Author: Bastien Montagne
Date: Thu Jan 23 22:29:04 2014 +0100
https://developer.blender.org/rB52f2c8aec5e29ed81fd81ebfd8f9965c470a765a
Add support for new "bl_category" member (new panels "tabs" system).
===================================================================
M release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
===================================================================
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 6fea14b..ad2a70b 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -342,6 +342,10 @@ def dump_rna_messages(msgs, reports, settings, verbose=False):
elif cls.__doc__: # XXX Some classes (like KeyingSetInfo subclasses) have void description... :(
process_msg(msgs, default_context, cls.__doc__, msgsrc, reports, check_ctxt_rna_tip, settings)
+ # Panels' "tabs" system.
+ if hasattr(bl_rna, 'bl_category') and bl_rna.bl_category:
+ process_msg(msgs, default_context, bl_rna.bl_category, msgsrc, reports, check_ctxt_rna, settings)
+
if hasattr(bl_rna, 'bl_label') and bl_rna.bl_label:
process_msg(msgs, msgctxt, bl_rna.bl_label, msgsrc, reports, check_ctxt_rna, settings)
More information about the Bf-blender-cvs
mailing list