From 71d29f36c681d0b8b99d953736c14cbf74e2778c Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sun, 19 Apr 2026 03:43:28 +0800 Subject: [PATCH] clean strings --- .../magisk/ui/install/InstallBottomSheet.kt | 3 -- .../com/topjohnwu/magisk/ui/log/LogScreen.kt | 4 +-- .../ui/superuser/SuperuserDetailScreen.kt | 2 +- .../magisk/ui/surequest/SuRequestScreen.kt | 2 +- app/core/src/main/res/values/strings.xml | 31 ++++++------------- 5 files changed, 13 insertions(+), 29 deletions(-) diff --git a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/install/InstallBottomSheet.kt b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/install/InstallBottomSheet.kt index 2acf460bc..5854df273 100644 --- a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/install/InstallBottomSheet.kt +++ b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/install/InstallBottomSheet.kt @@ -115,7 +115,6 @@ fun InstallBottomSheet( SettingsArrow( title = stringResource(CoreR.string.select_patch_file), - summary = stringResource(CoreR.string.select_patch_file_summary), onClick = { show.value = false installVm.selectMethod(InstallViewModel.Method.PATCH) @@ -133,7 +132,6 @@ fun InstallBottomSheet( if (installVm.isRooted) { SettingsArrow( title = stringResource(CoreR.string.direct_install), - summary = stringResource(CoreR.string.direct_install_summary), onClick = { show.value = false installVm.selectMethod(InstallViewModel.Method.DIRECT) @@ -145,7 +143,6 @@ fun InstallBottomSheet( if (!installVm.noSecondSlot) { SettingsArrow( title = stringResource(CoreR.string.install_inactive_slot), - summary = stringResource(CoreR.string.install_inactive_slot_summary), onClick = { show.value = false installVm.selectMethod(InstallViewModel.Method.INACTIVE_SLOT) diff --git a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/log/LogScreen.kt b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/log/LogScreen.kt index 4588743d3..1efd34db5 100644 --- a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/log/LogScreen.kt +++ b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/log/LogScreen.kt @@ -84,7 +84,7 @@ fun LogScreen(viewModel: LogViewModel) { IconButton(onClick = { viewModel.saveMagiskLog() }) { Icon( imageVector = Icons.Default.Download, - contentDescription = stringResource(CoreR.string.save_log), + contentDescription = stringResource(CoreR.string.menuSaveLog), ) } } @@ -97,7 +97,7 @@ fun LogScreen(viewModel: LogViewModel) { ) { Icon( imageVector = Icons.Default.Delete, - contentDescription = stringResource(CoreR.string.clear_log), + contentDescription = stringResource(CoreR.string.menuClearLog), ) } }, diff --git a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserDetailScreen.kt b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserDetailScreen.kt index 65e9df348..36ad42ea7 100644 --- a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserDetailScreen.kt +++ b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserDetailScreen.kt @@ -65,7 +65,7 @@ fun SuperuserDetailScreen( Scaffold( topBar = { TopAppBar( - title = { Text(stringResource(CoreR.string.superuser_setting)) }, + title = { Text(stringResource(CoreR.string.settings)) }, navigationIcon = { IconButton( modifier = Modifier.padding(start = 16.dp), diff --git a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/surequest/SuRequestScreen.kt b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/surequest/SuRequestScreen.kt index ea59af806..be4c28705 100644 --- a/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/surequest/SuRequestScreen.kt +++ b/app/apk-ng/src/main/java/com/topjohnwu/magisk/ui/surequest/SuRequestScreen.kt @@ -125,7 +125,7 @@ fun SuRequestScreen(viewModel: SuRequestViewModel) { Spacer(Modifier.height(16.dp)) Text( - text = stringResource(CoreR.string.su_request_title), + text = stringResource(CoreR.string.su_warning), style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold, diff --git a/app/core/src/main/res/values/strings.xml b/app/core/src/main/res/values/strings.xml index 925d01c01..95b7d193d 100644 --- a/app/core/src/main/res/values/strings.xml +++ b/app/core/src/main/res/values/strings.xml @@ -17,24 +17,17 @@ Update N/A Hide - Restore Package App - Core Reinstall Download Magisk ONLY from the official GitHub page. Files from unknown sources can be malicious! Support Us Follow Us Source Magisk is, and always will be, free, and open source. However, you can show us that you care by making a donation. - Donate - Documents - Report Bugs - Status Installed Latest Invalid update channel - Uninstall Uninstall Magisk All modules will be disabled/removed!\nRoot will be removed!\nAny internal storage unencrypted through the use of Magisk will be re-encrypted! @@ -48,10 +41,7 @@ Let\'s go Press to download and install Direct install (Recommended) - Directly install Magisk to the boot partition Install to inactive slot (After OTA) - Install to the inactive slot after an OTA update - Patch a raw image, ODIN tar, or payload.bin file Your device will be FORCED to boot to the current inactive slot after a reboot!\nOnly use this option after OTA is done.\nContinue? Additional setup Select and patch a file @@ -63,7 +53,7 @@ Installation - This app is requesting root permission. Grants full access to your device. Deny if you\'re not sure! + Superuser request Because an app is obscuring a Superuser request, Magisk can\'t verify your response. Deny Prompt @@ -89,9 +79,7 @@ Toast Notification None - Superuser Notifications - Superuser Granted - Superuser Denied + Back Notifications Revoke No apps have asked for Superuser permission yet. @@ -100,14 +88,8 @@ You\'re log-free. Try using your root apps more. Magisk logs are empty, that\'s weird. Save log - Clear log now + Clear log Log successfully cleared - Save log - Clear log - Back - Superuser Setting - Enabled - Disabled PID: %1$d Target UID: %1$d Target PID: %s @@ -118,7 +100,7 @@ Show system apps - Show OS apps + Show core apps Filter by name Sort by name Sort by package name @@ -237,15 +219,20 @@ Magisk updates Progress notifications Update complete + Superuser Notifications Download complete Error downloading file Magisk update available! Magisk updated Tap to open app + Superuser Granted + Superuser Denied Yes No + Enabled + Disabled Install %1$s %2$s(%3$d) Download Reboot