More UI message i18n fixes and improvements...

Fix for keyingsets tips, and make them (and a few others) findable by i18n messages extracting code (for some reasons, their bl_rna.description are void???).
This commit is contained in:
Bastien Montagne
2013-03-10 17:42:08 +00:00
parent 4760e002dd
commit 6da449b86c
4 changed files with 24 additions and 43 deletions

View File

@@ -356,6 +356,8 @@ def dump_messages_rna(msgs, reports, settings):
if bl_rna.description:
process_msg(msgs, default_context, bl_rna.description, msgsrc, reports, check_ctxt_rna_tip, settings)
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)
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)