From b61195f4c6cfb48c529680eb68dda06383d38011 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 5 Nov 2025 14:12:28 +0100 Subject: [PATCH] fix(l10n): use a splitless string for translation Signed-off-by: Arthur Schiwon --- lib/Activity/ActivityManager.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/Activity/ActivityManager.php b/lib/Activity/ActivityManager.php index 733bf4a834..80f9d92bd0 100644 --- a/lib/Activity/ActivityManager.php +++ b/lib/Activity/ActivityManager.php @@ -233,14 +233,16 @@ public function getActivityFormat($language, $subjectIdentifier, $subjectParams $subject = $ownActivity ? $l->n( - 'You have updated cell ' . $columns . ' on row {row} in table {table}', - 'You have updated cells ' . $columns . ' on row {row} in table {table}', - $count + 'You have updated cell %1$s on row {row} in table {table}', + 'You have updated cells %1$s on row {row} in table {table}', + $count, + [$columns], ) : $l->n( - '{user} has updated cell(s) ' . $columns . ' on row {row} in table {table}', - '{user} has updated cells ' . $columns . ' on row {row} in table {table}', + '{user} has updated cell %1$s on row {row} in table {table}', + '{user} has updated cells %1$s on row {row} in table {table}', $count, + [$columns], ); break; case self::SUBJECT_ROW_DELETE: