manager: refactor home module/superuser plural/singular strings

This commit is contained in:
Rifat Azad
2025-07-04 23:52:20 +06:00
parent fdb01c918a
commit 10875ee190
21 changed files with 14 additions and 48 deletions
@@ -159,7 +159,11 @@ private fun SuperuserCard() {
verticalArrangement = Arrangement.spacedBy(4.dp)
) {
Text(
text = pluralStringResource(R.plurals.home_superuser_count, count),
text = if (count <= 1) {
stringResource(R.string.home_superuser_count_singular)
} else {
stringResource(R.string.home_superuser_count_plural)
},
style = MaterialTheme.typography.bodySmall
)
Text(
@@ -191,7 +195,11 @@ private fun ModuleCard() {
verticalArrangement = Arrangement.spacedBy(4.dp)
) {
Text(
text = pluralStringResource(R.plurals.home_module_count, count),
text = if (count <= 1) {
stringResource(R.string.home_module_count_singular)
} else {
stringResource(R.string.home_module_count_plural)
},
style = MaterialTheme.typography.bodySmall
)
Text(