Skip to content

Commit

Permalink
Manual translate after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
xry111 committed Aug 29, 2024
1 parent 696ef72 commit 7017a14
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 71 deletions.
5 changes: 2 additions & 3 deletions zh_CN/chapter07/changingowner.po
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ msgstr ""

#. type: Content of: <sect1><screen>
#: lfs-en/chapter07/changingowner.xml
#, fuzzy, no-wrap
#| msgid "<userinput>chown -R root:root $LFS/{usr,lib,lib64,var,etc,bin,sbin,tools}</userinput>"
#, no-wrap
msgid "<userinput>chown --from lfs -R root:root $LFS/{usr,lib,lib64,var,etc,bin,sbin,tools}</userinput>"
msgstr "<userinput>chown -R root:root $LFS/{usr,lib,lib64,var,etc,bin,sbin,tools}</userinput>"
msgstr "<userinput>chown --from lfs -R root:root $LFS/{usr,lib,lib64,var,etc,bin,sbin,tools}</userinput>"
13 changes: 2 additions & 11 deletions zh_CN/chapter08/binutils.po
Original file line number Diff line number Diff line change
Expand Up @@ -450,17 +450,7 @@ msgstr "&binutils-fin-du;"

#. type: Content of: <sect1><sect2><screen>
#: lfs-en/chapter08/binutils.xml
#, fuzzy, no-wrap
#| msgid ""
#| "<userinput remap=\"configure\">../configure --prefix=/usr \\\n"
#| " --sysconfdir=/etc \\\n"
#| " --enable-ld=default \\\n"
#| " --enable-plugins \\\n"
#| " --enable-shared \\\n"
#| " --disable-werror \\\n"
#| " --enable-64-bit-bfd \\\n"
#| " --with-system-zlib \\\n"
#| " --enable-default-hash-style=gnu</userinput>"
#, no-wrap
msgid ""
"<userinput remap=\"configure\">../configure --prefix=/usr \\\n"
" --sysconfdir=/etc \\\n"
Expand All @@ -480,6 +470,7 @@ msgstr ""
" --enable-shared \\\n"
" --disable-werror \\\n"
" --enable-64-bit-bfd \\\n"
" --enable-new-dtags \\\n"
" --with-system-zlib \\\n"
" --enable-default-hash-style=gnu</userinput>"

Expand Down
14 changes: 7 additions & 7 deletions zh_CN/chapter08/gcc.po
Original file line number Diff line number Diff line change
Expand Up @@ -736,14 +736,9 @@ msgstr "现在移除或修复若干已知会失败的测试:"

#. type: Content of: <sect1><sect2><screen>
#: lfs-en/chapter08/gcc.xml
#, fuzzy, no-wrap
#| msgid ""
#| "<userinput remap=\"pre\">sed -e 's/lib64/lib/' \\\n"
#| " -i.orig gcc/config/loongarch/{t-linux,linux.h}</userinput>"
#, no-wrap
msgid "<userinput remap=\"test\">sed -e '/cpython/d' -i ../gcc/testsuite/gcc.dg/plugin/plugin.exp</userinput>"
msgstr ""
"<userinput remap=\"pre\">sed -e 's/lib64/lib/' \\\n"
" -i.orig gcc/config/loongarch/{t-linux,linux.h}</userinput>"
msgstr "<userinput remap=\"test\">sed -e '/cpython/d' -i ../gcc/testsuite/gcc.dg/plugin/plugin.exp</userinput>"

#. type: Content of: <sect1><sect2><para>
#: lfs-en/chapter08/gcc.xml
Expand Down Expand Up @@ -797,6 +792,11 @@ msgid ""
"<filename>update-threading.c</filename>, and <filename>vect-117.c</filename> "
"are known to fail."
msgstr ""
"已知名为 <filename>gen-vect-11b.c</filename>, <filename>gen-vect-11c.c</"
"filename>, <filename>gen-vect-26.c</filename>, <filename>gen-vect-28.c</"
"filename>, <filename>pr64076</filename>, <filename>pr108357.c</filename>, "
"<filename>update-threading.c</filename>, 以及 <filename>vect-117.c</"
"filename> 的测试会失败。"

