sync from 24.03

This commit is contained in:
sun_hai_10 2024-05-25 11:08:27 +08:00
parent 3ab2fe6ad0
commit 131782123d
3 changed files with 55 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%define _empty_manifest_terminate_build 0
Name: anaconda
Version: 36.16.5
Release: 23
Release: 24
Summary: Graphical system installer
License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda
@ -53,6 +53,7 @@ Patch9022: bugfix-change-the-startup-mode-of-do_transaction-sub-proces.patch
Patch9023: bugfix-change-root-and-storage-interface-shows.patch
Patch9024: bugfix-revert-Set-default-entry-to-the-BLS-id-instead-of-the-entry-index.patch
Patch9025: bugfix-fix-custom-storage-chinese-tip.patch
%define dasbusver 1.3
%define dbusver 1.2.3
@ -307,6 +308,14 @@ update-desktop-database &> /dev/null || :
%{_prefix}/libexec/anaconda/dd_*
%changelog
* Sat May 25 2024 sunhai <sunhai10@huawei.com> - 36.16.5-24
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: config adjust
revise hostname chinese tip
fix custom storage chinese tip
* Sat Dec 23 2023 sunhai <sunhai10@huawei.com> - 36.16.5-23
- Type:bugfix
- ID:NA

View File

@ -0,0 +1,44 @@
From 043c6ba5f0e9d97fed947246dfd65f5cfd5d251e Mon Sep 17 00:00:00 2001
From: s30028044 <sunhai10@huawei.com>
Date: Sat, 13 Apr 2024 17:00:13 +0800
Subject: [PATCH] fix custom storage chinese tip
---
po/zh_CN.po | 6 +++---
pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/po/zh_CN.po b/po/zh_CN.po
index ce63959..6a854c7 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -1627,10 +1627,10 @@ msgid ""
"'512m' = 512 megabytes\n"
"'123456789' = 123 terabytes and a bit less than a half\n"
msgstr ""
-"请以整数或十进制小数指定期望容量,并带上合适的单位。\n"
+"请使用整数或小数指定所需容量以及可以带上合适的单位。\n"
"\n"
-"不允许以空格分隔的数字组。单位包括十进制前缀或二进制前缀,以及可选的字母 B。"
-"单位对字母的大小写不敏感。如果省略单位,则默认的单位是 MiB。\n"
+"但不允许使用空格将数字分隔成数组。单位由十进制或二进制的计数单位以及可选字母B组成。"
+"单位会忽略字母大小写,并且缺省单位是 MiB。\n"
"\n"
"有效输入的例子:\n"
"“100GiB” = 100 Gibibytes\n"
diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index 81bb793..d374fcf 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -255,7 +255,7 @@ class AddDialog(GUIObject):
self._warning_label = self.builder.get_object("mountPointWarningLabel")
self._size_entry = self.builder.get_object("addSizeEntry")
- self._size_entry.set_tooltip_text(DESIRED_CAPACITY_HINT)
+ self._size_entry.set_tooltip_text(_(DESIRED_CAPACITY_HINT))
self._populate_mount_points()
--
2.27.0

View File

@ -24,7 +24,7 @@ index 18b0925..c2216e6 100644
msgstr ""
"主机名只能包含 'a-z'、'A-Z'、 '0-9'、 '-'(英文减号),或者 '.'(英文点号),"
-"其中两个点号中不能为空且不能以 '-' 开头或结尾。"
+"其中两个点号中不能为空,必须少于64个字符且不能以'.'和'-'开头或结尾。"
+"其中符号不能连接在一起,需用数字或字母隔开,整体长度必须少于64个字符且不能以'.'和'-'开头或结尾。"
#: pyanaconda/network.py:457
msgid "Status not available"