⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grub-0.97-patch6-chinese

📁 grub for dos ,people can use it in dos for calling linux
💻 97-PATCH6-CHINESE
📖 第 1 页 / 共 4 页
字号:
diff -Naur grub-0.97_splash/stage2/builtins.c grub-0.97_chinese/stage2/builtins.c--- grub-0.97_splash/stage2/builtins.c	2006-10-24 12:28:51.000000000 +0800+++ grub-0.97_chinese/stage2/builtins.c	2006-10-24 12:28:52.000000000 +0800@@ -65,6 +65,8 @@ int fallback_entries[MAX_FALLBACK_ENTRIES]; /* The number of current entry.  */ int current_entryno;+/* graphics file */+char graphics_file[64]; /* The address for Multiboot command-line buffer.  */ static char *mb_cmdline; static char kernel_option_video[64];@@ -376,7 +378,9 @@   blocklist_func,   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "blocklist FILE",-  "Print the blocklist notation of the file FILE."+  "Print the blocklist notation of the file FILE.",+  "blocklist FILE",+  "输出文件的块清单标记。" };  #if ! defined(GRUB_UTIL) && ! defined (STAGE1_5)@@ -937,7 +941,9 @@   boot_func,   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "boot",-  "Boot the OS/chain-loader which has been loaded."+  "Boot the OS/chain-loader which has been loaded.",+  "boot",+  "引导已加载的操作系统或扇区链式加载器。"   }; #endif /* ! GRUB_UTIL */ @@ -984,7 +990,11 @@   "bootp [--with-configfile]",   "Initialize a network device via BOOTP. If the option `--with-configfile'"   " is given, try to load a configuration file specified by the 150 vendor"-  " tag."+  " tag.",+  "bootp [--with-configfile]",+  "通过BOOTP初试化网络设备。 "+  " 如果使用了`--with-configfile'参数,此命令将会试图去加载一个"+  " 特定的配置文件。"   }; #endif /* ! GRUB_UTIL */ #endif /* SUPPORT_NETBOOT */@@ -1136,6 +1146,13 @@       if (grub_isspace (c) || (c >= ' ' && c <= '~')) 	grub_putchar (c);       else+/* cat Chinese support begin */+#ifdef SUPPORT_GRAPHICS+      if (graphics_inited && ushFontReaded)+        grub_putchar (c);+      else+#endif+/* cat Chinese support end here */ 	grub_putchar ('?');       if (quit_print) 	break;@@ -1152,7 +1169,9 @@   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "cat [--hex] [--skip=S] [--length=L] [--locate=STRING] FILE",   "Print the contents of the file FILE, or print the locations "-  "of the string STRING in FILE."+  "of the string STRING in FILE.",+  "cat [--hex] [--skip=S] [--length=L] [--locate=STRING] FILE",+  "显示指定文件的内容,或者显示文件中指定字符串的位置。" };  @@ -1204,7 +1223,10 @@   "cdrom --add-io-ports=P | --init | --stop",   "Initialise/stop atapi cdroms or set additional I/O ports for a possible atapi cdrom device."   " The high word of P specifies the base register of the control block registers, and"-  " the low word of P specifies the base register of the command block registers."+  " the low word of P specifies the base register of the command block registers.",+  "cdrom --add-io-ports=P | --init | --stop",+  "初始化或者停止所有的 ATAPI CDROM 设备, 或者为一个可能的 ATAPI CDROM 设备设置附加的 IO 端口。"+  " P 的高字指定设备控制寄存器组的端口基址,P 的低字指定设备命令寄存器组的端口基址。" }; #endif @@ -1931,7 +1953,12 @@   " RAM boot file format. Use --enable-a20 if you wish to keep"   " gateA20 alive when transferring control to the boot image."   " SL specifies length in bytes at the beginning of the image to be"-  " skipped when loading."+  " skipped when loading.",+  "chainloader [--force] [--load-segment=LS] [--load-offset=LO]"+  " [--load-length=LL] [--skip-length=SL] [--boot-cs=CS] [--boot-ip=IP]"+  " [--ebx=EBX] [--edx=EDX] [--sdi] [--enable-a20] FILE",+  "加载扇区链式加载器。若使用了--force参数, 则忽略该扇区的启动"+  " 标识的有效性。" };  @@ -2020,7 +2047,9 @@   BUILTIN_MENU | BUILTIN_CMDLINE,   "cmp FILE1 FILE2",   "Compare the file FILE1 with the FILE2 and inform the different values"-  " if any."+  " if any.",+  "cmp FILE1 FILE2",+  "比较两个文件, 并且报告两者之间的不同的信息。" };  @@ -2154,7 +2183,20 @@   " cyan, red, magenta, brown, light-gray, dark-gray, light-blue,"   " light-green, light-cyan, light-red, light-magenta, yellow and white."   " But only the first eight names can be used for BG. You can prefix"-  " \"blink-\" to FG if you want a blinking foreground color."+  " \"blink-\" to FG if you want a blinking foreground color.",+  "color NORMAL [HIGHLIGHT]",+  "改变菜单的颜色。"+  " Normal 用于指定菜单项的未选中时的颜色,HIGHLIGHT 则用于"+  " 指定菜单项的被选中时的颜色。如果你未指定 HIGHLIGHT 色,那么"+  " 我们将使用 NORMAL 的反色值。颜色值的格式是 \"FG/BG\"。FG 和"+  " BG 是颜色的名称,如下:"+  " black(黑), blue(蓝), green(绿), cyan(青), red(红), "+  " magenta(粉红), brown(棕), light-gray(亮灰),dark-gray(暗灰),"+  " light-blue(浅蓝), light-green(淡绿), light-cyan(淡青), "+  " light-red(明红), light-magenta(浅红), yellow(黄) 和 "+  " white(白)。"+  " 注意,BG 的值只能是前八个。另外,若想使用闪烁的前景色,你在"+  " FG 前使用前缀 \"blink-\" 即可。" };  @@ -2215,7 +2257,9 @@   configfile_func,   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "configfile FILE",-  "Load FILE as the configuration file."+  "Load FILE as the configuration file.",+  "configfile FILE",+  "将指定文件作为配置文件予以加载。" };  @@ -2226,13 +2270,28 @@   if (debug)     {       debug = 0;+#ifdef SUPPORT_GRAPHICS+	if (graphics_inited && ushFontReaded)+      grub_printf (" 除错模式已关闭\n");+	else       grub_printf (" Debug mode is turned off\n");+#else+      grub_printf (" Debug mode is turned off\n");+#endif     }   else     {       debug = 1;+#ifdef SUPPORT_GRAPHICS+	if (graphics_inited && ushFontReaded)+      grub_printf (" 除错模式已打开\n");+	else       grub_printf (" Debug mode is turned on\n");-    }+#else+      grub_printf (" Debug mode is turned on\n");+#endif++	}    return 0; }@@ -2243,7 +2302,9 @@   debug_func,   BUILTIN_MENU | BUILTIN_CMDLINE,   "debug",-  "Turn on/off the debug mode."+  "Turn on/off the debug mode.",+  "debug",+  "打开/关闭除错模式。" };  @@ -2367,7 +2428,9 @@   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "device DRIVE DEVICE",   "Specify DEVICE as the actual drive for a BIOS drive DRIVE. This command"-  " can be used only in the grub shell."+  " can be used only in the grub shell.",+  "device DRIVE DEVICE",+  "声明BIOS驱动器对应的实际物理设备。这条命令只用于grub命令行。" }; #endif /* GRUB_UTIL */ @@ -2387,12 +2450,13 @@   dhcp_func,   BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST,   "dhcp",-  "Initialize a network device via DHCP."+  "Initialize a network device via DHCP.",+  "dhcp",+  "通过DHCP初试化网络设备。" }; #endif /* SUPPORT_NETBOOT */ --static int terminal_func (char *arg, int flags);+static int terminal_func (char *arg, int flags);  #ifdef SUPPORT_GRAPHICS @@ -2444,7 +2508,9 @@   splashimage_func,   BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST,   "splashimage FILE",-  "Load FILE as the background image when in graphics mode."+  "Load FILE as the background image when in graphics mode.",+  "splashimage FILE",+  "图形模式下载入背景图片文件。", };  @@ -2474,7 +2540,11 @@   BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST,   "foreground RRGGBB",   "Sets the foreground color when in graphics mode."-  "RR is red, GG is green, and BB blue. Numbers must be in hexadecimal."+  "RR is red, GG is green, and BB blue. Numbers must be in hexadecimal.",+  "foreground RRGGBB",+  "设置图形模式下的前景色。"+  " RR 代表红色, GG 代表绿色, BB 代表蓝色。"+  " 注意他们都使用十六进制的值。" };  @@ -2503,7 +2573,11 @@   BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST,   "background RRGGBB",   "Sets the background color when in graphics mode."-  "RR is red, GG is green, and BB blue. Numbers must be in hexadecimal."+  "RR is red, GG is green, and BB blue. Numbers must be in hexadecimal.",+  "background RRGGBB",+  "设置图形模式下的背景色。"+  " RR 代表红色, GG 代表绿色, BB 代表蓝色。"+  " 注意他们都使用十六进制的值。" };  #endif /* SUPPORT_GRAPHICS */@@ -2524,7 +2598,9 @@   clear_func,   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "clear",-  "Clear the screen"+  "Clear the screen",+  "clear",+  "清屏幕。" };  @@ -2566,7 +2642,9 @@   displayapm_func,   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "displayapm",-  "Display APM BIOS information."+  "Display APM BIOS information.",+  "displayapm",+  "显示 APM BIOS 的相关信息。" };  @@ -2575,22 +2653,59 @@ displaymem_func (char *arg, int flags) {   if (get_eisamemsize () != -1)-    grub_printf (" EISA Memory BIOS Interface is present\n");+  {+#ifdef SUPPORT_GRAPHICS+	if (graphics_inited && ushFontReaded)+		grub_printf (" EISA内存BIOS接口存在\n");+	else+		grub_printf (" EISA Memory BIOS Interface is present\n");+#else+		grub_printf (" EISA Memory BIOS Interface is present\n");+#endif+}   if (get_mmap_entry ((void *) SCRATCHADDR, 0) != 0       || *((int *) SCRATCHADDR) != 0)-    grub_printf (" Address Map BIOS Interface is present\n");--  grub_printf (" Lower memory: %uK, "+      {+#ifdef SUPPORT_GRAPHICS+	if (graphics_inited && ushFontReaded)+	{+      grub_printf (" 地址变换BIOS接口存在\n");+      grub_printf (" 低端内存: %uK, "+	       "上位内存: %uK\n",+	       mbi.mem_lower, mbi.mem_upper);+	}+	else+	{+      grub_printf (" Address Map BIOS Interface is present\n");+      grub_printf (" Lower memory: %uK, " 	       "Upper memory (to first chipset hole): %uK\n", 	       mbi.mem_lower, mbi.mem_upper);+	}+#else+      grub_printf (" Address Map BIOS Interface is present\n");+      grub_printf (" Lower memory: %uK, "+	       "Upper memory (to first chipset hole): %uK\n",+	       mbi.mem_lower, mbi.mem_upper);+#endif+}    if (mbi.flags & MB_INFO_MEM_MAP)     {       struct AddrRangeDesc *map = (struct AddrRangeDesc *) mbi.mmap_addr;       unsigned long end_addr = mbi.mmap_addr + mbi.mmap_length; +#ifdef SUPPORT_GRAPHICS+	if (graphics_inited && ushFontReaded)+      grub_printf (" [地址区域描述符"+		   "紧随于(值为64位)]\n");+	else+      grub_printf (" [Address Range Descriptor entries "+		   "immediately follow (values are 64-bit)]\n");+#else       grub_printf (" [Address Range Descriptor entries " 		   "immediately follow (values are 64-bit)]\n");+#endif+       while (end_addr > (unsigned long) map) 	{ 	  char *str;@@ -2599,6 +2714,16 @@ 	    str = "Usable RAM"; 	  else 	    str = "Reserved";+#ifdef SUPPORT_GRAPHICS+	if (graphics_inited && ushFontReaded)+	  grub_printf ("   %s:  基址:  0x%x X 4GB + 0x%x,\n"+		       "      长度:   0x%x X 4GB + 0x%x 字节\n",+		       str,+		       (unsigned long) (map->BaseAddr >> 32),+		       (unsigned long) (map->BaseAddr & 0xFFFFFFFF),+		       (unsigned long) (map->Length >> 32),+		       (unsigned long) (map->Length & 0xFFFFFFFF));+	else 	  grub_printf ("   %s:  Base Address:  0x%x X 4GB + 0x%x,\n" 		       "      Length:   0x%x X 4GB + 0x%x bytes\n", 		       str,@@ -2606,7 +2731,15 @@ 		       (unsigned long) (map->BaseAddr & 0xFFFFFFFF), 		       (unsigned long) (map->Length >> 32), 		       (unsigned long) (map->Length & 0xFFFFFFFF));-+#else+	  grub_printf ("   %s:  Base Address:  0x%x X 4GB + 0x%x,\n"+		       "      Length:   0x%x X 4GB + 0x%x bytes\n",+		       str,+		       (unsigned long) (map->BaseAddr >> 32),+		       (unsigned long) (map->BaseAddr & 0xFFFFFFFF),+		       (unsigned long) (map->Length >> 32),+		       (unsigned long) (map->Length & 0xFFFFFFFF));+#endif 	  map = ((struct AddrRangeDesc *) (((int) map) + 4 + map->size)); 	}     }@@ -2621,7 +2754,10 @@   BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST,   "displaymem",   "Display what GRUB thinks the system address space map of the"-  " machine is, including all regions of physical RAM installed."+  " machine is, including all regions of physical RAM installed.",+  "displaymem",+  "显示 GRUB 所判断到的当前系统的内存分布,包括所有"+  " 物理内存区域。" };  @@ -2680,7 +2816,10 @@     BUILTIN_MENU | BUILTIN_CMDLINE,     "dump FROM TO",     "Dump the contents of the file FROM to the file TO. FROM must be"-    " a GRUB file and TO must be an OS file."+    " a GRUB file and TO must be an OS file.",+    "dump FROM TO",+    "显示诸多文件的内容。注意,FROM 所指定的必须是一个 GRUB"+	" 文件,TO 所指定的必须是一个 OS 文件。"   }; #endif /* GRUB_UTIL */ @@ -2827,7 +2966,11 @@   "embed STAGE1_5 DEVICE",   "Embed the Stage 1.5 STAGE1_5 in the sectors after MBR if DEVICE"   " is a drive, or in the \"bootloader\" area if DEVICE is a FFS partition."-  " Print the number of sectors which STAGE1_5 occupies if successful."+  " Print the number of sectors which STAGE1_5 occupies if successful.",+  "embed STAGE1_5 DEVICE",

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -