diff --git a/libpwquality.spec b/libpwquality.spec index 44cf85b60e8e9959bfeec9a523012266537a751d..a532d788796dc41aadd187497b77e292d43ebbb1 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -3,7 +3,7 @@ Name: libpwquality Version: 1.4.5 -Release: 1 +Release: 2 Summary: Library for password quality checking and generating random passwords. License: BSD or GPLv2+ URL: https://github.com/libpwquality/libpwquality/ @@ -12,6 +12,7 @@ Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwqua Patch0: modify-pwquality_conf.patch Patch1: fix-password-similarity.patch Patch2: fix-doc-about-difok.patch +Patch3: modify-zh-translate.patch BuildRequires: gcc cracklib-devel gettext pam-devel BuildRequires: python3-devel diff --git a/modify-zh-translate.patch b/modify-zh-translate.patch new file mode 100644 index 0000000000000000000000000000000000000000..f3a6ef98a58e9c428e402b52be6d3caf85c507cb --- /dev/null +++ b/modify-zh-translate.patch @@ -0,0 +1,85 @@ +diff -upNr --binary libpwquality-1.4.4/po/zh_CN.po libpwquality-1.4.4-new/po/zh_CN.po +--- libpwquality-1.4.4/po/zh_CN.po 2020-10-13 14:32:16.000000000 +0800 ++++ libpwquality-1.4.4-new/po/zh_CN.po 2023-06-19 14:35:59.428000000 +0800 +@@ -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 +