1 Star 0 Fork 17

丈青山/gnome-control-center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-fix_used_passwd_error_capture.patch 2.56 KB
一键复制 编辑 原始数据 按行查看 历史
丈青山 提交于 2022-06-09 11:53 . Udpate to 42.0
diff --git a/panels/user-accounts/run-passwd.c b/panels/user-accounts/run-passwd.c
index 86f53d4..14230c8 100644
--- a/panels/user-accounts/run-passwd.c
+++ b/panels/user-accounts/run-passwd.c
@@ -458,7 +458,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswdHandler *pass
"different",
"wrapped",
"recovered",
- "recent",
+ "already used",
"unchanged",
"match",
"1 numeric or special",
@@ -502,9 +502,9 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswdHandler *pass
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 --git a/po/zh_CN.po b/po/zh_CN.po
index f811497..1e1984e 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -7738,8 +7738,8 @@ msgstr "新密码和旧密码太相似"
#: panels/user-accounts/run-passwd.c:507
#, 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:510
#, c-format
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang__3125/gnome-control-center.git
git@gitee.com:zhang__3125/gnome-control-center.git
zhang__3125
gnome-control-center
gnome-control-center
master

搜索帮助