gnome-control-center/bugfix-fix_used_passwd_error_capture.patch

39 lines
2.8 KiB
Diff
Raw Permalink Normal View History

2023-01-31 18:22:08 +08:00
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
2019-12-29 16:48:42 +08:00
"different",
"wrapped",
"recovered",
- "recent",
2022-06-09 11:53:41 +08:00
+ "already used",
2019-12-29 16:48:42 +08:00
"unchanged",
"match",
"1 numeric or special",
2023-01-31 18:22:08 +08:00
@@ -490,9 +490,9 @@ io_watch_stdout (GIOChannel *source, GIO
2019-12-29 16:48:42 +08:00
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"));
2023-01-31 18:22:08 +08:00
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 "新密码和旧密码太相似"
2019-12-29 16:48:42 +08:00
2023-01-31 18:22:08 +08:00
#: panels/user-accounts/run-passwd.c:495
2019-12-29 16:48:42 +08:00
#, c-format
-msgid "The new password has already been used recently."
-msgstr "新的密码最近已使用过。"
+msgid "Password has been already used. Choose another."
+msgstr "新密码在最近已经使用过。请选用其他密码"
2023-01-31 18:22:08 +08:00
#: panels/user-accounts/run-passwd.c:498
2019-12-29 16:48:42 +08:00
#, c-format