Added function for point label
This commit is contained in:
@@ -43,3 +43,11 @@ String getExtraPlayerCount(Match match) {
|
|||||||
}
|
}
|
||||||
return ' + ${count.toString()}';
|
return ' + ${count.toString()}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getPointLabel(AppLocalizations loc, int points) {
|
||||||
|
if (points == 1) {
|
||||||
|
return '$points ${loc.point}';
|
||||||
|
} else {
|
||||||
|
return '$points ${loc.points}';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user