From 0be39b144c66f2c571d4b7831f7b8ec7c3d6d123 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov <sasha.skvortsov109@gmail.com> Date: Wed, 12 May 2021 19:37:44 -0400 Subject: [PATCH] Update for ICU MessageFormat --- extensions/pusher/js/src/forum/index.js | 2 +- extensions/pusher/locale/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/pusher/js/src/forum/index.js b/extensions/pusher/js/src/forum/index.js index f6e565622..27eecd196 100644 --- a/extensions/pusher/js/src/forum/index.js +++ b/extensions/pusher/js/src/forum/index.js @@ -87,7 +87,7 @@ app.initializers.add('flarum-pusher', () => { this.loadingUpdated = true; }, loading: this.loadingUpdated - }, app.translator.transChoice('flarum-pusher.forum.discussion_list.show_updates_text', count, { count })) + }, app.translator.trans('flarum-pusher.forum.discussion_list.show_updates_text', { count })) ); } } diff --git a/extensions/pusher/locale/en.yml b/extensions/pusher/locale/en.yml index 184489bc2..0be46062a 100644 --- a/extensions/pusher/locale/en.yml +++ b/extensions/pusher/locale/en.yml @@ -20,4 +20,4 @@ flarum-pusher: # These translations are used in the discussion list. discussion_list: - show_updates_text: "Show {count} updated discussion|Show {count} updated discussions" + show_updates_text: "{count, plural, one {Show # updated discussion} other {Show # updated discussions}}"