📄 patch-chinese.diff
字号:
@@ -3536,7 +3674,10 @@ " errors, instead of waiting for the user to do anything, it" " immediately starts over using the NUM entry (same numbering as the" " `default' command). This obviously won't help if the machine"- " was rebooted by a kernel that GRUB loaded."+ " was rebooted by a kernel that GRUB loaded.",+ "fallback NUM...",+ "\t进入无人干预启动模式:如果默认启动入口项出错失败,立即用入口项 NUM"+ "\n\t来启动(这里的“入口项”与 default 命令中的“入口项”意义相同)。" #endif }; @@ -3560,7 +3701,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, #if 1 "commandline",- "Enter command-line prompt mode."+ "Enter command-line prompt mode.",+ "commandline",+ "\t进入命令行提示符方式。" #endif }; @@ -3903,7 +4046,12 @@ " If the option --set-root is used and FILENAME is found on a device, then" " stop the find immediately and set the device as new root." " If the option --ignore-floppies is present, the search will bypass all"- " floppies."+ " floppies.",+ "find [--set-root[=DIR]] [--ignore-floppies] FILENAME",+ "\t在所有分区上查找文件名, 并显示包含该文件的设备。如果使用了"+ "\n\t--set-root 选项, 那么当在某个设备上找到 FILENAME 时, 立即停止查找,"+ "\n\t并将此设备设定为新的 root 设备。如果指定了 --ignore-floppies 选项,"+ "\n\t那么查找过程将略过所有的软盘。" }; @@ -3947,7 +4095,9 @@ fstest_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "fstest [on | off | status]",- "Turn on/off or display the fstest mode, or toggle it if no argument."+ "Turn on/off or display the fstest mode, or toggle it if no argument.",+ "fstest",+ "\t切换文件系统的跟踪测试模式。" }; @@ -4072,7 +4222,10 @@ " the one of the heads, the one of the sectors and the one of the total" " sectors are set to CYLINDER, HEAD, SECTOR and TOTAL_SECTOR," " respectively. If you omit TOTAL_SECTOR, then it will be calculated based"- " on the C/H/S values automatically."+ " on the C/H/S values automatically.",+ "geometry DRIVE [CYLINDER HEAD SECTOR [TOTAL_SECTOR]]",+ "\t输出驱动器的相关信息. 在 grub shell 中, 你可以用这条命令设置驱动器"+ "\n\t参数为任意值。如果你省略了总扇区数, 它将由 C/H/S 的值自动计算出来。" }; @@ -4096,7 +4249,10 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "halt [--no-apm]", "Halt your system. If APM is avaiable on it, turn off the power using"- " the APM BIOS, unless you specify the option `--no-apm'."+ " the APM BIOS, unless you specify the option `--no-apm'.",+ "halt [--no-apm]",+ "\t关闭系统。如果APM(高级电源管理)功能存在,将使用 APM BIOS 关闭系统,"+ "\n\t除非指定了 --no-apm 选项。" }; @@ -4181,13 +4337,25 @@ if (substring (arg, (*builtin)->name, 0) < 1) { char *doc = (*builtin)->long_doc;-+ /* At first, print the name and the short doc. */- grub_printf ("%s: %s\n",+ if ((*builtin)->short_doc)+ grub_printf ("%s: %s\n", (*builtin)->name, (*builtin)->short_doc); +#ifdef SUPPORT_GRAPHICS+ if (graphics_inited && ushFontReaded)+ {+ if ((*builtin)->sc_long_doc)+ grub_putstr ((*builtin)->sc_long_doc);+ grub_putchar ('\n');+ continue;+ }+#endif+ /* Print the long doc. */- while (*doc)+ if (doc)+ while (*doc) { int len = grub_strlen (doc); //int i;@@ -4224,7 +4392,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "help [--all] [PATTERN ...]", "Display helpful information about builtin commands. Not all commands"- " aren't shown without the option `--all'."+ " aren't shown without the option `--all'.",+ "help [--all] [PATTERN ...]",+ "\t显示内部命令的帮助信息。要查看所有命令的帮助,可使用 --all 参数。" }; @@ -4272,7 +4442,10 @@ "hide [PARTITION]", "Hide PARTITION by setting the \"hidden\" bit in" " its partition type code. The default partition is the current"- " root device."+ " root device.",+ "hide [PARTITION]",+ "\t通过在分区类型码上设置“隐藏”标志,来隐藏分区 PARTITION。"+ "\n\t默认的分区是当前的根设备。" }; @@ -4317,6 +4490,10 @@ "Hide/unhide PARTITION by setting/clearing the \"hidden\" bit in" " its partition type code, or report the hidden status." " The default partition is the current root device."+ , "hiddenflag [--set | --clear] [PARTITION]",+ "\t通过设置(或清除)分区类型码中的“隐藏”标志位来隐藏(或不隐藏)分区"+ "\n\tPARTITION。当 --set 和 --clear 都未指定时,只报告分区的隐藏状态。"+ "\n\t当 PARTITION 未指定时,使用当前的根设备。" }; @@ -4329,7 +4506,14 @@ if (! eth_probe ()) {- grub_printf ("No ethernet card found.\n");+#ifdef SUPPORT_GRAPHICS+ if (graphics_inited && ushFontReaded)+ grub_printf ("未发现网卡.\n");+ else+ grub_printf ("No ethernet card found.\n");+#else+ grub_printf ("No ethernet card found.\n");+#endif errnum = ERR_DEV_VALUES; return 0; }@@ -4370,7 +4554,10 @@ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "ifconfig [--address=IP] [--gateway=IP] [--mask=MASK] [--server=IP]", "Configure the IP address, the netmask, the gateway and the server"- " address or print current network configuration."+ " address or print current network configuration.",+ "ifconfig [--address=IP] [--gateway=IP] [--mask=MASK] [--server=IP]",+ "\t指定 IP 地址, 子网掩码, 网关和服务器地址。不带参数时,将显示当前的"+ "\n\t网络配置。" }; #endif /* SUPPORT_NETBOOT */ @@ -4404,7 +4591,10 @@ "impsprobe", "Probe the Intel Multiprocessor Specification 1.1 or 1.4" " configuration table and boot the various CPUs which are found into"- " a tight loop."+ " a tight loop.",+ "impsprobe",+ "\t探测 Intel 多处理器规范 1.1/1.4 配置表并使所找到的各处理器启动进入"+ "\n\t闭循环。" }; #endif @@ -4436,7 +4626,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "initrd FILE [ARG ...]", "Load an initial ramdisk FILE for a Linux format boot image and set the"- " appropriate parameters in the Linux setup area in memory."+ " appropriate parameters in the Linux setup area in memory.",+ "initrd FILE [ARG ...]",+ "\t加载 Linux 格式的初始化虚拟盘, 并设置必要的参数。" }; @@ -5008,7 +5200,15 @@ " patched with the configuration filename REAL_CONFIG_FILE." " If the option `--force-lba' is specified, disable some sanity checks" " for LBA mode. If the option `--stage2' is specified, rewrite the Stage"- " 2 via your OS's filesystem instead of the raw device."+ " 2 via your OS's filesystem instead of the raw device.",+ "install [--stage2=STAGE2_FILE] [--force-lba] STAGE1 [d] DEVICE STAGE2 [ADDR] [p] [CONFIG_FILE] [REAL_CONFIG_FILE]",+ "\t安装 STAGE1 到指定设备上, 安装加载 STAGE2 需要的块列表到 STAGE2 上。"+ "\n\t如果使用了选项'd', STAGE1 总是试图使用安装 STAGE2 的驱动器, 而不是"+ "\n\t启动盘。STAGE2 将加载在指定地址上, 如果未声明地址, 则自动检测。如果"+ "\n\t使用了选项 'p' 或给出了配置文件, 将修改 STAGE2 的第一个数据块, 修正"+ "\n\t实际 Stage2 启动时使用的配置文件位置。对于 Stage 1.5, 该值为 Stage2"+ "\n\t的路径。如果安装的是 Stage1.5, 且指定了实际配置文件, 则将该配置文件"+ "\n\t路径写入 Stage2 中。" }; @@ -5052,7 +5252,9 @@ ioprobe_func, BUILTIN_MENU | BUILTIN_CMDLINE, "ioprobe DRIVE",- "Probe I/O ports used for the drive DRIVE."+ "Probe I/O ports used for the drive DRIVE.",+ "ioprobe DRIVE",+ "\t侦测指定设备的 I/O 端口号。" }; #endif @@ -5166,7 +5368,13 @@ " to suggest what type of kernel to be loaded. TYPE must be either of" " \"netbsd\", \"freebsd\", \"openbsd\", \"linux\", \"biglinux\" and" " \"multiboot\". The option --no-mem-option tells GRUB not to pass a"- " Linux's mem option automatically."+ " Linux's mem option automatically.",+ "kernel [--no-mem-option] [--type=TYPE] FILE [ARG ...]",+ "\t尝试载入主引导影像文件。其它项将被作为内核的命令行参数而传递给内核。"+ "\n\t使用此命令以前,内核所用到的模块应该被重新载入。参数 --type 用于说"+ "\n\t明内核的类型,包括 netbsd, freebsd, openbsd, linux, biglinux 和"+ "\n\tmultiboot。参数 --no-mem-option 用于说明不必自动传递 Linux 的内存参"+ "\n\t数。" }; @@ -5189,7 +5397,9 @@ lock_func, BUILTIN_MENU | BUILTIN_CMDLINE, "lock",- "Break a command execution unless the user is authenticated."+ "Break a command execution unless the user is authenticated.",+ "lock",+ "\t如果用户未被认证,则终止命令的执行。" }; @@ -5213,7 +5423,9 @@ ls_func, BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "ls [FILE_OR_DIR]",- "List file or directory."+ "List file or directory.",+ "ls [FILE_OR_DIR]",+ "\t列出文件或目录。" }; #endif /* STAGE1_5 */ @@ -5315,7 +5527,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "makeactive [--status] [PART]", "Activate the partition PART. PART defaults to the current root device."- " This command is limited to _primary_ PC partitions on a hard disk."+ " This command is limited to _primary_ PC partitions on a hard disk.",+ "makeactive [--status] [PART]",+ "\t激活 PART 分区(或当前默认分区)。此命令只能用于硬盘的“主”分区。" }; @@ -7368,7 +7582,29 @@ " address RESERV in 512-byte-sectors and ending at the end of this mem" " block(usually the end of physical mem). RD specifies the ramdisk number," " and can be a BIOS drive number. ADDR specifies the base address of the"- " ramdisk image. SIZE specifies the size in bytes of the ramdisk image."+ " ramdisk image. SIZE specifies the size in bytes of the ramdisk image.",+ "map [--status] [--mem[=RESERV]] [--hook] [--unhook] [--rehook] [--floppies=M] [--harddrives=N] [--ram-drive=RD] [--rd-base=ADDR] [--rd-size=SIZE] [[--read-only] [--fake-write] [--unsafe-boot] [--disable-chs-mode] [--disable-lba-mode] [--heads=H] [--sectors-per-track=S] TO_DRIVE FROM_DRIVE]",+ "\t对设备进行映射。这对于扇区链式引导是很有用的功能,比如 DOS。这里,目"+ "\n\t的驱动器 TO_DRIVE 可以是一个磁盘文件(注意,当没有指定 --mem 时,这"+ "\n\t要求磁盘文件是连续存放于介质中的。另外,若使用了 --read-only 参数,"+ "\n\t该功能将使仿真磁盘处于只读; 若使用了 --fake-write 参数,该功能将使"+ "\n\t仿真磁盘处于假写,即简单地返回“写入”成功,但实际上不执行写入操作;"+ "\n\t若使用了 --unsafe-boot 参数,该功能将使仿真磁盘的第一扇区处于可写;"+ "\n\t(默认时仿真磁盘的第一扇区被保护,不能经由 int13/AH=03h 而写入)。"+ "\n\t若使用了 --disable-chs-mode 参数,CHS 访问功能将被禁用; 若使用了"+ "\n\t--disable-lba-mode 参数, LBA 访问功能将被禁用; H 和 S 指定了虚拟磁"+ "\n\t盘的物理参数。若使用了 --status, --hook, --unhook, --rehook,"+ "\n\t--floppies, --harddrives, --ram-drive, --rd-base, --rd-size,"+ "\n\t--memdisk-raw, --a20-keep-on, --safe-mbr-hook, --int13-scheme 诸参数"+ "\n\t之一,那么其它的命令行参数将被忽略。--floppies 用于修改 BIOS 数据区"+ "\n\t0x410 处的软盘个数位域。--harddrives 用于修改 BIOS 数据区 0x475 处的"+ "\n\t硬盘个数字节。--mem 参数指定使用内存来仿真磁盘(此时 TO_DRIVE 可以是"+ "\n\tgzip 格式的压缩文件)。--ram-drive 用于修改代表内存盘的 BIOS 磁盘号"+ "\n\t码。--rd-base 指定内存盘的起始地址。--rd-size 指定内存盘的大小(以字"+ "\n\t节计数)。如果 RESERV <= 0, 那么至少保留 (-RESERV * 512) 字节的内存"+ "\n\t用来存放该内存盘的扇区数据;如果 RESERV > 0, 该内存盘将起始于绝对物"+ "\n\t理地址 (RESERV * 512),而终止于该起始地址所在的连续内存块的结尾(通"+ "\n\t常等于或接近于物理内存的结尾)。" }; #endif /* ! GRUB_UTIL */ @@ -7435,7 +7671,9 @@ md5crypt_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "md5crypt",- "Generate a password in MD5 format."+ "Generate a password in MD5 format.",+ "md5crypt",+ "\t产生一个 MD5 格式的密码。" }; #endif /* USE_MD5_PASSWORDS */ @@ -7484,7 +7722,11 @@ " interpretation of the file contents is made, so users of this" " command must know what the kernel in question expects). The" " rest of the line is passed as the \"module command line\", like"- " the `kernel' command."+ " the `kernel' command.",+ "module FILE [ARG ...]",+ "\t为多重启动映像格式的引导映像加载启动模块文件 FILE(对该文件的内容不"+ "\n\t作任何解释, 因此使用这条命令的用户必须了解所提到的内核映像的要求)。"+ "\n\t其余参数作为“模块命令行”传递, 就像 kernel 命令那样。" }; @@ -7514,7 +7756,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "modulenounzip FILE [ARG ...]", "The same as `module', except that automatic decompression is"- " disabled."+ " disabled.",+ "modulenounzip FILE [ARG ...]",+ "\t与“module”命令相同, 差别是 GRUB 不会对 FILE 进行自动解压缩。" }; #ifdef SUPPORT_GRAPHICS@@ -7548,7 +7792,9 @@ outline_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "outline [on | off | status]",- "Turn on/off or display the outline mode, or toggle it if no argument."+ "Turn on/off or display the outline mode, or toggle it if no argument.",+ "outline [on | off | status]",+ "\t打开/关闭 或者 显示字符轮廓模式。无参数时,切换字符轮廓模式。" }; #endif /* SUPPORT_GRAPHICS */ @@ -7582,7 +7828,9 @@ pager_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "pager [on | off | status]",- "Turn on/off or display the pager mode, or toggle it if no argument."+ "Turn on/off or display the pager mode, or toggle it if no argument.",+ "pager [on | off | status]",+ "\t打开/关闭 或者 显示分页模式。无参数时,切换分页模式。" }; @@ -7903,7 +8151,13 @@ " If --active is used, the new partition will be active. START can be" " a contiguous file that will be used as the content/data of the new" " partition, in which case the LEN parameter is ignored, and TYPE can"- " be either 0x00 for auto or 0x10 for hidden-auto."+ " be either 0x00 for auto or 0x10 for hidden-auto.",+ "partnew [--active] PART TYPE START [LEN]",+ "\t创建一个新的主分区。START 为起始扇区号,LEN 为其包含的扇区数,TYPE"+ "\n\t为其分区类型。如果用了 --active,那么新建的分区将是“激活”的。"+ "\n\tSTART 可以是一个连续的文件(没有碎块),该文件将被用作新建分区"+ "\n\t的内容(即分区的数据),在这种情况下,LEN 参数被忽略,而且 TYPE"+ "\n\t可以是 0x00 表示“自动”,也可以是 0x10 表示“隐藏-自动”。" }; @@ -8013,7 +8267,10 @@ "parttype [PART] [TYPE]", "Change the type of the partition PART to TYPE. If TYPE is omitted, return " "the partition type of the specified device(instead of changing it). PART "- "default to the current root device."+ "default to the current root device.",+ "parttype [PART] [TYPE]",+ "\t把指定分区 PART 的分区类型改为 TYPE。如果省略 TYPE,则只返回指定分区的"+ "\n\t当前类型而不是修改指定分区的类型。如果省略 PART,则使用当前默认分区。" }; @@ -8091,7 +8348,13 @@ " instructions. You can also use it in the script section, in" " which case it will ask for the password, before continueing." " The option --md5 tells GRUB that PASSWD is encrypted with"- " md5crypt."+ " md5crypt.",+ "password [--md5] PASSWD [FILE]",+ "\t当其处于菜单文件的首项时,将禁用所有的交互式菜单编辑功能,包括编辑"+ "\n\t菜单项(`e')/进入命令行(`c')。当正确输入密码(由 PASSWD 指定)后, 载入"+ "\n\t新的菜单文件(由 FILE 指定)。如果你没有指定 FILE 项,那么上述被禁用"+ "\n\t的功能将被启用了。当然,你也可以将此命令用到某个菜单项里,用以提高"+ "\n\t系统安全性。参数 --md5 说明密码 PASSWD 是使用 md5crypt 加密的。" }; @@ -8157,7 +8420,10 @@ pause_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_NO_ECHO, "pause [--wait=T] [MESSAGE ...]",- "Print MESSAGE, then wait until a key is pressed or T seconds has passed."+ "Print MESSAGE, then wait until a key is pressed or T seconds has passed.",+ "pause [--wait=T] [MESSAGE ...]",+ "\t打印信息 MESSAGE,然后等待,直到按下一键,或者 T 秒过后,命令结束,"+ "\n\t控制返回到 GRUB,继续执行下一条命令。"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -