mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-23 18:16:15 +02:00
fix: improve bundle page strings
This commit is contained in:
parent
e6e043f168
commit
6f9a984541
@ -19,6 +19,7 @@ import androidx.compose.runtime.saveable.rememberSaveable
|
|||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.platform.LocalContext
|
import androidx.compose.ui.platform.LocalContext
|
||||||
|
import androidx.compose.ui.res.pluralStringResource
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import app.revanced.manager.R
|
import app.revanced.manager.R
|
||||||
@ -115,8 +116,8 @@ fun BaseBundleDialog(
|
|||||||
|
|
||||||
if (remoteUrl != null) {
|
if (remoteUrl != null) {
|
||||||
BundleListItem(
|
BundleListItem(
|
||||||
headlineText = stringResource(R.string.automatically_update),
|
headlineText = stringResource(R.string.bundle_auto_update),
|
||||||
supportingText = stringResource(R.string.automatically_update_description),
|
supportingText = stringResource(R.string.bundle_auto_update_description),
|
||||||
trailingContent = {
|
trailingContent = {
|
||||||
Switch(
|
Switch(
|
||||||
checked = autoUpdate,
|
checked = autoUpdate,
|
||||||
@ -163,8 +164,7 @@ fun BaseBundleDialog(
|
|||||||
val patchesClickable = LocalContext.current.isDebuggable && patchCount > 0
|
val patchesClickable = LocalContext.current.isDebuggable && patchCount > 0
|
||||||
BundleListItem(
|
BundleListItem(
|
||||||
headlineText = stringResource(R.string.patches),
|
headlineText = stringResource(R.string.patches),
|
||||||
supportingText = if (patchCount == 0) stringResource(R.string.no_patches)
|
supportingText = pluralStringResource(R.plurals.bundle_patches_available, patchCount, patchCount),
|
||||||
else stringResource(R.string.patches_available, patchCount),
|
|
||||||
modifier = Modifier.clickable(enabled = patchesClickable, onClick = onPatchesClick)
|
modifier = Modifier.clickable(enabled = patchesClickable, onClick = onPatchesClick)
|
||||||
) {
|
) {
|
||||||
if (patchesClickable)
|
if (patchesClickable)
|
||||||
|
@ -11,4 +11,8 @@
|
|||||||
<plurals name="selected_count">
|
<plurals name="selected_count">
|
||||||
<item quantity="other">%d selected</item>
|
<item quantity="other">%d selected</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
<plurals name="bundle_patches_available">
|
||||||
|
<item quantity="one">%d patch available</item>
|
||||||
|
<item quantity="other">%d patches available</item>
|
||||||
|
</plurals>
|
||||||
</resources>
|
</resources>
|
@ -182,8 +182,6 @@
|
|||||||
<string name="source_replace_fail">Failed to load updated patch bundle: %s</string>
|
<string name="source_replace_fail">Failed to load updated patch bundle: %s</string>
|
||||||
<string name="source_replace_integrations_fail">Failed to update integrations: %s</string>
|
<string name="source_replace_integrations_fail">Failed to update integrations: %s</string>
|
||||||
<string name="no_patched_apps_found">No patched apps found</string>
|
<string name="no_patched_apps_found">No patched apps found</string>
|
||||||
<string name="no_patches">No patches available to view</string>
|
|
||||||
<string name="patches_available">%d Patches available, tap to view</string>
|
|
||||||
<string name="tap_on_patches">Tap on the patches to get more information about them</string>
|
<string name="tap_on_patches">Tap on the patches to get more information about them</string>
|
||||||
<string name="bundles_selected">%s selected</string>
|
<string name="bundles_selected">%s selected</string>
|
||||||
<string name="unsupported_app">Unsupported app</string>
|
<string name="unsupported_app">Unsupported app</string>
|
||||||
@ -300,8 +298,8 @@
|
|||||||
<string name="bundle_input_source_url">Source URL</string>
|
<string name="bundle_input_source_url">Source URL</string>
|
||||||
<string name="bundle_update_success">Successfully updated %s</string>
|
<string name="bundle_update_success">Successfully updated %s</string>
|
||||||
<string name="bundle_update_unavailable">No update available for %s</string>
|
<string name="bundle_update_unavailable">No update available for %s</string>
|
||||||
<string name="automatically_update">Automatically update</string>
|
<string name="bundle_auto_update">Auto update</string>
|
||||||
<string name="automatically_update_description">Automatically update this bundle when ReVanced starts</string>
|
<string name="bundle_auto_update_description">Automatically update this bundle when ReVanced starts</string>
|
||||||
<string name="bundle_type">Bundle type</string>
|
<string name="bundle_type">Bundle type</string>
|
||||||
<string name="bundle_type_description">Choose the type of bundle you want</string>
|
<string name="bundle_type_description">Choose the type of bundle you want</string>
|
||||||
<string name="about_revanced_manager">About ReVanced Manager</string>
|
<string name="about_revanced_manager">About ReVanced Manager</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user