~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to release/scripts/modules/bl_i18n_utils/bl_extract_messages.py

  • Committer: Reinhard Tartler
  • Date: 2014-05-31 01:50:05 UTC
  • mfrom: (14.2.27 sid)
  • Revision ID: siretart@tauware.de-20140531015005-ml6druahuj82nsav
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
        elif cls.__doc__:  # XXX Some classes (like KeyingSetInfo subclasses) have void description... :(
343
343
            process_msg(msgs, default_context, cls.__doc__, msgsrc, reports, check_ctxt_rna_tip, settings)
344
344
 
 
345
        # Panels' "tabs" system.
 
346
        if hasattr(bl_rna, 'bl_category') and  bl_rna.bl_category:
 
347
            process_msg(msgs, default_context, bl_rna.bl_category, msgsrc, reports, check_ctxt_rna, settings)
 
348
 
345
349
        if hasattr(bl_rna, 'bl_label') and  bl_rna.bl_label:
346
350
            process_msg(msgs, msgctxt, bl_rna.bl_label, msgsrc, reports, check_ctxt_rna, settings)
347
351
 
791
795
##### Main functions! #####
792
796
def dump_messages(do_messages, do_checks, settings):
793
797
    bl_ver = "Blender " + bpy.app.version_string
794
 
    bl_rev = bpy.app.build_revision
 
798
    bl_hash = bpy.app.build_hash
795
799
    bl_date = datetime.datetime.strptime(bpy.app.build_date.decode() + "T" + bpy.app.build_time.decode(),
796
800
                                         "%Y-%m-%dT%H:%M:%S")
797
 
    pot = utils.I18nMessages.gen_empty_messages(settings.PARSER_TEMPLATE_ID, bl_ver, bl_rev, bl_date, bl_date.year,
 
801
    pot = utils.I18nMessages.gen_empty_messages(settings.PARSER_TEMPLATE_ID, bl_ver, bl_hash, bl_date, bl_date.year,
798
802
                                                settings=settings)
799
803
    msgs = pot.msgs
800
804