Fix plurals issue for Crowdin (#6016)

This commit is contained in:
David Perez 2025-10-13 11:02:51 -05:00 committed by GitHub
parent 5543bc6ab5
commit 4161020e6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -426,9 +426,12 @@ private fun VaultDialogs(
title = stringResource( title = stringResource(
id = BitwardenString.enable_browser_autofill_to_keep_filling_passwords, id = BitwardenString.enable_browser_autofill_to_keep_filling_passwords,
), ),
message = pluralStringResource( message = stringResource(
id = BitwardenPlurals.your_browser_recently_updated_how_autofill_works, id = if (dialogState.browserCount > 1) {
count = dialogState.browserCount, BitwardenString.your_browser_recently_updated_how_autofill_works_plural
} else {
BitwardenString.your_browser_recently_updated_how_autofill_works_singular
},
), ),
confirmButtonText = stringResource(id = BitwardenString.go_to_settings), confirmButtonText = stringResource(id = BitwardenString.go_to_settings),
dismissButtonText = stringResource(id = BitwardenString.not_now), dismissButtonText = stringResource(id = BitwardenString.not_now),

View File

@ -1111,10 +1111,8 @@ Do you want to switch to this account?</string>
<item quantity="other">%1$d items have been imported to your vault.</item> <item quantity="other">%1$d items have been imported to your vault.</item>
</plurals> </plurals>
<string name="enable_browser_autofill_to_keep_filling_passwords">Enable browser Autofill to keep filling passwords</string> <string name="enable_browser_autofill_to_keep_filling_passwords">Enable browser Autofill to keep filling passwords</string>
<plurals name="your_browser_recently_updated_how_autofill_works"> <string name="your_browser_recently_updated_how_autofill_works_singular">Your browser has recently updated, which has disabled Bitwarden autofill. To continue filling your passwords with Bitwarden, enable browser autofill in autofill settings.</string>
<item quantity="one">Your browser has recently updated, which has disabled Bitwarden autofill. To continue filling your passwords with Bitwarden, enable browser autofill in autofill settings.</item> <string name="your_browser_recently_updated_how_autofill_works_plural">Your browsers have recently updated, which has disabled Bitwarden autofill. To continue filling your passwords with Bitwarden, enable browser autofill for all installed browsers in autofill settings.</string>
<item quantity="other">Your browsers have recently updated, which has disabled Bitwarden autofill. To continue filling your passwords with Bitwarden, enable browser autofill for all installed browsers in autofill settings.</item>
</plurals>
<string name="not_now">Not now</string> <string name="not_now">Not now</string>
<string name="import_from_bitwarden">Import from Bitwarden</string> <string name="import_from_bitwarden">Import from Bitwarden</string>
<string name="select_account">Select account</string> <string name="select_account">Select account</string>