Grumph, going quicker than the music! :P

This commit is contained in:
Bastien Montagne 2013-01-13 14:36:50 +00:00
parent 587b91be4a
commit cdb5e557b0

@ -397,8 +397,11 @@ def dump_py_messages_from_files(messages, check_ctxt, files):
eval_str = ast.literal_eval(node) eval_str = ast.literal_eval(node)
if eval_str: if eval_str:
# Parse optional context included in string! # Parse optional context included in string!
if bpy.app.i18n.context_sep in eval_str: # XXX Not yet!
key = eval_str.split(bpy.app.i18n.context_sep, 1) #if bpy.app.i18n.context_sep in eval_str:
#key = eval_str.split(bpy.app.i18n.context_sep, 1)
if 0:
pass
else: else:
key = (CONTEXT_DEFAULT, eval_str) key = (CONTEXT_DEFAULT, eval_str)
msgsrc = "{}:{}".format(fp_rel, node.lineno) msgsrc = "{}:{}".format(fp_rel, node.lineno)