mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 13:23:51 +00:00
![He Yang](/assets/img/avatar_default.png)
Make the argument process of command utility "taskkill" behave same as what Windows does. Now options are no longer detected as parameters when placed after options that accept one. For example, `taskkill /im /f` will no longer regard `/f` as a process name. If `/?` and `/f` options appear more than once, an error will be reported, telling they are not allowed more than once. (e.g. `taskkill /f /pid 1000 /f`) If only one option `/f` is given without `/pid` or `/im`, an eerror will be reported, telling that one must specify `/pid` or `/im`. (e.g. `taskkill /f`) Additional changes: - Combine SendCloseMessages() and TerminateProcesses() functions. - Protect new written code with `#ifdef __REACTOS__`
27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
/* Simplified Chinese translation by
|
|
Henry Tang Ih 2016 (henrytang2@hotmail.com)
|
|
He Yang 2020 (1160386205@qq.com)
|
|
*/
|
|
|
|
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
|
|
|
STRINGTABLE
|
|
{
|
|
STRING_USAGE, "用法: taskkill [/?] [/f] [/im 进程名称 | /pid 进程 ID]\n"
|
|
STRING_INVALID_OPTION, "错误: 指定了未知或无效的命令行选项。\n"
|
|
STRING_INVALID_PARAM, "错误: 指定了无效的命令行参数。\n"
|
|
STRING_MISSING_OPTION, "错误: 必须指定选项 /im 或 /pid。\n"
|
|
STRING_MISSING_PARAM, "错误: 选项 %1 需要命令行参数。\n"
|
|
STRING_MUTUAL_EXCLUSIVE, "错误: 选项 /im 和 /pid 是互斥的。\n"
|
|
STRING_CLOSE_PID_SEARCH, "已发送关闭消息进程 PID %1!u! 的顶层窗口。\n"
|
|
STRING_CLOSE_PROC_SRCH, "已发送关闭消息进程 ""%1"" PID %1!u! 的顶层窗口。\n"
|
|
STRING_TERM_PID_SEARCH, "进程 PID %1!u! 被强行终止。\n"
|
|
STRING_TERM_PROC_SEARCH, "进程 ""%1"" PID %1!u! 被强行终止。\n"
|
|
STRING_SEARCH_FAILED, "错误: 找不到进程 ""%1""。\n"
|
|
STRING_ENUM_FAILED, "错误: 无法枚举进程列表。\n"
|
|
STRING_TERMINATE_FAILED, "错误: 无法终止进程 ""%1""。\n"
|
|
STRING_SELF_TERMINATION, "错误: 不允许终止自身。\n"
|
|
STRING_PARAM_TOO_MUCH, "错误:无效语法。选项 '%1' 不允许超过 '%2!d!' 次。\n"
|
|
STRING_INVALID_SYNTAX, "错误:无效语法。\n"
|
|
}
|