浏览代码

[fix] minor, don't print messages for missing files

version-14
Rushabh Mehta 9 年前
父节点
当前提交
6ca99e96eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/translate.py

+ 1
- 1
frappe/translate.py 查看文件

@@ -363,7 +363,7 @@ def get_messages_from_file(path):
return [(os.path.relpath(" +".join([path, str(pos)]), apps_path), return [(os.path.relpath(" +".join([path, str(pos)]), apps_path),
message) for pos, message in extract_messages_from_code(sourcefile.read(), path.endswith(".py"))] message) for pos, message in extract_messages_from_code(sourcefile.read(), path.endswith(".py"))]
else: else:
print "Translate: {0} missing".format(os.path.abspath(path))
# print "Translate: {0} missing".format(os.path.abspath(path))
return [] return []


def extract_messages_from_code(code, is_py=False): def extract_messages_from_code(code, is_py=False):


正在加载...
取消
保存