From e62aee7df2ba3edef11722f3828a434d86ac2cc6 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 2 Jul 2019 18:57:38 +0200 Subject: [PATCH] Update translation keys --- www/notifications/inner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/notifications/inner.js b/www/notifications/inner.js index 230246d8c..2f959e3d6 100644 --- a/www/notifications/inner.js +++ b/www/notifications/inner.js @@ -55,7 +55,7 @@ define([ var makeNotificationList = function (key, filterTypes) { filterTypes = filterTypes || []; var safeKey = key.replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); }); - var categoryName = Messages['notification_cat_' + safeKey] || safeKey; + var categoryName = Messages['notifications_cat_' + safeKey] || safeKey; var notifsData = []; if (key === "all") { @@ -68,7 +68,7 @@ define([ h("span.cp-app-notifications-panel-title", (Messages.notificationsPage || "Notifications") + " - " + categoryName), h("div.cp-app-notifications-panel-titlebar-buttons", [ - dismissAll = h("div.cp-app-notifications-dismissall.cp-clickable", { title: Messages.dismissAll || "Dismiss All" }, h("span.fa.fa-trash")), + dismissAll = h("div.cp-app-notifications-dismissall.cp-clickable", { title: Messages.notifications_dismissAll || "Dismiss All" }, h("span.fa.fa-trash")), ]), ]), notifsList = h("div.cp-app-notifications-panel-list", [ @@ -106,7 +106,7 @@ define([ var loadmore; var lastKnownHash; $(dismissAll).remove(); - loadmore = h("div.cp-app-notification-loadmore.cp-clickable", Messages.loadMore || "Load more ..."); + loadmore = h("div.cp-app-notification-loadmore.cp-clickable", Messages.notifications_loadMore || "Load more ..."); $(loadmore).click(function () { common.mailbox.getNotificationsHistory('notifications', 10, lastKnownHash, function (err, messages, end) { if (!Array.isArray(messages)) { return; } @@ -211,7 +211,7 @@ define([ showCategories(categories[key]); }); - $category.append(Messages['notification_cat_'+key] || key); + $category.append(Messages['notifications_cat_'+key] || key); }); showCategories(categories[active]); };