From 7a61a1e979c00a76a4655f0b912779add2be7ebf Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Mon, 14 Sep 2026 03:52:58 +0000 Subject: [PATCH] sync: from linuxdeepin/dde-session-shell Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: https://github.com/linuxdeepin/dde-session-shell/pull/87 --- src/session-widgets/auth_single.cpp | 3 ++- translations/dde-session-shell_zh_CN.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/session-widgets/auth_single.cpp b/src/session-widgets/auth_single.cpp index 02f06456..35f49491 100644 --- a/src/session-widgets/auth_single.cpp +++ b/src/session-widgets/auth_single.cpp @@ -97,6 +97,7 @@ void AuthSingle::initUI() passwordLayout->addWidget(m_passwordHintBtn, 0, Qt::AlignRight | Qt::AlignVCenter); mainLayout->addWidget(m_lineEdit); + setLineEditInfo(tr("Password"), PlaceHolderText); updatePasswordTextMargins(); } @@ -204,7 +205,7 @@ void AuthSingle::setAuthState(const AuthCommon::AuthState state, const QString & setAnimationState(false); m_lineEdit->setText(QString()); setLineEditEnabled(true); - setLineEditInfo(result, PlaceHolderText); + setLineEditInfo(tr("Password"), PlaceHolderText); break; case AS_Started: break; diff --git a/translations/dde-session-shell_zh_CN.ts b/translations/dde-session-shell_zh_CN.ts index 6f6070e8..9ed90c3f 100644 --- a/translations/dde-session-shell_zh_CN.ts +++ b/translations/dde-session-shell_zh_CN.ts @@ -140,6 +140,10 @@ AuthSingle + + Password + 请输入密码 + Please try again 1 minute later 请1分钟后再试