Debian Codegraph @

po/zh_CN.po

raw
1 # Translation template file for sudo-rs
2 # Copyright (C) 2025 Trifecta Tech Foundation
3 # This file is distributed under the same license as the sudo-rs package.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: sudo-rs 0.2.13\n"
8 "Report-Msgid-Bugs-To: https://github.com/trifectatechfoundation/sudo-rs/"
9 "issues\n"
10 "POT-Creation-Date: 2026-10-03 17:30+0100\n"
11 "PO-Revision-Date: 2026-04-26 12:00+0800\n"
12 "Last-Translator: Oliver <[email protected]>\n"
13 "Language-Team: Chinese\n"
14 "Language: zh_CN\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. TRANSLATORS: This is a well-known quote, try to preserve it in translation.
20 #: src/common/error.rs:89
21 #, rust-format
22 msgid "I'm sorry {user}. I'm afraid I can't do that"
23 msgstr "抱歉,{user}。恐怕我不能这么做"
24
25 #: src/sudoers/entry/verbose.rs:33
26 msgid "Commands:"
27 msgstr "命令:"
28
29 #: src/sudoers/entry/verbose.rs:46
30 msgid "Sudoers entry:"
31 msgstr "sudoers 条目:"
32
33 #. TRANSLATORS: This is sudo-specific jargon.
34 #: src/sudoers/entry/verbose.rs:54
35 msgid "RunAsUsers"
36 msgstr "RunAsUsers"
37
38 #. TRANSLATORS: This is sudo-specific jargon.
39 #: src/sudoers/entry/verbose.rs:64
40 msgid "RunAsGroups"
41 msgstr "RunAsGroups"
42
43 #: src/sudoers/entry/verbose.rs:70
44 msgid "Options"
45 msgstr "选项"
46
47 #. TRANSLATORS: This is sudo-specific jargon.
48 #: src/sudoers/entry/verbose.rs:79
49 msgid "Cwd"
50 msgstr "当前工作目录"
51
52 #: src/pam/askpass.rs:55
53 #, rust-format
54 msgid "Failed to run askpass program {path}: {error}"
55 msgstr "运行 askpass 程序失败 {path}:{error}"
56
57 #: src/pam/error.rs:211 src/common/error.rs:136 src/common/error.rs:143
58 msgid "Unexpected null character in input"
59 msgstr "输入中包含意外的空字符"
60
61 #: src/pam/error.rs:212
62 msgid "Could not read input data as UTF-8 string"
63 msgstr "无法将输入数据解析为 UTF-8 字符串"
64
65 #: src/pam/error.rs:214
66 msgid "Account validation failure, is your account locked?"
67 msgstr "账户验证失败,您的账户是否已被锁定?"
68
69 #: src/pam/error.rs:219
70 msgid "Account or password is expired, reset your password and try again"
71 msgstr "账户或密码已过期,请重置密码后重试"
72
73 #: src/pam/error.rs:223
74 msgid "Password expired, contact your system administrator"
75 msgstr "密码已过期,请联系系统管理员"
76
77 #: src/pam/error.rs:225
78 #, rust-format
79 msgid "PAM error: {error}"
80 msgstr "PAM 错误:{error}"
81
82 #: src/pam/error.rs:226 src/common/error.rs:116
83 #, rust-format
84 msgid "IO error: {error}"
85 msgstr "IO 错误:{error}"
86
87 #: src/pam/error.rs:227
88 msgid "A terminal is required to authenticate"
89 msgstr "需要终端来进行身份验证"
90
91 #: src/pam/error.rs:231
92 msgid "It was not possible to get a list of environment variables"
93 msgstr "无法获取环境变量列表"
94
95 #: src/pam/error.rs:234
96 msgid "Interaction is required"
97 msgstr "需要交互"
98
99 #: src/pam/error.rs:236
100 msgid "Authentication required but not attempted"
101 msgstr "需要认证,但尚未尝试"
102
103 #: src/pam/error.rs:239
104 msgid "Incorrect authentication attempt"
105 msgstr "认证尝试失败"
106
107 #: src/pam/error.rs:241
108 msgid "timed out"
109 msgstr "超时"
110 #: src/pam/error.rs:245
111 #, rust-format
112 msgid "Sorry, user {user} is not allowed to authenticate as {other_user}."
113 msgstr "抱歉,用户 {user} 不被允许以 {other_user} 身份进行身份验证。"
114
115 #: src/pam/error.rs:251
116 msgid "No askpass program specified in SUDO_ASKPASS"
117 msgstr "SUDO_ASKPASS 中未指定 askpass 程序"
118
119 #: src/pam/error.rs:256
120 #, rust-format
121 msgid "Askpass program '{path}' is not an absolute path"
122 msgstr "Askpass 程序 '{path}' 不是绝对路径"
123
124 #: src/pam/mod.rs:86
125 msgid "authenticate"
126 msgstr "验证"
127
128 #: src/pam/converse.rs:153
129 msgid "input needed"
130 msgstr "需要输入"
131
132 #: src/system/audit.rs:155
133 #, rust-format
134 msgid "{path} must be owned by root"
135 msgstr "{path} 必须属于 root"
136
137 #: src/system/audit.rs:160
138 #, rust-format
139 msgid "{path} cannot be group-writable"
140 msgstr "{path} 不能被组写入"
141
142 #: src/system/audit.rs:165
143 #, rust-format
144 msgid "{path} cannot be world-writable"
145 msgstr "{path} 不能被所有人写入"
146
147 #: src/system/audit.rs:206
148 #, rust-format
149 msgid "{path} has no valid parent directory"
150 msgstr "{path} 没有有效的父目录"
151
152 #: src/system/audit.rs:285
153 msgid "invalid path"
154 msgstr "无效路径"
155
156 #: src/system/audit.rs:293
157 msgid "path must be absolute"
158 msgstr "路径必须是绝对路径"
159
160 #: src/system/audit.rs:305 src/system/audit.rs:329
161 msgid "cannot open a file in a path writable by the user"
162 msgstr "无法在用户可写入的路径中打开文件"
163
164 #: src/system/audit.rs:347
165 msgid "error in provided path"
166 msgstr "提供的路径有误"
167
168 #: src/common/error.rs:52
169 #, rust-format
170 msgid ""
171 "Sorry, user {user} is not allowed to execute '{command}' as {other_user} on "
172 "{hostname}."
173 msgstr "抱歉,用户 {user} 不允许以 {other_user} 的身份在 {hostname} 上执行 '{command}'。"
174
175 #: src/common/error.rs:61
176 #, rust-format
177 msgid "Sorry, user {user} may not run {command} on {hostname}."
178 msgstr "抱歉,用户 {user} 不允许在 {hostname} 上运行 {command}。"
179
180 #: src/common/error.rs:69
181 msgid "sudo must be owned by uid 0 and have the setuid bit set"
182 msgstr "sudo 必须归属 UID 0 并设置 setuid 位"
183
184 #: src/common/error.rs:80
185 #, rust-format
186 msgid "'{path}': command not found"
187 msgstr "'{path}': 未找到命令"
188
189 #: src/common/error.rs:83
190 #, rust-format
191 msgid "'{path}': invalid command"
192 msgstr "'{path}': 无效命令"
193
194 #: src/common/error.rs:85
195 #, rust-format
196 msgid "user '{user}' not found"
197 msgstr "用户 '{user}' 未找到"
198
199 #: src/common/error.rs:86
200 #, rust-format
201 msgid "group '{group}' not found"
202 msgstr "组 '{group}' 未找到"
203
204 #: src/common/error.rs:91
205 msgid "interactive authentication is required"
206 msgstr "需要交互式身份验证"
207
208 #: src/common/error.rs:95
209 msgid "you are not allowed to set the following environment variables:"
210 msgstr "您不允许设置以下环境变量:"
211
212 #: src/common/error.rs:111
213 #, rust-format
214 msgid "cannot execute '{path}': {error}"
215 msgstr "无法执行 '{path}':{error}"
216
217 #: src/common/error.rs:122
218 #, rust-format
219 msgid "maximum {num} incorrect authentication attempts"
220 msgstr "认证失败超过 {num}"
221
222 #: src/common/error.rs:128
223 #, rust-format
224 msgid "you are not allowed to use '--chdir {path}' with '{command}'"
225 msgstr "你不被允许在 '{command}' 中使用 '--chdir {path}'"
226
227 #: src/common/error.rs:150
228 #, rust-format
229 msgid "unable to change AppArmor profile to {profile}: {error}"
230 msgstr "无法将 AppArmor 配置文件更改为 {profile}:{error}"
231
232 #: src/sudo/pam.rs:127
233 msgid "Authentication failed, try again."
234 msgstr "抱歉,认证失败,请重试"
235
236 #: src/exec/mod.rs:154
237 #, rust-format
238 msgid "unable to change directory to {path}: {error}"
239 msgstr "无法更改目录到 {path}:{error}"
240
241 #: src/sudo/edit.rs:47
242 #, rust-format
243 msgid "failed to read metadata for {path}: {error}"
244 msgstr "读取 {path} 的元数据失败:{error}"
245
246 #: src/sudo/edit.rs:55
247 #, rust-format
248 msgid "file {path} is not a regular file"
249 msgstr "文件 {path} 不是普通文件"
250
251 #: src/sudo/edit.rs:65
252 #, rust-format
253 msgid "failed to lock {path}: {error}"
254 msgstr "锁定 {path} 失败:{error}"
255
256 #: src/sudo/edit.rs:78
257 #, rust-format
258 msgid "failed to read {path}: {error}"
259 msgstr "读取 {path} 失败:{error}"
260
261 #: src/sudo/edit.rs:145
262 #, rust-format
263 msgid "{path} unchanged"
264 msgstr "{path} 未更改"
265
266 #: src/sudo/edit.rs:165
267 #, rust-format
268 msgid "failed to write {path}: {error}"
269 msgstr "写入 {path} 失败:{error}"
270
271 #: src/sudo/edit.rs:184
272 #, rust-format
273 msgid "failed to remove temporary directory {path}: {error}"
274 msgstr "删除临时目录 {path} 失败:{error}"
275
276 #: src/sudo/edit.rs:196
277 #, rust-format
278 msgid "{error}"
279 msgstr "{error}"
280
281 #: src/sudo/edit.rs:217
282 #, rust-format
283 msgid "failed to create temporary directory: {error}"
284 msgstr "创建临时目录失败:{error}"
285
286 #: src/sudo/edit.rs:225
287 #, rust-format
288 msgid "failed to create temporary directory {path}: {error}"
289 msgstr "创建临时目录 {path} 失败:{error}"
290
291 #: src/sudo/edit.rs:239
292 #, rust-format
293 msgid "failed to create temporary file {path}: {error}"
294 msgstr "创建临时文件 {path} 失败:{error}"
295
296 #: src/sudo/edit.rs:248
297 #, rust-format
298 msgid "failed to write to temporary file {path}: {error}"
299 msgstr "写入临时文件 {path} 失败:{error}"
300
301 #: src/sudo/edit.rs:268
302 #, rust-format
303 msgid "failed to run editor {path}: {error}"
304 msgstr "运行编辑器 {path} 失败:{error}"
305
306 #: src/sudo/edit.rs:289
307 #, rust-format
308 msgid "failed to read from temporary file {path}: {error}"
309 msgstr "从临时文件 {path} 读取失败:{error}"
310
311 #: src/sudo/edit.rs:298
312 #, rust-format
313 msgid "failed to remove temporary file {path}: {error}"
314 msgstr "删除临时文件 {path} 失败:{error}"
315
316 #. TRANSLATORS: the initial letters of 'yes' and 'no' responses, in that order
317 #: src/sudo/edit.rs:307
318 msgid "yn"
319 msgstr "yn"
320
321 #: src/sudo/edit.rs:311
322 #, rust-format
323 msgid "sudoedit: truncate {path} to zero? (y/n) [n] "
324 msgstr "sudoedit:是否将 {path} 截断为 0 字节?(y/n) [n]"
325
326 #: src/sudo/edit.rs:324
327 #, rust-format
328 msgid "not overwriting {path}"
329 msgstr "未覆盖 {path}"
330
331 #: src/sudo/edit.rs:328 src/sudo/edit.rs:337
332 #, rust-format
333 msgid "failed to write data to parent: {error}"
334 msgstr "写入父目录数据失败:{error}"
335
336 #: src/sudo/pipeline/edit.rs:33
337 #, rust-format
338 msgid "{path}: editing symbolic links is not permitted"
339 msgstr "{path}: 不允许编辑符号链接"
340
341 #: src/sudo/pipeline/edit.rs:39
342 #, rust-format
343 msgid "error opening {path}: {error}"
344 msgstr "{path}: 打开文件时出错:{error}"
345
346 #: src/sudo/pipeline/edit.rs:46
347 #, rust-format
348 msgid "invalid path: {path}"
349 msgstr "{path}: 无效的路径"
350
351 #: src/sudo/pipeline/edit.rs:51
352 msgid "please address the problems and try again"
353 msgstr "请解决这些问题后重试"
354
355 #: src/sudo/pipeline/list.rs:48
356 #, rust-format
357 msgid "User {user} may run the following commands on {hostname}:"
358 msgstr "用户 {user} 可以在 {hostname} 上运行以下命令:"
359 #: src/sudo/pipeline/list.rs:63
360 #, rust-format
361 msgid "User {user} is not allowed to run sudo on {hostname}."
362 msgstr "用户 {user} 不被允许在 {hostname} 上运行 sudo。"
363
364 #: src/sudo/cli/help_edit.rs:3
365 msgid ""
366 "usage: sudoedit -h | -V\n"
367 "usage: sudoedit [-BknS] [-p prompt] [-g group] [-u user] file ..."
368 msgstr ""
369 "用法: sudoedit -h | -V\n"
370 "用法: sudoedit [-BknS] [-p prompt] [-g group] [-u user] file ..."
371
372 #: src/sudo/cli/help_edit.rs:10
373 msgid "sudoedit - edit files as another user"
374 msgstr "sudoedit - 以其他用户身份编辑文件"
375
376 #: src/sudo/cli/help_edit.rs:15
377 msgid ""
378 "Options:\n"
379 " -B, --bell ring bell when prompting\n"
380 " -g, --group=group run command as the specified group name or "
381 "ID\n"
382 " -h, --help display help message and exit\n"
383 " -k, --reset-timestamp invalidate timestamp file\n"
384 " -n, --non-interactive non-interactive mode, no prompts are used\n"
385 " -p, --prompt=prompt use the specified password prompt\n"
386 " -S, --stdin read password from standard input\n"
387 " -u, --user=user run command (or edit file) as specified "
388 "user\n"
389 " name or ID\n"
390 " -V, --version display version information and exit\n"
391 " -- stop processing command line arguments"
392 msgstr ""
393 "选项:\n"
394 " -B, --bell 提示输入时响铃\n"
395 " -g, --group=group 以指定的组名或组 ID 运行命令\n"
396 " -h, --help 显示帮助信息并退出\n"
397 " -k, --reset-timestamp 使时间戳文件失效\n"
398 " -n, --non-interactive 非交互模式,不使用提示\n"
399 " -p, --prompt=prompt 使用指定的密码提示符\n"
400 " -S, --stdin 从标准输入读取密码\n"
401 " -u, --user=user 以指定用户名或用户 ID 运行命令(或编辑文件)\n"
402 " -V, --version 显示版本信息并退出\n"
403 " -- 停止处理命令行参数"
404
405
406 #: src/sudo/cli/mod.rs:153 src/sudo/cli/mod.rs:218 src/sudo/cli/mod.rs:290
407 #: src/sudo/cli/mod.rs:379 src/sudo/cli/mod.rs:392 src/sudo/cli/mod.rs:823
408 #, rust-format
409 msgid "{context} cannot be used together with {option}"
410 msgstr "{context} 不能与 {option} 同时使用。"
411
412 #: src/sudo/cli/mod.rs:227
413 msgid "must specify at least one file path"
414 msgstr "必须至少指定一个文件路径"
415
416 #: src/sudo/cli/mod.rs:302
417 #, rust-format
418 msgid "'{option}' flag must be accompanied by a command"
419 msgstr "'{option}' 标志必须伴随一个命令"
420
421 #: src/sudo/cli/mod.rs:388
422 msgid "command (positional argument)"
423 msgstr "命令(位置参数)"
424
425 #: src/sudo/cli/mod.rs:403
426 msgid "expected one of: --login, --shell, a command as a positional argument"
427 msgstr "预期参数为:--login、--shell 或作为位置参数的命令之一"
428
429 #: src/sudo/cli/mod.rs:544
430 #, rust-format
431 msgid "'{option}' does not take any arguments"
432 msgstr "'{option}' 不接受任何参数"
433
434 #: src/sudo/cli/mod.rs:556 src/sudo/cli/mod.rs:589
435 #, rust-format
436 msgid "'{option}' expects an argument"
437 msgstr "'{option}' 需要一个参数"
438 #: src/sudo/cli/mod.rs:577
439 msgid "invalid option '='"
440 msgstr "无效的选项 '='"
441
442 #: src/sudo/cli/mod.rs:632
443 msgid ""
444 "expected one of these actions: --help, --version, --remove-timestamp, --"
445 "validate, --list, --edit, --login, --shell, a command as a positional "
446 "argument, --reset-timestamp"
447 msgstr ""
448 "需要以下操作之一:--help、--version、--remove-timestamp、--"
449 "validate、--list、--edit、--login、--shell、作为位置参数的命令,或 --reset-timestamp"
450
451 #: src/sudo/cli/mod.rs:672
452 #, rust-format
453 msgid "preserving the entire environment is not supported, '{flag}' is ignored"
454 msgstr "不支持保留整个环境,'{flag}' 已被忽略"
455
456 #: src/sudo/cli/mod.rs:716 src/sudo/cli/mod.rs:745
457 msgid "invalid option provided"
458 msgstr "提供了无效的选项"
459
460 #: src/sudo/cli/mod.rs:763
461 msgid "sudoedit doesn't need to be run via sudo"
462 msgstr "sudoedit 无需通过 sudo 运行"
463
464 #: src/sudo/cli/mod.rs:875
465 msgid "command"
466 msgstr "命令"
467
468 #: src/sudo/cli/mod.rs:876
469 msgid "environment variable"
470 msgstr "环境变量"
471
472 #: src/sudo/cli/help.rs:13
473 msgid "sudo - run commands as another user"
474 msgstr "sudo - 以另一个用户身份运行命令"
475
476 #: src/sudo/pipeline.rs:30
477 #, rust-format
478 msgid ""
479 "sudoers file not found: {path}\n"
480 "\n"
481 "The sudoers file is required for sudo-rs to function. Please ensure:\n"
482 "- The file exists at the expected location\n"
483 "- You have the necessary permissions to read it\n"
484 "- If setting up sudo-rs for the first time, create a sudoers file with "
485 "appropriate permissions\n"
486 "\n"
487 "For more information, see the sudo-rs documentation."
488 msgstr ""
489 "未找到 sudoers 文件:{path}\n"
490 "\n"
491 "sudo-rs 需要 sudoers 文件才能正常运行。请确认:\n"
492 "- 文件存在于预期位置\n"
493 "- 您拥有读取该文件所需的权限\n"
494 "- 如果是首次配置 sudo-rs,请创建具有适当权限的 sudoers 文件\n"
495 "\n"
496 "更多信息请参阅 sudo-rs 文档。"
497
498 #: src/sudo/pipeline.rs:41
499 #, rust-format
500 msgid "invalid configuration: {error}"
501 msgstr "无效的配置:{error}"
502
503 #: src/sudo/cli/help.rs:3
504 msgid ""
505 "usage: sudo -h | -K | -k | -V\n"
506 "usage: sudo [-ABbknS] [-p prompt] [-D directory] [-g group] [-u user] [-i | "
507 "-s] [command [arg ...]]\n"
508 "usage: sudo -v [-ABknS] [-p prompt] [-g group] [-u user]\n"
509 "usage: sudo -l [-ABknS] [-p prompt] [-U user] [-g group] [-u user] [command "
510 "[arg ...]]\n"
511 "usage: sudo -e [-ABknS] [-p prompt] [-D directory] [-g group] [-u user] "
512 "file ..."
513 msgstr ""
514 "用法:sudo -h | -K | -k | -V\n"
515 "用法:sudo [-ABbknS] [-p 提示符] [-D 目录] [-g 组] [-u 用户] [-i | "
516 "-s] [命令 [参数 ...]]\n"
517 "用法:sudo -v [-ABknS] [-p 提示符] [-g 组] [-u 用户]\n"
518 "用法:sudo -l [-ABknS] [-p 提示符] [-U 用户] [-g 组] [-u 用户] [命令 "
519 "[参数 ...]]\n"
520 "用法:sudo -e [-ABknS] [-p 提示符] [-D 目录] [-g 组] [-u 用户] 文件 ..."
521
522 #: src/sudo/cli/help.rs:17
523 msgid ""
524 "Options:\n"
525 " -A, --askpass use a helper program for password prompting\n"
526 " -b, --background run command in the background\n"
527 " -B, --bell ring bell when prompting\n"
528 " -D, --chdir=directory change the working directory before running "
529 "command\n"
530 " -e, --edit edit files instead of running a command\n"
531 " -g, --group=group run command as the specified group name or "
532 "ID\n"
533 " -h, --help display help message and exit\n"
534 " -i, --login run login shell as the target user; a "
535 "command may also be specified\n"
536 " -K, --remove-timestamp remove timestamp file completely\n"
537 " -k, --reset-timestamp invalidate timestamp file\n"
538 " -l, --list list user's privileges or check a specific "
539 "command; use twice for longer format\n"
540 " -n, --non-interactive non-interactive mode, no prompts are used\n"
541 " -p, --prompt=prompt use the specified password prompt\n"
542 " -S, --stdin read password from standard input\n"
543 " -s, --shell run shell as the target user; a command may "
544 "also be specified\n"
545 " -U, --other-user=user in list mode, display privileges for user\n"
546 " -u, --user=user run command (or edit file) as specified user "
547 "name or ID\n"
548 " -V, --version display version information and exit\n"
549 " -v, --validate update user's timestamp without running a "
550 "command\n"
551 " --preserve-env=list preserve specific environment variables\n"
552 " -- stop processing command line arguments"
553 msgstr ""
554 "选项:\n"
555 " -A, --askpass 使用辅助程序进行密码提示\n"
556 " -b, --background 在后台运行命令\n"
557 " -B, --bell 提示输入时响铃\n"
558 " -D, --chdir=directory 在运行命令前切换工作目录\n"
559 " -e, --edit 编辑文件而不是运行命令\n"
560 " -g, --group=group 以指定的组名或组 ID 运行命令\n"
561 " -h, --help 显示帮助信息并退出\n"
562 " -i, --login 以目标用户身份运行登录 shell;也可指定命令\n"
563 " -K, --remove-timestamp 完全删除时间戳文件\n"
564 " -k, --reset-timestamp 使时间戳文件失效\n"
565 " -l, --list 列出用户权限或检查指定命令;使用两次显示更详细格式\n"
566 " -n, --non-interactive 非交互模式,不使用提示\n"
567 " -p, --prompt=prompt 使用指定的密码提示符\n"
568 " -S, --stdin 从标准输入读取密码\n"
569 " -s, --shell 以目标用户身份运行 shell;也可指定命令\n"
570 " -U, --other-user=user 在列表模式下显示指定用户的权限\n"
571 " -u, --user=user 以指定用户名或用户 ID 运行命令(或编辑文件)\n"
572 " -V, --version 显示版本信息并退出\n"
573 " -v, --validate 更新用户时间戳而不运行命令\n"
574 " --preserve-env=list 保留指定的环境变量\n"
575 " -- 停止处理命令行参数"
576
577 #: src/common/error.rs:74
578 msgid ""
579 "The \"no new privileges\" flag is set, which prevents sudo from running as "
580 "root.\n"
581 "If sudo is running in a container, you may need to adjust the container "
582 "configuration to disable the flag."
583 msgstr ""
584 "已设置 “no new privileges” 标志,这会阻止 sudo 以 root 身份运行。\n"
585 "如果 sudo 运行在容器中,您可能需要调整容器配置以禁用该标志。"
586
587 #: src/sudo/cli/mod.rs:505
588 #, rust-format
589 msgid "argument '{arg}' is not valid UTF-8"
590 msgstr "参数 '{arg}' 不是有效的 UTF-8"