mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 13:17:46 +02:00
feat(YouTube/Settings): add strings that provide no translation
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package app.revanced.patches.youtube.utils.settings
|
||||
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patches.shared.elements.StringsElementsUtils.removeStringsElements
|
||||
import app.revanced.patches.shared.mapping.ResourceMappingPatch
|
||||
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
|
||||
import app.revanced.patches.youtube.utils.integrations.IntegrationsPatch
|
||||
@ -93,6 +94,21 @@ object SettingsPatch : BaseResourcePatch(
|
||||
.also { it.shutdown() }
|
||||
.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS)
|
||||
|
||||
/**
|
||||
* remove strings duplicated with RVX resources
|
||||
*
|
||||
* YouTube does not provide translations for these strings.
|
||||
* That's why it's been added to RVX resources.
|
||||
* This string also exists in RVX resources, so it must be removed to avoid being duplicated.
|
||||
*/
|
||||
context.removeStringsElements(
|
||||
arrayOf("values"),
|
||||
arrayOf(
|
||||
"accessibility_settings_edu_opt_in_text",
|
||||
"accessibility_settings_edu_opt_out_text"
|
||||
)
|
||||
)
|
||||
|
||||
/**
|
||||
* copy arrays, strings and preference
|
||||
*/
|
||||
|
Reference in New Issue
Block a user