From 24d52167ca8c53662937a615d93d5c7b2b1dfb1c Mon Sep 17 00:00:00 2001 From: cwilvx Date: Mon, 14 Oct 2024 17:33:00 +0300 Subject: [PATCH] ngetext playcount --- app/api/scrobble/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/scrobble/__init__.py b/app/api/scrobble/__init__.py index 4940033c..fea6cbf8 100644 --- a/app/api/scrobble/__init__.py +++ b/app/api/scrobble/__init__.py @@ -324,7 +324,7 @@ def get_stats(): playcount = StatItem( "streams", said_period, - f"{playcount} track{'' if playcount == 1 else 's'} played", + f"{playcount} track {ngettext('play', 'plays', playcount)}", ) playduration = StatItem(