anaconda/bugfix-fix-custom-storage-chinese-tip.patch
2024-06-13 23:21:18 +08:00

45 lines
1.9 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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