gnome-control-center/bugfix-fix_used_passwd_error_capture.patch
2023-01-31 18:22:08 +08:00

39 lines
2.8 KiB
Diff

diff -up gnome-control-center-43.2/panels/user-accounts/run-passwd.c.BAK gnome-control-center-43.2/panels/user-accounts/run-passwd.c
--- gnome-control-center-43.2/panels/user-accounts/run-passwd.c.BAK 2023-01-10 16:43:06.694171795 +0800
+++ gnome-control-center-43.2/panels/user-accounts/run-passwd.c 2023-01-10 16:45:52.034162096 +0800
@@ -446,7 +446,7 @@ io_watch_stdout (GIOChannel *source, GIO
"different",
"wrapped",
"recovered",
- "recent",
+ "already used",
"unchanged",
"match",
"1 numeric or special",
@@ -490,9 +490,9 @@ io_watch_stdout (GIOChannel *source, GIO
strstr (str->str, "wrapped") != NULL) {
error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_REJECTED,
_("The old and new passwords are too similar"));
- } else if (strstr (str->str, "recent") != NULL) {
+ } else if (strstr (str->str, "already used") != NULL) {
error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_REJECTED,
- _("The new password has already been used recently."));
+ _("Password has been already used. Choose another."));
} else if (strstr (str->str, "1 numeric or special") != NULL) {
error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_REJECTED,
_("The new password must contain numeric or special characters"));
diff -up gnome-control-center-43.2/po/zh_CN.po.BAK gnome-control-center-43.2/po/zh_CN.po
--- gnome-control-center-43.2/po/zh_CN.po.BAK 2023-01-10 16:46:29.198159916 +0800
+++ gnome-control-center-43.2/po/zh_CN.po 2023-01-10 16:47:38.446155853 +0800
@@ -8505,8 +8505,8 @@ msgstr "新密码和旧密码太相似"
#: panels/user-accounts/run-passwd.c:495
#, c-format
-msgid "The new password has already been used recently."
-msgstr "新的密码最近已使用过。"
+msgid "Password has been already used. Choose another."
+msgstr "新密码在最近已经使用过。请选用其他密码"
#: panels/user-accounts/run-passwd.c:498
#, c-format