Updated string placeholders
This commit is contained in:
@@ -77,6 +77,9 @@
|
||||
"bonus_points_message": "{playerCount, plural, =1{{names} hat exakt das Punktelimit von {pointLimit} Punkten erreicht und bekommt deshalb {bonusPoints} Punkte abgezogen!} other{{names} haben exakt das Punktelimit von {pointLimit} Punkten erreicht und bekommen deshalb jeweils {bonusPoints} Punkte abgezogen!}}",
|
||||
"@bonus_points_message": {
|
||||
"placeholders": {
|
||||
"playerCount": {
|
||||
"type": "int"
|
||||
},
|
||||
"names": {
|
||||
"type": "String"
|
||||
},
|
||||
|
||||
@@ -77,6 +77,9 @@
|
||||
"bonus_points_message": "{playerCount, plural, =1{{names} has reached exactly the point limit of {pointLimit} points and therefore gets {bonusPoints} points deducted!} other{{names} have reached exactly the point limit of {pointLimit} points and therefore get {bonusPoints} points deducted!}}",
|
||||
"@bonus_points_message": {
|
||||
"placeholders": {
|
||||
"playerCount": {
|
||||
"type": "int"
|
||||
},
|
||||
"names": {
|
||||
"type": "String"
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
||||
description: "Mobile app for the card game Cabo"
|
||||
publish_to: 'none'
|
||||
|
||||
version: 0.4.5+493
|
||||
version: 0.4.5+494
|
||||
|
||||
environment:
|
||||
sdk: ^3.5.4
|
||||
|
||||
Reference in New Issue
Block a user