From 553414e672b4eb0bcfbf274566d8908607f15527 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 24 Oct 2015 13:15:18 +1030 Subject: [PATCH] i18n: Pluralise notification text --- .../likes/js/forum/src/components/PostLikedNotification.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/likes/js/forum/src/components/PostLikedNotification.js b/extensions/likes/js/forum/src/components/PostLikedNotification.js index 90af0a645..f132aa488 100644 --- a/extensions/likes/js/forum/src/components/PostLikedNotification.js +++ b/extensions/likes/js/forum/src/components/PostLikedNotification.js @@ -16,11 +16,11 @@ export default class PostLikedNotification extends Notification { const user = notification.sender(); const auc = notification.additionalUnreadCount(); - return app.translator.trans('flarum-likes.forum.notifications.post_liked_text', { + return app.translator.transChoice('flarum-likes.forum.notifications.post_liked_text', auc + 1, { user, username: auc ? punctuateSeries([ username(user), - app.translator.trans('flarum-likes.forum.others', {count: auc}) + app.translator.transChoice('flarum-likes.forum.notifications.others_text', auc, {count: auc}) ]) : undefined }); }