mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
PolkitAgent: Look for the right password prompt
Pam seems to give us different strings, sometimes 'Password:', sometimes 'Password: '. Look for both of these when replacing them with a translated prompt. https://bugzilla.gnome.org/show_bug.cgi?id=675300
This commit is contained in:
parent
971341bb53
commit
46cf9faa11
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ const AuthenticationDialog = new Lang.Class({
|
|||
|
||||
_onSessionRequest: function(session, request, echo_on) {
|
||||
// Cheap localization trick
|
||||
if (request == 'Password:')
|
||||
if (request == 'Password:' || request == 'Password: ')
|
||||
this._passwordLabel.set_text(_("Password:"));
|
||||
else
|
||||
this._passwordLabel.set_text(request);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue