diff --git a/public/src/client/unread.js b/public/src/client/unread.js index 833cf4e2da..48215356eb 100644 --- a/public/src/client/unread.js +++ b/public/src/client/unread.js @@ -70,7 +70,7 @@ define('forum/unread', [ doneRemovingTids(tids); }); } - + const selectCategoryLabel = ajaxify.data.selectCategoryLabel || '[[unread:mark_as_read]]'; const selector = categorySelector.init($('[component="category-selector"]'), { onSelect: function (category) { selector.selectCategory(0); @@ -82,7 +82,7 @@ define('forum/unread', [ markCategoryRead(category.cid); } }, - selectCategoryLabel: ajaxify.data.selectCategoryLabel || '[[unread:mark_as_read]]', + selectCategoryLabel: selectCategoryLabel, localCategories: [ { cid: 'selected', @@ -96,6 +96,14 @@ define('forum/unread', [ }, ], }); + app.parseAndTranslate('partials/category-selector-content', { + selectCategoryLabel: selectCategoryLabel, + selectCategoryIcon: ajaxify.data.selectCategoryIcon, + }, function (html) { + selector.el.find('[component="category-selector-selected"]').html( + html.find('[component="category-selector-selected"]').html() + ); + }); } function doneRemovingTids(tids) {