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
@ -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…
Reference in New Issue
Block a user