From bec3db18aee3d0c77fda763de8a0722ca4b85f50 Mon Sep 17 00:00:00 2001 From: yaoguangzhong Date: Fri, 23 Dec 2022 23:08:48 +0800 Subject: [PATCH] [PATCH]pam: translate unlock information to chinese category: bugfix bugzilla: https://gitee.com/src-openeuler/pam/issues/I65NE3#note_15074859 Signed-off-by: Guangzhong Yao --- ...nslate-unlock-information-to-chinese.patch | 33 +++++++++++++++++++ pam.spec | 6 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pam-translate-unlock-information-to-chinese.patch diff --git a/pam-translate-unlock-information-to-chinese.patch b/pam-translate-unlock-information-to-chinese.patch new file mode 100644 index 0000000..c2a5a92 --- /dev/null +++ b/pam-translate-unlock-information-to-chinese.patch @@ -0,0 +1,33 @@ +From b2968920376d891b518b2e55f894fb1315966f93 Mon Sep 17 00:00:00 2001 +From: yaoguangzhong +Date: Sun, 11 Dec 2022 18:28:32 +0800 +Subject: [PATCH] translate unlock information to chinese + +--- + po/zh_CN.po | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/po/zh_CN.po b/po/zh_CN.po +index b7d2c83..c100213 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -308,14 +308,13 @@ msgstr "%s: [--文件 根文件名] [--用户 用户名] [--重设置[=n]] [-- + + #: modules/pam_faillock/pam_faillock.c:645 modules/pam_tally/pam_tally.c:553 + #: modules/pam_tally2/pam_tally2.c:562 +-#, fuzzy, c-format + msgid "The account is locked due to %u failed logins." + msgstr "因为 %u 失败登录而锁定帐户" + + #: modules/pam_faillock/pam_faillock.c:650 + #, c-format +-msgid "(%d minutes left to unlock)" +-msgstr "" ++msgid "(%d seconds left to unlock)" ++msgstr "还剩 %d 秒解锁" + + #. TRANSLATORS: "strftime options for date of last login" + #: modules/pam_lastlog/pam_lastlog.c:318 modules/pam_lastlog/pam_lastlog.c:579 +-- +2.27.0 + diff --git a/pam.spec b/pam.spec index ab987a2..110386a 100644 --- a/pam.spec +++ b/pam.spec @@ -4,7 +4,7 @@ %define _pamconfdir %{_sysconfdir}/pam.d Name: pam Version: 1.4.0 -Release: 9 +Release: 10 Summary: Pluggable Authentication Modules for Linux License: BSD and GPLv2+ URL: http://www.linux-pam.org/ @@ -32,6 +32,7 @@ Patch6000: backport-Move-read_passwords-function-from-pam_unix-to-pam_inline.h.p Patch6001: backport-add-helper-to-handle-SELinux.patch Patch6002: zh_CN_po_fix_str_meaning_error.patch Patch6003: backport-po-update-translations-using-Weblate-Chinese-Simplif.patch +Patch6004: pam-translate-unlock-information-to-chinese.patch Patch9000: 0001-bugfix-cannot-open-database-file.patch Patch9001: add-sm3-crypt-support.patch @@ -187,6 +188,9 @@ fi %changelog +* Fri Dec 23 2022 yaoguangzhong - 1.4.0-10 +- translate unlock information to chinese + * Sat Dec 10 2022 wanglimin - 1.4.0-9 - update translations for Weblate-Chinese-Simplif -- Gitee