Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-01-24 01:29:04 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-01-24 01:30:18 +0400
commit52f2c8aec5e29ed81fd81ebfd8f9965c470a765a (patch)
treef00b94ddcd1b590291f76c67179e8993688333e4 /release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
parent18db6c58ec6b7a37eed58a532cbe2f51f1e5f073 (diff)
Add support for new "bl_category" member (new panels "tabs" system).
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/bl_extract_messages.py')
-rw-r--r--release/scripts/modules/bl_i18n_utils/bl_extract_messages.py4
1 files changed, 4 insertions, 0 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 6fea14b3df4..ad2a70b84e8 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)