Replace remaining Android-specific strings
Also renaming the helper composables so it's a bit easier to find/replace everything in forks.
This commit is contained in:
@@ -65,7 +65,7 @@ import tachiyomi.i18n.MR
|
||||
import tachiyomi.presentation.core.components.ScrollbarLazyColumn
|
||||
import tachiyomi.presentation.core.components.material.Scaffold
|
||||
import tachiyomi.presentation.core.components.material.padding
|
||||
import tachiyomi.presentation.core.i18n.localize
|
||||
import tachiyomi.presentation.core.i18n.stringResource
|
||||
import tachiyomi.presentation.core.screens.EmptyScreen
|
||||
import tachiyomi.presentation.core.screens.LoadingScreen
|
||||
import tachiyomi.presentation.core.util.plus
|
||||
@@ -120,7 +120,7 @@ fun TrackerSearch(
|
||||
decorationBox = {
|
||||
if (query.text.isEmpty()) {
|
||||
Text(
|
||||
text = localize(MR.strings.action_search_hint),
|
||||
text = stringResource(MR.strings.action_search_hint),
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
)
|
||||
@@ -163,7 +163,7 @@ fun TrackerSearch(
|
||||
.fillMaxWidth(),
|
||||
elevation = ButtonDefaults.elevatedButtonElevation(),
|
||||
) {
|
||||
Text(text = localize(MR.strings.action_track))
|
||||
Text(text = stringResource(MR.strings.action_track))
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -204,7 +204,7 @@ fun TrackerSearch(
|
||||
EmptyScreen(
|
||||
modifier = Modifier.padding(innerPadding),
|
||||
message = queryResult.exceptionOrNull()?.message
|
||||
?: localize(MR.strings.unknown_error),
|
||||
?: stringResource(MR.strings.unknown_error),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -263,19 +263,19 @@ private fun SearchResultItem(
|
||||
)
|
||||
if (type.isNotBlank()) {
|
||||
SearchResultItemDetails(
|
||||
title = localize(MR.strings.track_type),
|
||||
title = stringResource(MR.strings.track_type),
|
||||
text = type,
|
||||
)
|
||||
}
|
||||
if (startDate.isNotBlank()) {
|
||||
SearchResultItemDetails(
|
||||
title = localize(MR.strings.label_started),
|
||||
title = stringResource(MR.strings.label_started),
|
||||
text = startDate,
|
||||
)
|
||||
}
|
||||
if (status.isNotBlank()) {
|
||||
SearchResultItemDetails(
|
||||
title = localize(MR.strings.track_status),
|
||||
title = stringResource(MR.strings.track_status),
|
||||
text = status,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user