[gnome-shell] PolkitAgent: Look for the right password prompt



commit 46cf9faa11bb64eb661a4f359256ae581bff2ea7
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 27 19:22:46 2012 -0400

    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

 js/ui/polkitAuthenticationAgent.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js
index 2038631..152c11f 100644
--- a/js/ui/polkitAuthenticationAgent.js
+++ b/js/ui/polkitAuthenticationAgent.js
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]