fix custom storage chinese tip
This commit is contained in:
parent
7c88cd8bef
commit
d09a4529c5
@ -1,7 +1,7 @@
|
|||||||
%define _empty_manifest_terminate_build 0
|
%define _empty_manifest_terminate_build 0
|
||||||
Name: anaconda
|
Name: anaconda
|
||||||
Version: 36.16.5
|
Version: 36.16.5
|
||||||
Release: 29
|
Release: 30
|
||||||
Summary: Graphical system installer
|
Summary: Graphical system installer
|
||||||
License: GPLv2+ and MIT
|
License: GPLv2+ and MIT
|
||||||
URL: http://fedoraproject.org/wiki/Anaconda
|
URL: http://fedoraproject.org/wiki/Anaconda
|
||||||
@ -57,6 +57,7 @@ Patch6009: backport-Fix-the-systemd-generator-for-systemd-253-2165433.patch
|
|||||||
Patch9023: bugfix-change-root-and-storage-interface-shows.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
|
Patch9024: bugfix-revert-Set-default-entry-to-the-BLS-id-instead-of-the-entry-index.patch
|
||||||
Patch9025: bugfix-import-new-BlockDev.patch
|
Patch9025: bugfix-import-new-BlockDev.patch
|
||||||
|
Patch9026: bugfix-fix-custom-storage-chinese-tip.patch
|
||||||
|
|
||||||
%define dasbusver 1.3
|
%define dasbusver 1.3
|
||||||
%define dbusver 1.2.3
|
%define dbusver 1.2.3
|
||||||
@ -312,6 +313,12 @@ update-desktop-database &> /dev/null || :
|
|||||||
%{_prefix}/libexec/anaconda/dd_*
|
%{_prefix}/libexec/anaconda/dd_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 09 2024 sunhai <sunhai10@huawei.com> - 36.16.5-30
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: fix custom storage chinese tip
|
||||||
|
|
||||||
* Tue Apr 09 2024 sunhai <sunhai10@huawei.com> - 36.16.5-29
|
* Tue Apr 09 2024 sunhai <sunhai10@huawei.com> - 36.16.5-29
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
44
bugfix-fix-custom-storage-chinese-tip.patch
Normal file
44
bugfix-fix-custom-storage-chinese-tip.patch
Normal 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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user