Skip to content

Commit 3e7b690

Browse files
committed
fix(YouTube): Some strings are missing inotia00/ReVanced_Extended#2597
1 parent 88b5550 commit 3e7b690

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

patches/src/main/kotlin/app/revanced/patches/youtube/utils/settings/SettingsPatch.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import app.revanced.util.removeStringsElements
2929
import app.revanced.util.valueOrThrow
3030
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
3131
import org.w3c.dom.Element
32+
import java.nio.file.Files
3233
import java.util.jar.Manifest
3334

3435
private const val EXTENSION_INITIALIZATION_CLASS_DESCRIPTOR =
@@ -182,6 +183,18 @@ val settingsPatch = resourcePatch(
182183
copyXmlNode("youtube/settings/host", "values/$xmlFile", "resources")
183184
}
184185

186+
val valuesV21Directory = get("res").resolve("values-v21")
187+
if (!valuesV21Directory.isDirectory)
188+
Files.createDirectories(valuesV21Directory.toPath())
189+
190+
copyResources(
191+
"youtube/settings",
192+
ResourceGroup(
193+
"values-v21",
194+
"strings.xml"
195+
)
196+
)
197+
185198
arrayOf(
186199
ResourceGroup(
187200
"drawable",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Translation Exception -->
4+
<string name="revanced_spoof_streaming_data_side_effects_android_creator">@string/revanced_spoof_streaming_data_side_effects_android</string>
5+
<string name="revanced_spoof_streaming_data_side_effects_android_unplugged">@string/revanced_spoof_streaming_data_side_effects_android</string>
6+
<string name="revanced_spoof_streaming_data_side_effects_android_vr">@string/revanced_spoof_streaming_data_side_effects_android</string>
7+
</resources>

0 commit comments

Comments
 (0)