[gnome-shell] bluetooth: zero-pad PIN



commit 76616dc98c3b1d7dd73f3976af2f8d01a30a78d5
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu May 17 17:34:19 2012 +0200

    bluetooth: zero-pad PIN
    
    Bluetooth PINs always consist of 6 digits, so make sure to add
    leading zeros as necessary.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=651251

 js/ui/status/bluetooth.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js
index 8342ab1..b9bba10 100644
--- a/js/ui/status/bluetooth.js
+++ b/js/ui/status/bluetooth.js
@@ -380,7 +380,7 @@ const ConfirmNotification = new Lang.Class({
         this._applet = applet;
         this._devicePath = device_path;
         this.addBody(_("Device %s wants to pair with this computer").format(long_name));
-        this.addBody(_("Please confirm whether the PIN '%s' matches the one on the device.").format(pin));
+        this.addBody(_("Please confirm whether the PIN '%06d' matches the one on the device.").format(pin));
 
         this.addButton('matches', _("Matches"));
         this.addButton('does-not-match', _("Does not match"));



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