# Translation template file for sudo-rs # Copyright (C) 2025 Trifecta Tech Foundation # This file is distributed under the same license as the sudo-rs package. # msgid "" msgstr "" "Project-Id-Version: sudo-rs 0.2.13\n" "Report-Msgid-Bugs-To: https://github.com/trifectatechfoundation/sudo-rs/" "issues\n" "POT-Creation-Date: 2026-10-03 17:30+0100\n" "PO-Revision-Date: 2026-04-26 12:00+0800\n" "Last-Translator: Oliver \n" "Language-Team: Chinese\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. TRANSLATORS: This is a well-known quote, try to preserve it in translation. #: src/common/error.rs:89 #, rust-format msgid "I'm sorry {user}. I'm afraid I can't do that" msgstr "抱歉,{user}。恐怕我不能这么做" #: src/sudoers/entry/verbose.rs:33 msgid "Commands:" msgstr "命令:" #: src/sudoers/entry/verbose.rs:46 msgid "Sudoers entry:" msgstr "sudoers 条目:" #. TRANSLATORS: This is sudo-specific jargon. #: src/sudoers/entry/verbose.rs:54 msgid "RunAsUsers" msgstr "RunAsUsers" #. TRANSLATORS: This is sudo-specific jargon. #: src/sudoers/entry/verbose.rs:64 msgid "RunAsGroups" msgstr "RunAsGroups" #: src/sudoers/entry/verbose.rs:70 msgid "Options" msgstr "选项" #. TRANSLATORS: This is sudo-specific jargon. #: src/sudoers/entry/verbose.rs:79 msgid "Cwd" msgstr "当前工作目录" #: src/pam/askpass.rs:55 #, rust-format msgid "Failed to run askpass program {path}: {error}" msgstr "运行 askpass 程序失败 {path}:{error}" #: src/pam/error.rs:211 src/common/error.rs:136 src/common/error.rs:143 msgid "Unexpected null character in input" msgstr "输入中包含意外的空字符" #: src/pam/error.rs:212 msgid "Could not read input data as UTF-8 string" msgstr "无法将输入数据解析为 UTF-8 字符串" #: src/pam/error.rs:214 msgid "Account validation failure, is your account locked?" msgstr "账户验证失败,您的账户是否已被锁定?" #: src/pam/error.rs:219 msgid "Account or password is expired, reset your password and try again" msgstr "账户或密码已过期,请重置密码后重试" #: src/pam/error.rs:223 msgid "Password expired, contact your system administrator" msgstr "密码已过期,请联系系统管理员" #: src/pam/error.rs:225 #, rust-format msgid "PAM error: {error}" msgstr "PAM 错误:{error}" #: src/pam/error.rs:226 src/common/error.rs:116 #, rust-format msgid "IO error: {error}" msgstr "IO 错误:{error}" #: src/pam/error.rs:227 msgid "A terminal is required to authenticate" msgstr "需要终端来进行身份验证" #: src/pam/error.rs:231 msgid "It was not possible to get a list of environment variables" msgstr "无法获取环境变量列表" #: src/pam/error.rs:234 msgid "Interaction is required" msgstr "需要交互" #: src/pam/error.rs:236 msgid "Authentication required but not attempted" msgstr "需要认证,但尚未尝试" #: src/pam/error.rs:239 msgid "Incorrect authentication attempt" msgstr "认证尝试失败" #: src/pam/error.rs:241 msgid "timed out" msgstr "超时" #: src/pam/error.rs:245 #, rust-format msgid "Sorry, user {user} is not allowed to authenticate as {other_user}." msgstr "抱歉,用户 {user} 不被允许以 {other_user} 身份进行身份验证。" #: src/pam/error.rs:251 msgid "No askpass program specified in SUDO_ASKPASS" msgstr "SUDO_ASKPASS 中未指定 askpass 程序" #: src/pam/error.rs:256 #, rust-format msgid "Askpass program '{path}' is not an absolute path" msgstr "Askpass 程序 '{path}' 不是绝对路径" #: src/pam/mod.rs:86 msgid "authenticate" msgstr "验证" #: src/pam/converse.rs:153 msgid "input needed" msgstr "需要输入" #: src/system/audit.rs:155 #, rust-format msgid "{path} must be owned by root" msgstr "{path} 必须属于 root" #: src/system/audit.rs:160 #, rust-format msgid "{path} cannot be group-writable" msgstr "{path} 不能被组写入" #: src/system/audit.rs:165 #, rust-format msgid "{path} cannot be world-writable" msgstr "{path} 不能被所有人写入" #: src/system/audit.rs:206 #, rust-format msgid "{path} has no valid parent directory" msgstr "{path} 没有有效的父目录" #: src/system/audit.rs:285 msgid "invalid path" msgstr "无效路径" #: src/system/audit.rs:293 msgid "path must be absolute" msgstr "路径必须是绝对路径" #: src/system/audit.rs:305 src/system/audit.rs:329 msgid "cannot open a file in a path writable by the user" msgstr "无法在用户可写入的路径中打开文件" #: src/system/audit.rs:347 msgid "error in provided path" msgstr "提供的路径有误" #: src/common/error.rs:52 #, rust-format msgid "" "Sorry, user {user} is not allowed to execute '{command}' as {other_user} on " "{hostname}." msgstr "抱歉,用户 {user} 不允许以 {other_user} 的身份在 {hostname} 上执行 '{command}'。" #: src/common/error.rs:61 #, rust-format msgid "Sorry, user {user} may not run {command} on {hostname}." msgstr "抱歉,用户 {user} 不允许在 {hostname} 上运行 {command}。" #: src/common/error.rs:69 msgid "sudo must be owned by uid 0 and have the setuid bit set" msgstr "sudo 必须归属 UID 0 并设置 setuid 位" #: src/common/error.rs:80 #, rust-format msgid "'{path}': command not found" msgstr "'{path}': 未找到命令" #: src/common/error.rs:83 #, rust-format msgid "'{path}': invalid command" msgstr "'{path}': 无效命令" #: src/common/error.rs:85 #, rust-format msgid "user '{user}' not found" msgstr "用户 '{user}' 未找到" #: src/common/error.rs:86 #, rust-format msgid "group '{group}' not found" msgstr "组 '{group}' 未找到" #: src/common/error.rs:91 msgid "interactive authentication is required" msgstr "需要交互式身份验证" #: src/common/error.rs:95 msgid "you are not allowed to set the following environment variables:" msgstr "您不允许设置以下环境变量:" #: src/common/error.rs:111 #, rust-format msgid "cannot execute '{path}': {error}" msgstr "无法执行 '{path}':{error}" #: src/common/error.rs:122 #, rust-format msgid "maximum {num} incorrect authentication attempts" msgstr "认证失败超过 {num}" #: src/common/error.rs:128 #, rust-format msgid "you are not allowed to use '--chdir {path}' with '{command}'" msgstr "你不被允许在 '{command}' 中使用 '--chdir {path}'" #: src/common/error.rs:150 #, rust-format msgid "unable to change AppArmor profile to {profile}: {error}" msgstr "无法将 AppArmor 配置文件更改为 {profile}:{error}" #: src/sudo/pam.rs:127 msgid "Authentication failed, try again." msgstr "抱歉,认证失败,请重试" #: src/exec/mod.rs:154 #, rust-format msgid "unable to change directory to {path}: {error}" msgstr "无法更改目录到 {path}:{error}" #: src/sudo/edit.rs:47 #, rust-format msgid "failed to read metadata for {path}: {error}" msgstr "读取 {path} 的元数据失败:{error}" #: src/sudo/edit.rs:55 #, rust-format msgid "file {path} is not a regular file" msgstr "文件 {path} 不是普通文件" #: src/sudo/edit.rs:65 #, rust-format msgid "failed to lock {path}: {error}" msgstr "锁定 {path} 失败:{error}" #: src/sudo/edit.rs:78 #, rust-format msgid "failed to read {path}: {error}" msgstr "读取 {path} 失败:{error}" #: src/sudo/edit.rs:145 #, rust-format msgid "{path} unchanged" msgstr "{path} 未更改" #: src/sudo/edit.rs:165 #, rust-format msgid "failed to write {path}: {error}" msgstr "写入 {path} 失败:{error}" #: src/sudo/edit.rs:184 #, rust-format msgid "failed to remove temporary directory {path}: {error}" msgstr "删除临时目录 {path} 失败:{error}" #: src/sudo/edit.rs:196 #, rust-format msgid "{error}" msgstr "{error}" #: src/sudo/edit.rs:217 #, rust-format msgid "failed to create temporary directory: {error}" msgstr "创建临时目录失败:{error}" #: src/sudo/edit.rs:225 #, rust-format msgid "failed to create temporary directory {path}: {error}" msgstr "创建临时目录 {path} 失败:{error}" #: src/sudo/edit.rs:239 #, rust-format msgid "failed to create temporary file {path}: {error}" msgstr "创建临时文件 {path} 失败:{error}" #: src/sudo/edit.rs:248 #, rust-format msgid "failed to write to temporary file {path}: {error}" msgstr "写入临时文件 {path} 失败:{error}" #: src/sudo/edit.rs:268 #, rust-format msgid "failed to run editor {path}: {error}" msgstr "运行编辑器 {path} 失败:{error}" #: src/sudo/edit.rs:289 #, rust-format msgid "failed to read from temporary file {path}: {error}" msgstr "从临时文件 {path} 读取失败:{error}" #: src/sudo/edit.rs:298 #, rust-format msgid "failed to remove temporary file {path}: {error}" msgstr "删除临时文件 {path} 失败:{error}" #. TRANSLATORS: the initial letters of 'yes' and 'no' responses, in that order #: src/sudo/edit.rs:307 msgid "yn" msgstr "yn" #: src/sudo/edit.rs:311 #, rust-format msgid "sudoedit: truncate {path} to zero? (y/n) [n] " msgstr "sudoedit:是否将 {path} 截断为 0 字节?(y/n) [n]" #: src/sudo/edit.rs:324 #, rust-format msgid "not overwriting {path}" msgstr "未覆盖 {path}" #: src/sudo/edit.rs:328 src/sudo/edit.rs:337 #, rust-format msgid "failed to write data to parent: {error}" msgstr "写入父目录数据失败:{error}" #: src/sudo/pipeline/edit.rs:33 #, rust-format msgid "{path}: editing symbolic links is not permitted" msgstr "{path}: 不允许编辑符号链接" #: src/sudo/pipeline/edit.rs:39 #, rust-format msgid "error opening {path}: {error}" msgstr "{path}: 打开文件时出错:{error}" #: src/sudo/pipeline/edit.rs:46 #, rust-format msgid "invalid path: {path}" msgstr "{path}: 无效的路径" #: src/sudo/pipeline/edit.rs:51 msgid "please address the problems and try again" msgstr "请解决这些问题后重试" #: src/sudo/pipeline/list.rs:48 #, rust-format msgid "User {user} may run the following commands on {hostname}:" msgstr "用户 {user} 可以在 {hostname} 上运行以下命令:" #: src/sudo/pipeline/list.rs:63 #, rust-format msgid "User {user} is not allowed to run sudo on {hostname}." msgstr "用户 {user} 不被允许在 {hostname} 上运行 sudo。" #: src/sudo/cli/help_edit.rs:3 msgid "" "usage: sudoedit -h | -V\n" "usage: sudoedit [-BknS] [-p prompt] [-g group] [-u user] file ..." msgstr "" "用法: sudoedit -h | -V\n" "用法: sudoedit [-BknS] [-p prompt] [-g group] [-u user] file ..." #: src/sudo/cli/help_edit.rs:10 msgid "sudoedit - edit files as another user" msgstr "sudoedit - 以其他用户身份编辑文件" #: src/sudo/cli/help_edit.rs:15 msgid "" "Options:\n" " -B, --bell ring bell when prompting\n" " -g, --group=group run command as the specified group name or " "ID\n" " -h, --help display help message and exit\n" " -k, --reset-timestamp invalidate timestamp file\n" " -n, --non-interactive non-interactive mode, no prompts are used\n" " -p, --prompt=prompt use the specified password prompt\n" " -S, --stdin read password from standard input\n" " -u, --user=user run command (or edit file) as specified " "user\n" " name or ID\n" " -V, --version display version information and exit\n" " -- stop processing command line arguments" msgstr "" "选项:\n" " -B, --bell 提示输入时响铃\n" " -g, --group=group 以指定的组名或组 ID 运行命令\n" " -h, --help 显示帮助信息并退出\n" " -k, --reset-timestamp 使时间戳文件失效\n" " -n, --non-interactive 非交互模式,不使用提示\n" " -p, --prompt=prompt 使用指定的密码提示符\n" " -S, --stdin 从标准输入读取密码\n" " -u, --user=user 以指定用户名或用户 ID 运行命令(或编辑文件)\n" " -V, --version 显示版本信息并退出\n" " -- 停止处理命令行参数" #: src/sudo/cli/mod.rs:153 src/sudo/cli/mod.rs:218 src/sudo/cli/mod.rs:290 #: src/sudo/cli/mod.rs:379 src/sudo/cli/mod.rs:392 src/sudo/cli/mod.rs:823 #, rust-format msgid "{context} cannot be used together with {option}" msgstr "{context} 不能与 {option} 同时使用。" #: src/sudo/cli/mod.rs:227 msgid "must specify at least one file path" msgstr "必须至少指定一个文件路径" #: src/sudo/cli/mod.rs:302 #, rust-format msgid "'{option}' flag must be accompanied by a command" msgstr "'{option}' 标志必须伴随一个命令" #: src/sudo/cli/mod.rs:388 msgid "command (positional argument)" msgstr "命令(位置参数)" #: src/sudo/cli/mod.rs:403 msgid "expected one of: --login, --shell, a command as a positional argument" msgstr "预期参数为:--login、--shell 或作为位置参数的命令之一" #: src/sudo/cli/mod.rs:544 #, rust-format msgid "'{option}' does not take any arguments" msgstr "'{option}' 不接受任何参数" #: src/sudo/cli/mod.rs:556 src/sudo/cli/mod.rs:589 #, rust-format msgid "'{option}' expects an argument" msgstr "'{option}' 需要一个参数" #: src/sudo/cli/mod.rs:577 msgid "invalid option '='" msgstr "无效的选项 '='" #: src/sudo/cli/mod.rs:632 msgid "" "expected one of these actions: --help, --version, --remove-timestamp, --" "validate, --list, --edit, --login, --shell, a command as a positional " "argument, --reset-timestamp" msgstr "" "需要以下操作之一:--help、--version、--remove-timestamp、--" "validate、--list、--edit、--login、--shell、作为位置参数的命令,或 --reset-timestamp" #: src/sudo/cli/mod.rs:672 #, rust-format msgid "preserving the entire environment is not supported, '{flag}' is ignored" msgstr "不支持保留整个环境,'{flag}' 已被忽略" #: src/sudo/cli/mod.rs:716 src/sudo/cli/mod.rs:745 msgid "invalid option provided" msgstr "提供了无效的选项" #: src/sudo/cli/mod.rs:763 msgid "sudoedit doesn't need to be run via sudo" msgstr "sudoedit 无需通过 sudo 运行" #: src/sudo/cli/mod.rs:875 msgid "command" msgstr "命令" #: src/sudo/cli/mod.rs:876 msgid "environment variable" msgstr "环境变量" #: src/sudo/cli/help.rs:13 msgid "sudo - run commands as another user" msgstr "sudo - 以另一个用户身份运行命令" #: src/sudo/pipeline.rs:30 #, rust-format msgid "" "sudoers file not found: {path}\n" "\n" "The sudoers file is required for sudo-rs to function. Please ensure:\n" "- The file exists at the expected location\n" "- You have the necessary permissions to read it\n" "- If setting up sudo-rs for the first time, create a sudoers file with " "appropriate permissions\n" "\n" "For more information, see the sudo-rs documentation." msgstr "" "未找到 sudoers 文件:{path}\n" "\n" "sudo-rs 需要 sudoers 文件才能正常运行。请确认:\n" "- 文件存在于预期位置\n" "- 您拥有读取该文件所需的权限\n" "- 如果是首次配置 sudo-rs,请创建具有适当权限的 sudoers 文件\n" "\n" "更多信息请参阅 sudo-rs 文档。" #: src/sudo/pipeline.rs:41 #, rust-format msgid "invalid configuration: {error}" msgstr "无效的配置:{error}" #: src/sudo/cli/help.rs:3 msgid "" "usage: sudo -h | -K | -k | -V\n" "usage: sudo [-ABbknS] [-p prompt] [-D directory] [-g group] [-u user] [-i | " "-s] [command [arg ...]]\n" "usage: sudo -v [-ABknS] [-p prompt] [-g group] [-u user]\n" "usage: sudo -l [-ABknS] [-p prompt] [-U user] [-g group] [-u user] [command " "[arg ...]]\n" "usage: sudo -e [-ABknS] [-p prompt] [-D directory] [-g group] [-u user] " "file ..." msgstr "" "用法:sudo -h | -K | -k | -V\n" "用法:sudo [-ABbknS] [-p 提示符] [-D 目录] [-g 组] [-u 用户] [-i | " "-s] [命令 [参数 ...]]\n" "用法:sudo -v [-ABknS] [-p 提示符] [-g 组] [-u 用户]\n" "用法:sudo -l [-ABknS] [-p 提示符] [-U 用户] [-g 组] [-u 用户] [命令 " "[参数 ...]]\n" "用法:sudo -e [-ABknS] [-p 提示符] [-D 目录] [-g 组] [-u 用户] 文件 ..." #: src/sudo/cli/help.rs:17 msgid "" "Options:\n" " -A, --askpass use a helper program for password prompting\n" " -b, --background run command in the background\n" " -B, --bell ring bell when prompting\n" " -D, --chdir=directory change the working directory before running " "command\n" " -e, --edit edit files instead of running a command\n" " -g, --group=group run command as the specified group name or " "ID\n" " -h, --help display help message and exit\n" " -i, --login run login shell as the target user; a " "command may also be specified\n" " -K, --remove-timestamp remove timestamp file completely\n" " -k, --reset-timestamp invalidate timestamp file\n" " -l, --list list user's privileges or check a specific " "command; use twice for longer format\n" " -n, --non-interactive non-interactive mode, no prompts are used\n" " -p, --prompt=prompt use the specified password prompt\n" " -S, --stdin read password from standard input\n" " -s, --shell run shell as the target user; a command may " "also be specified\n" " -U, --other-user=user in list mode, display privileges for user\n" " -u, --user=user run command (or edit file) as specified user " "name or ID\n" " -V, --version display version information and exit\n" " -v, --validate update user's timestamp without running a " "command\n" " --preserve-env=list preserve specific environment variables\n" " -- stop processing command line arguments" msgstr "" "选项:\n" " -A, --askpass 使用辅助程序进行密码提示\n" " -b, --background 在后台运行命令\n" " -B, --bell 提示输入时响铃\n" " -D, --chdir=directory 在运行命令前切换工作目录\n" " -e, --edit 编辑文件而不是运行命令\n" " -g, --group=group 以指定的组名或组 ID 运行命令\n" " -h, --help 显示帮助信息并退出\n" " -i, --login 以目标用户身份运行登录 shell;也可指定命令\n" " -K, --remove-timestamp 完全删除时间戳文件\n" " -k, --reset-timestamp 使时间戳文件失效\n" " -l, --list 列出用户权限或检查指定命令;使用两次显示更详细格式\n" " -n, --non-interactive 非交互模式,不使用提示\n" " -p, --prompt=prompt 使用指定的密码提示符\n" " -S, --stdin 从标准输入读取密码\n" " -s, --shell 以目标用户身份运行 shell;也可指定命令\n" " -U, --other-user=user 在列表模式下显示指定用户的权限\n" " -u, --user=user 以指定用户名或用户 ID 运行命令(或编辑文件)\n" " -V, --version 显示版本信息并退出\n" " -v, --validate 更新用户时间戳而不运行命令\n" " --preserve-env=list 保留指定的环境变量\n" " -- 停止处理命令行参数" #: src/common/error.rs:74 msgid "" "The \"no new privileges\" flag is set, which prevents sudo from running as " "root.\n" "If sudo is running in a container, you may need to adjust the container " "configuration to disable the flag." msgstr "" "已设置 “no new privileges” 标志,这会阻止 sudo 以 root 身份运行。\n" "如果 sudo 运行在容器中,您可能需要调整容器配置以禁用该标志。" #: src/sudo/cli/mod.rs:505 #, rust-format msgid "argument '{arg}' is not valid UTF-8" msgstr "参数 '{arg}' 不是有效的 UTF-8"