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分钟后再试