From 4fa9293561e95a79c2a14fd918e3f130c5fc6b0e Mon Sep 17 00:00:00 2001 From: renmingshuai Date: Thu, 14 Oct 2021 16:29:45 +0800 Subject: [PATCH] Fix zh_CN msgster meaning error --- pam.spec | 7 ++++++- zh_CN_po_fix_str_meaning_error.patch | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 zh_CN_po_fix_str_meaning_error.patch diff --git a/pam.spec b/pam.spec index 7d3cbba..0d76775 100644 --- a/pam.spec +++ b/pam.spec @@ -4,7 +4,7 @@ %define _pamconfdir %{_sysconfdir}/pam.d Name: pam Version: 1.4.0 -Release: 6 +Release: 7 Summary: Pluggable Authentication Modules for Linux License: BSD and GPLv2+ URL: http://www.linux-pam.org/ @@ -28,6 +28,8 @@ Patch6: Prevent-SEGFAULT-for-unknown-UID.patch Patch7: change-ndbm-to-gdbm.patch Patch6000: backport-Move-read_passwords-function-from-pam_unix-to-pam_inline.h.patch Patch6001: backport-add-helper-to-handle-SELinux.patch +Patch6002: zh_CN_po_fix_str_meaning_error.patch + Patch9000: 0001-bugfix-cannot-open-database-file.patch BuildRequires: autoconf automake libtool bison flex sed cracklib-devel gdbm-devel @@ -181,6 +183,9 @@ fi %changelog +* Thu Oct 14 2021 yuanxin - 1.4.0-7 +- Fix zh_CN msgster meaning error + * Thu Sep 16 2021 renhongxun - 1.4.0-6 - bugfix on cannot open database file diff --git a/zh_CN_po_fix_str_meaning_error.patch b/zh_CN_po_fix_str_meaning_error.patch new file mode 100644 index 0000000..f95e1d0 --- /dev/null +++ b/zh_CN_po_fix_str_meaning_error.patch @@ -0,0 +1,22 @@ +diff --git a/po/zh_CN.po b/po/zh_CN.po +index 4227e4f..8836488 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -44,14 +44,13 @@ msgid "Password: " + msgstr "密码:" + + #: libpam/pam_get_authtok.c:41 +-#, fuzzy, c-format ++#, c-format + msgid "Current %s password: " +-msgstr "新的 %s 密码:" ++msgstr "当前的 %s 密码:" + + #: libpam/pam_get_authtok.c:42 +-#, fuzzy + msgid "Current password: " +-msgstr "新的 密码:" ++msgstr "当前的密码:" + + #: libpam/pam_get_authtok.c:44 + #, c-format -- Gitee