#. The GCC developers
#. are usually aware of these issues, but have not resolved them yet.
Expand Down
8 changes: 8 additions & 0 deletions zh_CN/chapter08/grub.po
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,14 @@ msgid ""
"option> option and skip the command to install the <filename "
"class='directory'>/usr/lib/grub/x86_64-efi</filename> directory."
msgstr ""
"在 LoongArch 系统上,以下命令为 UEFI 构建 GRUB。但由于 LFS 不包含 FreeType 软"
"件包和 Unifont 数据文件,GRUB 不会安装用于引导器的字体,导致 GRUB 引导目录使"
"用较为粗糙的字体,或只占据整个屏幕中较小的一部分区域。如果您希望解决这一问"
"题,在 LFS 系统构建完成后,安装 <ulink url=\"&blfs-book;general/freetype."
"html\">FreeType</ulink>,然后按照 <ulink url=\"&blfs-book;postlfs/grub-efi."
"html\">BLFS 中的说明</ulink> 补充安装这里未安装的 GRUB 组件,但要移除 "
"<option>--target=x86_64</option> 选项并跳过安装 <filename class='directory'>/"
"usr/lib/grub/x86_64-efi</filename> 目录的命令。"

#. type: Content of: <sect1><sect2><note><para>
#: lfs-en/chapter08/grub.xml
Expand Down
2 changes: 2 additions & 0 deletions zh_CN/chapter08/python.po
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ msgid ""
"One test named <literal>test.test_asyncio.test_sendfile</literal> is known "
"to fail depending on the version and configuration of the host kernel."
msgstr ""
"已知名为 <literal>test.test_asyncio.test_sendfile</literal> 的测试在一些宿主"
"内核版本和配置中可能失败。"

#. type: Content of: <sect1><sect2><para>
#: lfs-en/chapter08/python.xml
Expand Down
16 changes: 3 additions & 13 deletions zh_CN/chapter08/util-linux.po
Original file line number Diff line number Diff line change
Expand Up @@ -662,15 +662,6 @@ msgstr ""

#. type: Content of: <sect1><sect2><para>
#: lfs-en/chapter08/util-linux.xml
#, fuzzy
#| msgid ""
#| "The <emphasis>hardlink</emphasis> tests will fail if the host's kernel "
#| "does not have the option <option>CONFIG_CRYPTO_USER_API_HASH</option> "
#| "enabled or does not have any options providing a SHA256 implementation "
#| "(for example, <option>CONFIG_CRYPTO_SHA256</option>, or "
#| "<option>CONFIG_CRYPTO_SHA256_SSSE3</option> if the CPU supports "
#| "Supplemental SSE3) enabled. In addition, two sub-tests from misc: "
#| "mbsencode and one sub-test from script: replay are known to fail."
msgid ""
"The <emphasis>hardlink</emphasis> tests will fail if the host's kernel does "
"not have the option <option>CONFIG_CRYPTO_USER_API_HASH</option> enabled or "
Expand All @@ -681,10 +672,9 @@ msgid ""
msgstr ""
"如果宿主系统内核没有启用配置选项 <option>CONFIG_CRYPTO_USER_API_HASH</"
"option>,或者没有启用任何提供 SHA256 实现的选项 (例如,"
"<option>CONFIG_CRYPTO_SHA256</option>,或者 "
"<option>CONFIG_CRYPTO_SHA256_SSSE3</option> —— 如果 CPU 支持扩展 SSE3),则 "
"<emphasis>hardlink</emphasis> 测试会失败。另外,已知 misc: mbsencode 测试和 "
"script: replay 测试中各有一项子测试可能失败。"
"<option>CONFIG_CRYPTO_SHA256</option>),则 <emphasis>hardlink</emphasis> 测试"
"会失败。另外,已知 lsfd: inotify 测试在内核配置选项 "
"<option>CONFIG_NETLINK_DIAG</option> 未启用时会失败。"

#. type: Content of: <sect1><sect2><title>
#: lfs-en/chapter08/util-linux.xml
Expand Down
46 changes: 9 additions & 37 deletions zh_CN/chapter10/grub.po
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@ msgstr "使用 GRUB 设定引导过程"

