Converted hardcoded pluralization strings to Android plural resources. (#176)
This commit is contained in:
parent
3f840a47c8
commit
2c03f125a9
5 changed files with 38 additions and 15 deletions
|
|
@ -1515,11 +1515,10 @@ private fun RemoveFromShelfConfirmationDialog(
|
|||
onConfirm: () -> Unit,
|
||||
onDismiss: () -> Unit
|
||||
) {
|
||||
val bookStr = pluralStringResource(id = R.plurals.book_word, count)
|
||||
AlertDialog(
|
||||
onDismissRequest = onDismiss,
|
||||
title = { Text(stringResource(R.string.dialog_remove_from_shelf)) },
|
||||
text = { Text(stringResource(R.string.dialog_remove_from_shelf_desc, count, bookStr, shelfName)) },
|
||||
text = { Text(pluralStringResource(R.plurals.dialog_remove_from_shelf_desc, count, count, shelfName)) },
|
||||
confirmButton = {
|
||||
TextButton(onClick = onConfirm) { Text(stringResource(R.string.action_remove)) }
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue