From c5773bc2fc463c55082203dfaa0e8401740ec9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 29 Nov 2026 08:24:47 +0100 Subject: [PATCH 1/2] fix: use ngettext for pluralized string --- weblate/static/js/account-security.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weblate/static/js/account-security.js b/weblate/static/js/account-security.js index 4499e98e4e36..0ae0d76b059f 100644 --- a/weblate/static/js/account-security.js +++ b/weblate/static/js/account-security.js @@ -21,7 +21,11 @@ document.querySelectorAll("[data-security-progress]").forEach((container) => { bar.setAttribute("aria-valuenow", result.progress); bar.textContent = `${result.progress}%`; count.textContent = interpolate( - gettext("Processed %(processed)s of %(total)s entries."), + ngettext( + "Processed %(processed)s of %(total)s entry.", + "Processed %(processed)s of %(total)s entries.", + result, + ), result, true, ); From cd9416fb18b394c15b1542b1fc355283cb323504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 29 Nov 2026 10:11:01 +0100 Subject: [PATCH 2/2] Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- weblate/static/js/account-security.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weblate/static/js/account-security.js b/weblate/static/js/account-security.js index 0ae0d76b059f..d51812bbdd6f 100644 --- a/weblate/static/js/account-security.js +++ b/weblate/static/js/account-security.js @@ -24,7 +24,7 @@ document.querySelectorAll("[data-security-progress]").forEach((container) => { ngettext( "Processed %(processed)s of %(total)s entry.", "Processed %(processed)s of %(total)s entries.", - result, + result.total, ), result, true,