#. type: Content of: <sect1><note><para>
#: lfs-en/chapter10/grub.xml
#, fuzzy
#| msgid ""
#| "If your system does not support UEFI or you don't want to use it, you'll "
#| "need to figure out how to configure the booting process of the system on "
#| "your own."
msgid ""
"This section assume your system has UEFI support and you wish to boot LFS "
"with UEFI. If your system does not support UEFI or you don't want to use "
"it, you'll need to figure out how to configure the booting process of the "
"system on your own."
msgstr ""
"如果您的系统不支持 UEFI,或者您不想使用它,您需要自行寻找配置引导过程的方法。"
"本节假设您的系统支持 UEFI 且您希望使用它引导 LFS 系统。如果您的系统不支持 "
"UEFI,或者您不想使用它,您需要自行寻找配置引导过程的方法。"

#. type: Content of: <sect1><sect2><warning><para>
#: lfs-en/chapter10/grub.xml
Expand Down Expand Up @@ -318,16 +314,6 @@ msgstr ""

#. type: Content of: <sect1><sect2><note><para>
#: lfs-en/chapter10/grub.xml
#, fuzzy
#| msgid ""
#| "Some UEFI implementation may completely skip the hardcoded path if there "
#| "are other boot loaders in the same hard drive with paths recorded in an "
#| "EFI variable. Then you need to create an EFI variable for the newly "
#| "installed boot loader. Install <ulink url=\"&blfs-book;postlfs/"
#| "efibootmgr.html\">efibootmgr</ulink>, then run the following commands: "
#| "<placeholder type=\"screen\" id=\"0\"/> Replace <filename>/dev/sda</"
#| "filename> with the device node of the hard drive where you are installing "
#| "GRUB into."
msgid ""
"Some UEFI implementation may completely skip the hardcoded path if there are "
"other boot loaders in the same hard drive with paths recorded in an EFI "
Expand All @@ -339,9 +325,10 @@ msgid ""
msgstr ""
"某些 UEFI 实现在同一硬盘中存在记录于 EFI 变量的引导加载器时,会完全忽略硬编码"
"的路径。此时您需要为新安装的引导加载器创建一个 EFI 变量。安装 <ulink "
"url=\"&blfs-book;postlfs/efibootmgr.html\">efibootmgr</ulink>,运行下列命令:"
"<placeholder type=\"screen\" id=\"0\"/> 将 <filename>/dev/sda</filename> 替换"
"为安装 GRUB 的硬盘对应的设备节点路径。"
"url=\"&blfs-book;postlfs/efibootmgr.html\">efibootmgr</ulink>,并按照 <ulink "
"url=\"&blfs-book;postlfs/grub-setup.html\">BLFS 中的说明</ulink>在不用 "
"<parameter>--removable</parameter> 选项的情况下执行 <command>grub-install</"
"command> 命令。"

#. type: Content of: <sect1><sect2><title>
#: lfs-en/chapter10/grub.xml
Expand All @@ -355,23 +342,7 @@ msgstr "生成 <filename>/boot/grub/grub.cfg</filename>:"

#. type: Content of: <sect1><sect2><screen>
#: lfs-en/chapter10/grub.xml
#, fuzzy, no-wrap
#| msgid ""
#| "<userinput>cat &gt; /boot/grub/grub.cfg &lt;&lt; \"EOF\"\n"
#| "<literal># Begin /boot/grub/grub.cfg\n"
#| "set default=0\n"
#| "set timeout=5\n"
#| "\n"
#| "insmod part_gpt\n"
#| "insmod ext2\n"
#| "set root=(hd0,2)\n"
#| "\n"
#| "insmod all_video\n"
#| "\n"
#| "menuentry \"GNU/Linux, Linux &linux-version;-lfs-&version;\" {\n"
#| " linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro\n"
#| "}</literal>\n"
#| "EOF</userinput>"
#, no-wrap
msgid ""
"<userinput>cat &gt; /boot/grub/grub.cfg &lt;&lt; \"EOF\"\n"
"<literal># Begin /boot/grub/grub.cfg\n"
Expand Down Expand Up @@ -399,7 +370,8 @@ msgstr ""
"insmod ext2\n"
"set root=(hd0,2)\n"
"\n"
"insmod all_video\n"
"insmod efi_gop\n"
"insmod efi_uga\n"
"\n"
"menuentry \"GNU/Linux, Linux &linux-version;-lfs-&version;\" {\n"
" linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro\n"
Expand Down

0 comments on commit 7017a14

Please sign in to comment.