From 4161020e6c2c19d703c060f9ca3e17ec207deb7c Mon Sep 17 00:00:00 2001 From: David Perez Date: Mon, 13 Oct 2025 11:02:51 -0500 Subject: [PATCH] Fix plurals issue for Crowdin (#6016) --- .../bitwarden/ui/vault/feature/vault/VaultScreen.kt | 9 ++++++--- ui/src/main/res/values/strings.xml | 6 ++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultScreen.kt b/app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultScreen.kt index 929ae28017..7df39da70e 100644 --- a/app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultScreen.kt +++ b/app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultScreen.kt @@ -426,9 +426,12 @@ private fun VaultDialogs( title = stringResource( id = BitwardenString.enable_browser_autofill_to_keep_filling_passwords, ), - message = pluralStringResource( - id = BitwardenPlurals.your_browser_recently_updated_how_autofill_works, - count = dialogState.browserCount, + message = stringResource( + id = if (dialogState.browserCount > 1) { + 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), dismissButtonText = stringResource(id = BitwardenString.not_now), diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml index a82f0f19e5..c351f43227 100644 --- a/ui/src/main/res/values/strings.xml +++ b/ui/src/main/res/values/strings.xml @@ -1111,10 +1111,8 @@ Do you want to switch to this account? %1$d items have been imported to your vault. Enable browser Autofill to keep filling passwords - - Your browser has recently updated, which has disabled Bitwarden autofill. To continue filling your passwords with Bitwarden, enable browser autofill in autofill settings. - 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. - + Your browser has recently updated, which has disabled Bitwarden autofill. To continue filling your passwords with Bitwarden, enable browser autofill in autofill settings. + 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. Not now Import from Bitwarden Select account