From a12e79d3f9596e8e03daf83a33dd679c95a099db Mon Sep 17 00:00:00 2001 From: yaoguangzhong Date: Tue, 13 Dec 2022 17:24:26 +0800 Subject: [PATCH] [PATCH]anaconda: translate the tips about expected capacity into Chinese category: bugfix bugzilla: https://gitee.com/src-openeuler/anaconda/issues/I660YD?from=project-issue Signed-off-by: Guangzhong Yao --- anaconda.spec | 9 ++- ...ps-about-expected-capacity-into-Chin.patch | 55 +++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 bugfix-translate-the-tips-about-expected-capacity-into-Chin.patch diff --git a/anaconda.spec b/anaconda.spec index dc1c8c2..7c2449a 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -4,7 +4,7 @@ %endif Name: anaconda Version: 33.19 -Release: 37 +Release: 38 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -131,6 +131,7 @@ Patch6079: backport-dracut-handle-compressed-kernel-modules.patch Patch6080: backport-network-use-separate-main-conext-for-NM-client-in-threads.patch Patch9028: bugfix-translate-the-prompt-information-of-hostname-.patch +Patch9029: bugfix-translate-the-tips-about-expected-capacity-into-Chin.patch %define dbusver 1.2.3 %define dnfver 3.6.0 @@ -344,6 +345,12 @@ update-desktop-database &> /dev/null || : %{_datadir}/gtk-doc %changelog +* Wed Dec 14 2022 yaoguangzhong - 33.19-38 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:translate the tips about expected capacity into Chinese + * Tue Dec 13 2022 yaoguangzhong - 33.19-37 - Type:bugfix - ID:NA diff --git a/bugfix-translate-the-tips-about-expected-capacity-into-Chin.patch b/bugfix-translate-the-tips-about-expected-capacity-into-Chin.patch new file mode 100644 index 0000000..a4f8ead --- /dev/null +++ b/bugfix-translate-the-tips-about-expected-capacity-into-Chin.patch @@ -0,0 +1,55 @@ +From a51887f5a1d5473784ad5494e39ddc6f55324a2e Mon Sep 17 00:00:00 2001 +From: yaoguangzhong +Date: Tue, 13 Dec 2022 17:10:53 +0800 +Subject: [PATCH] translate the tips about expected capacity into Chinese + +--- + po/zh_CN.po | 25 +++++++++++++++++++++++++ + 1 file changed, 25 insertions(+) + +diff --git a/po/zh_CN.po b/po/zh_CN.po +index 92b9084..a208c70 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -268,6 +268,25 @@ msgid "" + "disk below." + msgstr "请为 %(container_type)s 起个名字然后从下方至少选择一个磁盘。" + ++#: pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py:53 ++msgid "" ++"Specify the Desired Capacity in whole or decimal numbers, with an appropriate unit.\n\n" ++"Spaces separating digit groups are not allowed. Units consist of a decimal or binary " ++"prefix, and optionally the letter B. Letter case does not matter for units. The default " ++"unit used when units are left out is MiB.\n\n" ++"Examples of valid input:\n" ++"'100 GiB' = 100 gibibytes\n" ++"'512m' = 512 megabytes\n" ++"'123456789' = 123 terabytes and a bit less than a half\n" ++msgstr "" ++"以整数或十进制数字指定所需容量,并使用适当的单位。\n\n" ++"不允许使用空格分隔数字组。 单位由十进制或二进制前缀和可选的字母 B 组成。" ++"字母大小写与单位无关。默认省略单位时使用的单位是 MiB。\n\n" ++"有效输入示例:\n" ++"'100 GiB'=100 GB\n" ++"'512 MiB'=512 MB\n" ++"'123456789 MiB' = 123 TB 不到一半\n" ++ + #: pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py:57 + #: pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py:60 + msgid "Volume Group" +@@ -978,6 +997,12 @@ msgid "" + msgstr "" + "检查存储配置时出现警告。点击查看详情或再次按完成按钮继续。" + ++#: pyanaconda/ui/gui/spokes/custom_storage.py:1574 ++msgid "" ++"Invalid input. Specify the Desired Capacity in whole or decimal numbers, " ++"with an appropriate unit." ++msgstr "输入无效。以整数或小数形式指定所需容量,并使用适当的单位。" ++ + #: pyanaconda/ui/gui/spokes/blivet_gui.py:318 + #: pyanaconda/ui/gui/spokes/custom_storage.py:1770 + msgid "" +-- +2.27.0 +