Use plural forms for update error notification (#3090)
* Use plural forms for update error notification Replace the hardcoded 'X update(s) failed' string with Android plural resources so the notification correctly shows '1 update failed' vs '2 updates failed', enabling proper localization. Fixes #3051 * Address review: rename plural key and remove comment Rename plural key to notification_update_errors to avoid potential conflicts with existing translated string keys. Remove leftover comment from strings.xml. * Revert key rename per review
This commit is contained in:
@@ -155,7 +155,7 @@ class LibraryUpdateNotifier(
|
||||
Notifications.ID_LIBRARY_ERROR,
|
||||
Notifications.CHANNEL_LIBRARY_ERROR,
|
||||
) {
|
||||
setContentTitle(context.stringResource(MR.strings.notification_update_error, failed))
|
||||
setContentTitle(context.pluralStringResource(MR.plurals.notification_update_error, failed, failed))
|
||||
setContentText(context.stringResource(MR.strings.action_show_errors))
|
||||
setSmallIcon(R.drawable.ic_tachi)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user