Skip to content

Commit

Permalink
fix(YouTube): Bring back missing strings
Browse files Browse the repository at this point in the history
  • Loading branch information
anddea committed Jul 11, 2024
1 parent e049a31 commit d47016a
Show file tree
Hide file tree
Showing 24 changed files with 74 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.stringPatc
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
import app.revanced.patches.youtube.utils.settings.ResourceUtils.updatePatchStatusIcon
import app.revanced.patches.youtube.utils.settings.SettingsPatch
import app.revanced.util.*
import app.revanced.util.ResourceGroup
import app.revanced.util.Utils.trimIndentMultiline
import app.revanced.util.copyFile
import app.revanced.util.copyResources
import app.revanced.util.copyXmlNode
import app.revanced.util.patch.BaseResourcePatch
import app.revanced.util.underBarOrThrow

@Suppress("unused")
object CustomBrandingIconPatch : BaseResourcePatch(
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Enable accessibility controls for the video player?</string>
<string name="accessibility_settings_edu_opt_out_text">Your controls are modified because an accessibility service is on.</string>
Expand Down Expand Up @@ -1082,7 +1082,9 @@ A different codec will be applied after about 20 seconds of buffering."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Quality changes only apply to the current video.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Quality changes apply to all videos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Removes the viewer discretion dialog.
This does not bypass the age restriction. It just accepts it automatically."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Remove viewer discretion dialog</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/ar/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">تمكين عناصر التحكم في إمكانية الوصول لمشغل الفيديو؟</string>
<string name="accessibility_settings_edu_opt_out_text">تم تعديل عناصر التحكم الخاصة بك لأن خدمة إمكانية الوصول قيد التشغيل.</string>
Expand Down Expand Up @@ -1068,7 +1068,9 @@
<string name="revanced_remember_video_quality_last_selected_summary_off">تنطبق تغييرات الجودة على الفيديو الحالي فقط.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">تنطبق تغييرات الجودة على جميع الفيديوهات.</string>
<string name="revanced_remember_video_quality_last_selected_title">تذكر تغييرات جودة الفيديو</string>
<string name="revanced_remember_video_quality_mobile">تغيير جودة بيانات الجوّال الافتراضية إلى %s.</string>
<string name="revanced_remember_video_quality_none">فشل في تعيين جودة الفيديو.</string>
<string name="revanced_remember_video_quality_wifi">تغيير جودة Wi-Fi الافتراضية إلى %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"يزيل مربع حوار تقدير المشاهد. هذا لا يتجاوز القيود العمرية. إنه يقبل ذلك تلقائيًا."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">إزالة مربع حوار تقدير المشاهد</string>
<string name="revanced_replace_av1_codec_summary">يستبدل برنامج الترميز AV1 ببرنامج الترميز VP9.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/bg-rBG/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Turn on accessibility controls for the video player?</string>
<string name="accessibility_settings_edu_opt_out_text">Your controls are modified because an accessibility service is on.</string>
Expand Down Expand Up @@ -934,7 +934,9 @@ After about 20 seconds of buffering, switches to different codec."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Quality changes only apply to the current video.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Quality changes apply to all videos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Remove viewer discretion dialog.
This does not bypass the age restriction. It just accepts it automatically."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Remove viewer discretion dialog</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/bn/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Turn on accessibility controls for the video player?</string>
<string name="accessibility_settings_edu_opt_out_text">Your controls are modified because an accessibility service is on.</string>
Expand Down Expand Up @@ -933,7 +933,9 @@ After about 20 seconds of buffering, switches to different codec."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Quality changes only apply to the current video.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Quality changes apply to all videos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Remove viewer discretion dialog.
This does not bypass the age restriction. It just accepts it automatically."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Remove viewer discretion dialog</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/de-rDE/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Bedienungshilfen für den Video-Player aktivieren?</string>
<string name="accessibility_settings_edu_opt_out_text">Ihre Steuerungen wurden angepasst, da ein Barrierefreiheitsdienst aktiviert ist.</string>
Expand Down Expand Up @@ -1062,7 +1062,9 @@ A different codec will be applied after about 20 seconds of buffering."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Qualitätseinstellungen werden nur für das aktuelle Video angewendet</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Qualitätseinstellungen werden für alle Videos angewendet</string>
<string name="revanced_remember_video_quality_last_selected_title">Qualitätseinstellungen merken</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Entfernt den Diskretionsdialog des Betrachters.
Dies umgeht nicht die Altersbeschränkung. Es akzeptiert ihn nur automatisch."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Diskretion des Betrachters entfernen</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/el-rGR/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Ενεργοποίηση των στοιχείων ελέγχου προσβασιμότητας για το πρόγραμμα αναπαραγωγής βίντεο;</string>
<string name="accessibility_settings_edu_opt_out_text">Τα στοιχεία ελέγχου σας τροποποιούνται επειδή είναι ενεργή κάποια υπηρεσία προσβασιμότητας.</string>
Expand Down Expand Up @@ -1103,7 +1103,9 @@ Playlists
<string name="revanced_remember_video_quality_last_selected_summary_off">Οι αλλαγές ποιότητας ισχύουν μόνο για το τρέχον βίντεο.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Οι αλλαγές ποιότητας ισχύουν για όλα τα βίντεο.</string>
<string name="revanced_remember_video_quality_last_selected_title">Απομνημόνευση αλλαγών ποιότητας βίντεο</string>
<string name="revanced_remember_video_quality_mobile">Η προεπιλεγμένη ποιότητα δεδομένων άλλαξε σε %s.</string>
<string name="revanced_remember_video_quality_none">Αποτυχία ορισμού ποιότητας βίντεο.</string>
<string name="revanced_remember_video_quality_wifi">Η προεπιλεγμένη ποιότητα με Wi-Fi άλλαξε σε %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Αφαίρεση του παραθύρου προειδοποίησης ηλικιακού περιορισμού.
Αυτό δεν παρακάμπτει τον ηλικιακό περιορισμό, απλά τον αποδέχεται αυτόματα."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Παράθυρο ηλικιακού περιορισμού</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/es-rES/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">¿Activar controles de accesibilidad para el reproductor de vídeo?</string>
<string name="accessibility_settings_edu_opt_out_text">Tus controles se modifican porque un servicio de accesibilidad está activado.</string>
Expand Down Expand Up @@ -1078,7 +1078,9 @@ Después de unos 20 segundos de búfer, cambia a un códec diferente."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Los cambios de calidad solo se aplican al vídeo actual.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Los cambios de calidad se aplican a todos los vídeos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Recordar cambios de calidad de vídeo</string>
<string name="revanced_remember_video_quality_mobile">Cambiando la calidad predeterminada con datos móviles a %s.</string>
<string name="revanced_remember_video_quality_none">Error al establecer la calidad de vídeo.</string>
<string name="revanced_remember_video_quality_wifi">Cambiando la calidad predeterminada con Wi-Fi a %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Elimina el diálogo de discreción del espectador.
Esto no evita la restricción de edad. Solo la acepta automáticamente."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Eliminar diálogo de discreción del espectador</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/fi-rFI/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Turn on accessibility controls for the video player?</string>
<string name="accessibility_settings_edu_opt_out_text">Your controls are modified because an accessibility service is on.</string>
Expand Down Expand Up @@ -933,7 +933,9 @@ After about 20 seconds of buffering, switches to different codec."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Quality changes only apply to the current video.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Quality changes apply to all videos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Remove viewer discretion dialog.
This does not bypass the age restriction. It just accepts it automatically."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Remove viewer discretion dialog</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/fr-rFR/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Activer les contrôles d\'accessibilité pour le lecteur vidéo ?</string>
<string name="accessibility_settings_edu_opt_out_text">Vos contrôles sont modifiés car un service d\'accessibilité est activé.</string>
Expand Down Expand Up @@ -1081,7 +1081,9 @@ Un codec différent sera appliqué après environ 20 secondes de mise en mémoir
<string name="revanced_remember_video_quality_last_selected_summary_off">La modification de la résolution est appliqué pour la vidéo en cours.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">La modification de la résolution est appliqué pour toutes les vidéos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Enreg. modification de la qualité</string>
<string name="revanced_remember_video_quality_mobile">La résolution sur les données mobiles a été modifiée par %s.</string>
<string name="revanced_remember_video_quality_none">Impossible de définir la qualité vidéo.</string>
<string name="revanced_remember_video_quality_wifi">La résolution sur le Wi-Fi a été modifiée par %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Supprime le message \"Confirmer votre âge\".
Cela ne contourne pas la restriction d'âge, mais le confirme automatiquement."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Suppr. Message \"Confirmer votre âge\"</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/hu-rHU/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Engedélyezi a videolejátszó akadálymentesítési vezérlőit?</string>
<string name="accessibility_settings_edu_opt_out_text">Az eszközök azért módosulnak, mert egy akadálymentesítési szolgáltatás be van kapcsolva.</string>
Expand Down Expand Up @@ -1051,7 +1051,9 @@ Egy másik kodek kerül alkalmazásra kb. 20 másodperc pufferezés után."</str
<string name="revanced_remember_video_quality_last_selected_summary_off">Felbontás változtatások alkalmazása a jelenlegi videóra</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Felbontás változtatások alkalmazása az összes videóra</string>
<string name="revanced_remember_video_quality_last_selected_title">Felbontás változtatások mentése</string>
<string name="revanced_remember_video_quality_mobile">mobil</string>
<string name="revanced_remember_video_quality_none">Nem sikerült beállítani a videóminőséget.</string>
<string name="revanced_remember_video_quality_wifi">wifi</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Eltávolítja a nézői belátás párbeszédpanelt.
Ez nem kerüli meg a korhatárt. Csak automatikusan fogadja el."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Távolítsa el a nézői diszkréciós párbeszédpanelt</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/id-rID/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Turn on accessibility controls for the video player?</string>
<string name="accessibility_settings_edu_opt_out_text">Your controls are modified because an accessibility service is on.</string>
Expand Down Expand Up @@ -933,7 +933,9 @@ After about 20 seconds of buffering, switches to different codec."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Quality changes only apply to the current video.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Quality changes apply to all videos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Remove viewer discretion dialog.
This does not bypass the age restriction. It just accepts it automatically."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Remove viewer discretion dialog</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/youtube/translations/in/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="accessibility_settings_edu_opt_in_text">Turn on accessibility controls for the video player?</string>
<string name="accessibility_settings_edu_opt_out_text">Your controls are modified because an accessibility service is on.</string>
Expand Down Expand Up @@ -933,7 +933,9 @@ After about 20 seconds of buffering, switches to different codec."</string>
<string name="revanced_remember_video_quality_last_selected_summary_off">Quality changes only apply to the current video.</string>
<string name="revanced_remember_video_quality_last_selected_summary_on">Quality changes apply to all videos.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_remove_viewer_discretion_dialog_summary">"Remove viewer discretion dialog.
This does not bypass the age restriction. It just accepts it automatically."</string>
<string name="revanced_remove_viewer_discretion_dialog_title">Remove viewer discretion dialog</string>
Expand Down
Loading

0 comments on commit d47016a

Please sign in to comment.