From 720ae250fb9ac227ec3849f6fa0e6a9d8edaa1cc Mon Sep 17 00:00:00 2001 From: Leyu Hu Date: Tue, 16 Jul 2024 19:21:58 +0800 Subject: [PATCH] modify some translation by zh_CN to avoid misunderstanding Signed-off-by: Leyu Hu correction1 for last commit --- libpwquality.spec | 9 +++- modify-zh_CN-translation.patch | 98 ++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 modify-zh_CN-translation.patch diff --git a/libpwquality.spec b/libpwquality.spec index bec044e..754f8d4 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -3,7 +3,7 @@ Name: libpwquality Version: 1.4.4 -Release: 5 +Release: 6 Summary: Library for password quality checking and generating random passwords. License: BSD or GPLv2+ URL: https://github.com/libpwquality/libpwquality/ @@ -13,6 +13,7 @@ Patch0: modify-pwquality_conf.patch Patch1: fix-password-similarity.patch Patch2: fix-doc-about-difok.patch Patch3: backport-Make-maxclassrepeat-1-behavior-consistent-with-docs.patch +Patch4: modify-zh_CN-translation.patch BuildRequires: gcc cracklib-devel gettext pam-devel BuildRequires: python3-devel @@ -95,6 +96,12 @@ mkdir %{buildroot}%{_secconfdir}/pwquality.conf.d %{_mandir}/man8/* %changelog +* Tue Jul 16 2024 huleyu - 1.4.4-6 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:modify some zh_CN translation to avoid misunderstanding + * Tue Jul 2 2024 yixiangzhike - 1.4.4-5 - Type:bugfix - ID:NA diff --git a/modify-zh_CN-translation.patch b/modify-zh_CN-translation.patch new file mode 100644 index 0000000..c64d788 --- /dev/null +++ b/modify-zh_CN-translation.patch @@ -0,0 +1,98 @@ +From bb3376f12c5757409b0b0eeac7f6665a6c533a76 Mon Sep 17 00:00:00 2001 +From: Leyu Hu +Date: Tue, 16 Jul 2024 19:18:51 +0800 +Subject: [PATCH] modify some translation by zh_CN to avoid misunderstanding + +Signed-off-by: Leyu Hu +--- + po/zh_CN.po | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/po/zh_CN.po b/po/zh_CN.po +index 8229066..72295f5 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -98,7 +98,7 @@ msgstr "密码与原来的太相似" + + #: src/error.c:45 + msgid "The password contains the user name in some form" +-msgstr "密码包含用户名在某些地方" ++msgstr "密码的某些地方包含用户名" + + #: src/error.c:47 + msgid "The password contains words from the real name of the user in some form" +@@ -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 "" +@@ -222,7 +222,7 @@ msgstr "错误的整数设置值" + + #: src/error.c:131 + msgid "Bad integer value" +-msgstr "坏的整数值" ++msgstr "错误的整数值" + + #: src/error.c:134 + #, c-format +-- +2.33.0 + -- Gitee