Updated string placeholders

This commit is contained in:
2025-07-14 10:17:51 +02:00
parent a8298dfa21
commit 047acfecd8
4 changed files with 13 additions and 3 deletions

View File

@@ -436,13 +436,17 @@ class _RoundViewState extends State<RoundView> {
String resultText = '';
if (nameList.length == 1) {
resultText = AppLocalizations.of(context).bonus_points_message(
nameList.first, pointLimit, bonusPoints, nameList.length);
nameList.length, nameList.first, pointLimit, bonusPoints);
} else {
resultText = nameList.length == 2
? '${nameList[0]} & ${nameList[1]}'
: '${nameList.sublist(0, nameList.length - 1).join(', ')} & ${nameList.last}';
resultText = AppLocalizations.of(context).bonus_points_message(
resultText, pointLimit, bonusPoints, nameList.length);
nameList.length,
resultText,
pointLimit,
bonusPoints,
);
}
return resultText;
}