Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/session-widgets/auth_single.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions translations/dde-session-shell_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@
</context>
<context>
<name>AuthSingle</name>
<message>
<source>Password</source>
<translation>请输入密码</translation>
Comment on lines +143 to +145

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: The new AuthSingle translation is added only to zh_CN; locale catalogs such as Japanese still have no AuthSingle/Password entry, so tr("Password") falls back to the English source text instead of using the localized password prompt that the equivalent AuthPassword context provides.

Triggers: When the greeter runs with a non-Chinese locale whose AuthSingle catalog lacks this newly introduced message.

Suggested fix: Add the AuthSingle/Password message to every maintained locale catalog, or regenerate the catalogs and provide the corresponding translations.

</message>
<message>
<source>Please try again 1 minute later</source>
<translation>请1分钟后再试</translation>
Expand Down
Loading