Update i18n tools for new build_hash...

This commit is contained in:
Bastien Montagne
2013-11-04 18:26:56 +00:00
parent 13caf5cc14
commit 84daa57188
3 changed files with 5 additions and 5 deletions

View File

@@ -791,10 +791,10 @@ def dump_src_messages(msgs, reports, settings):
##### Main functions! #####
def dump_messages(do_messages, do_checks, settings):
bl_ver = "Blender " + bpy.app.version_string
bl_rev = bpy.app.build_revision
bl_hash = bpy.app.build_hash or b'0000000000000000000000000000000000000000'
bl_date = datetime.datetime.strptime(bpy.app.build_date.decode() + "T" + bpy.app.build_time.decode(),
"%Y-%m-%dT%H:%M:%S")
pot = utils.I18nMessages.gen_empty_messages(settings.PARSER_TEMPLATE_ID, bl_ver, bl_rev, bl_date, bl_date.year,
pot = utils.I18nMessages.gen_empty_messages(settings.PARSER_TEMPLATE_ID, bl_ver, bl_hash, bl_date, bl_date.year,
settings=settings)
msgs = pot.msgs