From 2c5b9f0c8b864aeec87c33422beeb52e31e33fd8 Mon Sep 17 00:00:00 2001 From: ouyanglearnning Date: Thu, 19 May 2022 09:53:40 +0800 Subject: [PATCH] Translation of Chinese where there is a difference in understanding of the revised part --- 0001-modify-Chinese-translation.patch | 78 +++++++++++++++++++++++++++ libpwquality.spec | 9 +++- 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 0001-modify-Chinese-translation.patch diff --git a/0001-modify-Chinese-translation.patch b/0001-modify-Chinese-translation.patch new file mode 100644 index 0000000..1ef3210 --- /dev/null +++ b/0001-modify-Chinese-translation.patch @@ -0,0 +1,78 @@ +From a0e52a42c285f74dee1498dc9df6e189a91d6473 Mon Sep 17 00:00:00 2001 +From: ouyangminxiang +Date: Wed, 30 Mar 2022 14:28:54 +0800 +Subject: [PATCH] modify Chinese translation + +--- + po/zh_CN.po | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/po/zh_CN.po b/po/zh_CN.po +index 8229066..455cbf1 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -111,7 +111,7 @@ msgstr "密码包含了某种形式的禁用单词" + #: src/error.c:52 + #, c-format + msgid "The password contains less than %ld digits" +-msgstr "密码少于 %ld 的位数" ++msgstr "密码包含少于 %ld 位的数字字符" + + #: src/error.c:55 + msgid "The password contains too few digits" +@@ -120,7 +120,7 @@ msgstr "密码包含的位数太短" + #: src/error.c:58 + #, c-format + msgid "The password contains less than %ld uppercase letters" +-msgstr "密码包含少于 %ld 的大写字母" ++msgstr "密码包含少于 %ld 位的大写字母" + + #: src/error.c:61 + msgid "The password contains too few uppercase letters" +@@ -129,7 +129,7 @@ msgstr "密码包含的大写字母太少" + #: src/error.c:64 + #, c-format + msgid "The password contains less than %ld lowercase letters" +-msgstr "密码包含少于 %ld 的小写字母" ++msgstr "密码包含少于 %ld 位的小写字母" + + #: src/error.c:67 + msgid "The password contains too few lowercase letters" +@@ -138,7 +138,7 @@ msgstr "密码包含的小写字母太少" + #: src/error.c:70 + #, c-format + msgid "The password contains less than %ld non-alphanumeric characters" +-msgstr "密码包含少于 %ld 的非字母或数字字符" ++msgstr "密码包含少于 %ld 位的非字母或数字字符" + + #: src/error.c:73 + msgid "The password contains too few non-alphanumeric characters" +@@ -160,7 +160,7 @@ msgstr "密码仅是旧密码的反转" + #: src/error.c:84 + #, c-format + msgid "The password contains less than %ld character classes" +-msgstr "密码包含少于 %ld 的字符类型" ++msgstr "密码包含少于 %ld 位的字符类型" + + #: src/error.c:87 + msgid "The password does not contain enough character classes" +@@ -169,7 +169,7 @@ msgstr "密码未包含足够的字符类型" + #: src/error.c:90 + #, c-format + msgid "The password contains more than %ld same characters consecutively" +-msgstr "密码包含了超过 %ld 的相同连续字符" ++msgstr "密码包含了超过 %ld 位的相同连续字符" + + #: src/error.c:93 + msgid "The password contains too many same characters consecutively" +@@ -180,7 +180,7 @@ msgstr "密码包含了太多相同连续字符" + msgid "" + "The password contains more than %ld characters of the same class " + "consecutively" +-msgstr "密码包含了超过 %ld 的同类型连续字符" ++msgstr "密码包含了超过 %ld 位的同类型连续字符" + + #: src/error.c:99 + msgid "" +-- +2.33.0 diff --git a/libpwquality.spec b/libpwquality.spec index e274ace..c7d0ca7 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -3,7 +3,7 @@ Name: libpwquality Version: 1.4.4 -Release: 2 +Release: 3 Summary: Library for password quality checking and generating random passwords. License: BSD or GPLv2+ URL: https://github.com/libpwquality/libpwquality/ @@ -11,6 +11,7 @@ Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwqua Patch0: modify-pwquality_conf.patch Patch1: fix-password-similarity.patch +Patch2: 0001-modify-Chinese-translation.patch BuildRequires: gcc cracklib-devel gettext pam-devel BuildRequires: python3-devel @@ -93,6 +94,12 @@ mkdir %{buildroot}%{_secconfdir}/pwquality.conf.d %{_mandir}/man8/* %changelog +* Thu May 19 2022 ouyangminxiang - 1.4.4-3 +- Type:translation +- ID:NA +- SUG:NA +- DESC:modify Chinese Translation + * Tue Apr 26 2022 zhangruifang2020 - 1.4.4-2 - Type:bugfix - ID:NA -- Gitee