De-duplicate string resource keys (#1560)

## Description
Ensures that all string & plural resource keys are unique. This should
help make sure all of the strings are shown in weblate's translation.

### Related issues
Related to #1551

### Testing
Emulator

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-06-12 01:24:24 -04:00 • committed by GitHub
parent 38b4a8c4de
commit fa5cc99c3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 156 additions and 183 deletions

View file

@ -506,7 +506,7 @@ class HomeSettingsService
is HomeRowConfig.Favorite -> {
val name =
ResProviderStringProvider(
R.string.favorite_items,
R.string.favorite_items_title,
ResStringProvider(favoriteOptions[config.kind]!!),
)
HomeRowConfigDisplay(id, name, config)
@ -952,7 +952,7 @@ class HomeSettingsService
is HomeRowConfig.Favorite -> {
val title =
ResProviderStringProvider(
R.string.favorite_items,
R.string.favorite_items_title,
ResStringProvider(favoriteOptions[row.kind]!!),
)
if (row.kind == BaseItemKind.PERSON) {

View file

@ -34,7 +34,7 @@ class TrailerService
// TODO would be nice to clean up the trailer name
// ?.replace(item.name ?: "", "")
// ?.removePrefix(" - ")
?: context.getString(R.string.trailer)
?: context.resources.getQuantityString(R.plurals.trailers, 1)
val subtitle =
when (url.toUri().host) {
"youtube.com", "www.youtube.com" -> "YouTube"