From 76616dc98c3b1d7dd73f3976af2f8d01a30a78d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 17 May 2012 17:34:19 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index 8342ab136..b9bba1036 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"));