Skip to content

Commit b71cd50

Browse files
committed
【完善】:关键提示信息修改为双语
1 parent 7104d9a commit b71cd50

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

cmds/cmd_menuconfig.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,23 @@ def cmd(args):
157157
dirname = os.path.split(os.path.split(currentdir)[0])[0]
158158
get_rtt_name = os.path.basename(dirname)
159159
os_version = platform.platform(True)[10:13]
160-
# print os.path.split(currentdir)[1]
161160
kconfig_win7_path = os.path.join(
162161
env_root, 'tools', 'bin', 'kconfig-mconf_win7.exe')
163162

164163
if not os.getenv("RTT_ROOT"):
165164
if get_rtt_name != 'rt-thread':
166-
print("\nmenuconfig 命令应当在一个 BSP 的根目录下被执行,请确保当前目录为 BSP 根目录,并且根目录中有 Kconfig 文件。")
165+
print("\n<menuconfig> 命令应当在一个 BSP 的根目录下被执行,请确保当前目录为 BSP 根目录,并且根目录中有 Kconfig 文件。")
167166
print("接下来你可以按照如下方式修改 Kconfig 文件:\n")
167+
168+
print ("<menuconfig> command should be used in a bsp root path with a Kconfig file.")
169+
print ("You should check if there is a Kconfig file in your bsp root first.")
170+
print ('And then you can check Kconfig file and modify the default option below to your rtthread root path.\n')
171+
168172
print ('config $RTT_DIR')
169173
print ('string')
170174
print ('option env="RTT_ROOT"')
171175
print ('default "../.."\n')
172-
print ('修改 default 这一项为 rt-thread 所在路径: default "F:/git_repositories/rt-thread"')
173-
174-
print ('如果 scons 编译找不到 RTT_ROOT ,你可以使 <set RTT_ROOT=your_rtthread_root_path> 来设置 RTT_ROOT。')
176+
print ('例如修改 default 这一项为 rt-thread 所在路径: default "F:/git_repositories/rt-thread"')
175177

176178
if not args.menuconfig_easy:
177179
return

cmds/cmd_package.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ def package_list():
345345
env_root = Import('env_root')
346346

347347
if not os.path.isfile(fn):
348-
print ('\n没有找到 .config 文件, 需要先使用 < menuconfig > 命令来配置 BSP。')
348+
print ("\n当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。")
349+
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n")
350+
print ('No system configuration file : .config.')
351+
print ('You should use < menuconfig > command to config bsp first.')
349352
return
350353

351354
pkgs = kconfig.parse(fn)
@@ -491,7 +494,9 @@ def pre_package_update():
491494

492495
if not os.path.exists('.config'):
493496
print ("\n当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。")
494-
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。")
497+
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n")
498+
print ('No system configuration file : .config.')
499+
print ('You should use < menuconfig > command to config bsp first.')
495500
return False
496501

497502
bsp_packages_path = os.path.join(bsp_root, 'packages')

0 commit comments

Comments
 (0)