From 12a7790f0f6c97319b362226e0cf7dec835bb439 Mon Sep 17 00:00:00 2001 From: sun_hai_10 Date: Thu, 31 Aug 2023 20:51:56 +0800 Subject: [PATCH] bugfix change root and storage interface shows (cherry picked from commit 1cba4971cb0d98ae6aaf6d5c568c55cdffebdaec) --- anaconda.spec | 10 +- ...nge-root-and-storage-interface-shows.patch | 126 ++++++++++++++++++ 2 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 bugfix-change-root-and-storage-interface-shows.patch diff --git a/anaconda.spec b/anaconda.spec index ba29bce..0803502 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,7 +1,7 @@ %define _empty_manifest_terminate_build 0 Name: anaconda Version: 36.16.5 -Release: 22 +Release: 23 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -53,6 +53,8 @@ Patch6007: backport-Don-t-attempt-to-add-frozen-python-modules-to-initramfs.p Patch6008: backport-module-setup.sh-Don-t-ignore-errors-unbound-variable-and-pipe-fails.patch Patch6009: backport-Fix-the-systemd-generator-for-systemd-253-2165433.patch +Patch9023: bugfix-change-root-and-storage-interface-shows.patch + %define dasbusver 1.3 %define dbusver 1.2.3 %define dnfver 3.6.0 @@ -301,6 +303,12 @@ update-desktop-database &> /dev/null || : %{_prefix}/libexec/anaconda/dd_* %changelog +* Thu Aug 31 2023 sunhai - 36.16.5-23 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: bugfix change root and storage interface shows + * Wed Aug 30 2023 sunhai - 36.16.5-22 - Type:bugfix - ID:NA diff --git a/bugfix-change-root-and-storage-interface-shows.patch b/bugfix-change-root-and-storage-interface-shows.patch new file mode 100644 index 0000000..09eba94 --- /dev/null +++ b/bugfix-change-root-and-storage-interface-shows.patch @@ -0,0 +1,126 @@ +From c8d6fa0fa3ba5820f6f2239064d33fabc17cb671 Mon Sep 17 00:00:00 2001 +From: s30028044 +Date: Thu, 31 Aug 2023 20:32:50 +0800 +Subject: [PATCH] change root and custom storage interface shows + +--- + po/zh_CN.po | 22 +++++++++++++------ + pyanaconda/modules/storage/bootloader/base.py | 2 +- + pyanaconda/ui/gui/spokes/lib/accordion.py | 2 +- + 3 files changed, 17 insertions(+), 9 deletions(-) + +diff --git a/po/zh_CN.po b/po/zh_CN.po +index 3b6fc12..4b2d109 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -866,6 +866,10 @@ msgstr "引导加载程序阶段1设备不能在一个没有在 iBFT 中配置 + msgid "%s cannot be on an encrypted block device." + msgstr "%s 不能位于加密的块设备上。" + ++#: pyanaconda/modules/storage/bootloader/base.py:612 ++msgid "Failed to find a suitable stage1 device" ++msgstr "未能找到合适的stage1设备" ++ + #: pyanaconda/modules/storage/bootloader/base.py:644 + #, python-format + msgid "" +@@ -1745,6 +1749,10 @@ msgctxt "GUI|Custom Partitioning|Autopart Page" + msgid "_Encrypt automatically created mount points by default:" + msgstr "自动地加密默认创建的挂载点(_E):" + ++#: pyanaconda/ui/gui/spokes/lib/accordion.py:547 ++msgid "Encrypt my data." ++msgstr "加密我的数据(_E)。" ++ + #: pyanaconda/ui/gui/spokes/lib/resize.py:54 + msgid "Preserve" + msgstr "保留" +@@ -1990,7 +1998,7 @@ msgstr "未注册。" + + #: pyanaconda/ui/gui/spokes/subscription.py:1024 + msgid "Registered with account {}" +-msgstr "已使用账户 {} 注册" ++msgstr "已使用帐户 {} 注册" + + #: pyanaconda/ui/gui/spokes/subscription.py:1028 + msgid "Registered with organization {}" +@@ -2821,7 +2829,7 @@ msgstr "正在检查存储配置..." + + #: pyanaconda/ui/lib/users.py:35 + msgid "Root account is disabled" +-msgstr "Root 账户已禁用" ++msgstr "Root 帐户已禁用" + + #: pyanaconda/ui/lib/users.py:37 + msgid "Root password is set" +@@ -5417,7 +5425,7 @@ msgstr "连接到红帽" + #: pyanaconda/ui/gui/spokes/subscription.glade:100 + msgctxt "GUI|Subscription|Authentication|Account" + msgid "_Account" +-msgstr "账户(_A)" ++msgstr "帐户(_A)" + + #: pyanaconda/ui/gui/spokes/subscription.glade:117 + msgctxt "GUI|Subscription|Authetication|Activation Key" +@@ -5646,7 +5654,7 @@ msgid "" + "Note: The settings you make on this screen will not be applied until you " + "click on the main menu's 'Begin Installation' button." + msgstr "" +-"注意:在您点击主菜单上的“开始安装“按钮之前”,您在本屏幕内所做的设置更改不会被" ++"注意:在您点击主菜单上的“开始安装”按钮之前,您在本屏幕内所做的设置更改不会被" + "应用。" + + #: pyanaconda/ui/gui/spokes/custom_storage.glade:1129 +@@ -6454,12 +6462,12 @@ msgstr "" + #: pyanaconda/ui/gui/spokes/root_password.glade:97 + msgctxt "GUI|Password" + msgid "_Disable root account" +-msgstr "禁用 root 账户(_D)" ++msgstr "禁用 root 帐户(_D)" + + #: pyanaconda/ui/gui/spokes/root_password.glade:125 + msgctxt "GUI|Password" + msgid "_Enable root account" +-msgstr "启用 root 账户(_E)" ++msgstr "启用 root 帐户(_E)" + + #: pyanaconda/ui/gui/spokes/root_password.glade:146 + msgid "" +@@ -7043,7 +7051,7 @@ msgstr "需要密码才能使用该帐户(_R)" + msgctxt "GUI|User" + msgid "" + "Add ad_ministrative privileges to this user account (wheel group membership)" +-msgstr "为此用户账户 (wheel 组成员) 添加管理权限(_M)" ++msgstr "为此用户帐户 (wheel 组成员) 添加管理权限(_M)" + + #: pyanaconda/ui/gui/spokes/user.glade:269 + msgctxt "GUI|User" +diff --git a/pyanaconda/modules/storage/bootloader/base.py b/pyanaconda/modules/storage/bootloader/base.py +index 533d528..d40086d 100644 +--- a/pyanaconda/modules/storage/bootloader/base.py ++++ b/pyanaconda/modules/storage/bootloader/base.py +@@ -609,7 +609,7 @@ class BootLoader(object): + + if not self.stage1_device: + self.reset() +- msg = "Failed to find a suitable stage1 device" ++ msg = _("Failed to find a suitable stage1 device") + if errors: + msg = msg + ": " + "; ".join(errors) + raise BootLoaderError(msg) +diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py +index 3a75565..b9344da 100644 +--- a/pyanaconda/ui/gui/spokes/lib/accordion.py ++++ b/pyanaconda/ui/gui/spokes/lib/accordion.py +@@ -544,7 +544,7 @@ class CreateNewPage(BasePage): + ) + self._createBox.attach(label, 0, 6, 2, 1) + +- checkbox = Gtk.CheckButton(label="Encrypt my data.") ++ checkbox = Gtk.CheckButton(label=_("Encrypt my data.")) + checkbox.connect("toggled", encrypted_changed_cb) + checkbox.set_active(default_encryption) + checkbox.set_margin_start(18) +-- +2.27.0 +