mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-11-06 02:40:58 +01:00
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:
parent
38b4a8c4de
commit
fa5cc99c3b
42 changed files with 156 additions and 183 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue