diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js
index aead1bcfd..eceec3035 100644
--- a/www/common/common-ui-elements.js
+++ b/www/common/common-ui-elements.js
@@ -2628,19 +2628,19 @@ define([
setHTML(h('p'), text)
]);
var buttons = [{
- name: Messages.cancel, // XXX "later"?
+ name: Messages.friendRequest_later,
onClick: function () {},
keys: [27]
}, {
className: 'primary',
- name: "Accept (Enter)", // XXX
+ name: Messages.friendRequest_accept,
onClick: function () {
todo(true);
},
keys: [13]
}, {
className: 'primary',
- name: "Ignore the request", // XXX
+ name: Messages.friendRequest_decline,
onClick: function () {
todo(false);
},
diff --git a/www/common/notifications.js b/www/common/notifications.js
index 570795efc..183915e6d 100644
--- a/www/common/notifications.js
+++ b/www/common/notifications.js
@@ -1,8 +1,9 @@
define([
'jquery',
'/common/hyperscript.js',
- '/common/common-ui-elements.js'
-], function ($, h, UIElements) {
+ '/common/common-ui-elements.js',
+ '/customize/messages.js',
+], function ($, h, UIElements, Messages) {
var handlers = {};
@@ -16,10 +17,10 @@ define([
common.addFriendRequest(data);
// Display the notification
- $(el).find('.cp-notification-dismiss').attr('title', 'IGNORE').css('display', 'flex'); // XXX
+ $(el).find('.cp-notification-dismiss').attr('title', Messages.friendRequest_dismiss).css('display', 'flex');
$(el).find('.cp-notification-content').addClass("cp-clickable");
$(el).find('.cp-notification-content p')
- .html('New friend request: '+msg.content.displayName+'') // XXX
+ .html(Messages._getKey('friendRequest_notification', [msg.content.displayName])
.click(function () {
UIElements.displayFriendRequestModal(common, data);
});
diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js
index 5712b02b2..7aa4db367 100644
--- a/www/common/toolbar3.js
+++ b/www/common/toolbar3.js
@@ -309,9 +309,7 @@ MessengerUI, Messages) {
} else if (friendRequests[data.curvePublic]) {
$('