From 3377334e26c0ae1596e771077f58d24ae3adc99a Mon Sep 17 00:00:00 2001 From: Aaron Veil <70171475+anddea@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:42:42 +0300 Subject: [PATCH] chore: Update translations --- api/revanced-patches.api | 2 +- .../patches/music/ads/general/AdsPatch.kt | 4 ++- .../music/utils/settings/ResourceUtils.kt | 7 +++- .../music/utils/settings/SettingsPatch.kt | 33 ++++++++++++++----- .../music/settings/host/values/strings.xml | 4 +-- .../music/translations/el-rGR/strings.xml | 4 ++- .../music/translations/fr-rFR/strings.xml | 4 ++- .../music/translations/hu-rHU/strings.xml | 4 ++- .../music/translations/id-rID/strings.xml | 4 ++- .../music/translations/in/strings.xml | 4 ++- .../music/translations/ja-rJP/strings.xml | 4 ++- .../music/translations/ko-rKR/strings.xml | 4 ++- .../music/translations/pl-rPL/strings.xml | 4 ++- .../music/translations/pt-rBR/strings.xml | 4 ++- .../music/translations/ru-rRU/strings.xml | 4 ++- .../music/translations/tr-rTR/strings.xml | 3 +- .../music/translations/uk-rUA/strings.xml | 4 ++- .../music/translations/vi-rVN/strings.xml | 4 ++- .../music/translations/zh-rCN/strings.xml | 4 ++- 19 files changed, 78 insertions(+), 27 deletions(-) diff --git a/api/revanced-patches.api b/api/revanced-patches.api index e32bf54c8..3b72b4d25 100644 --- a/api/revanced-patches.api +++ b/api/revanced-patches.api @@ -459,7 +459,7 @@ public final class app/revanced/patches/music/utils/settings/ResourceUtils { public final fun addPreferenceCategoryUnderPreferenceScreen (Lapp/revanced/patcher/data/ResourceContext;Ljava/lang/String;Ljava/lang/String;)V public final fun addPreferenceWithIntent (Lapp/revanced/patcher/data/ResourceContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V public final fun addRVXSettingsPreference (Lapp/revanced/patcher/data/ResourceContext;)V - public final fun addSwitchPreference (Lapp/revanced/patcher/data/ResourceContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V + public final fun addSwitchPreference (Lapp/revanced/patcher/data/ResourceContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V public final fun getIconType ()Ljava/lang/String; public final fun getMusicPackageName ()Ljava/lang/String; public final fun setIconType (Ljava/lang/String;)V diff --git a/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt b/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt index d8aed25c0..72268a77c 100644 --- a/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt @@ -185,7 +185,9 @@ object AdsPatch : BaseBytecodePatch( CategoryType.ADS, "revanced_hide_fullscreen_ads_type", "true", - "revanced_hide_fullscreen_ads" + "revanced_hide_fullscreen_ads", + false, + setSummaryOnOff = true ) SettingsPatch.addSwitchPreference( CategoryType.ADS, diff --git a/src/main/kotlin/app/revanced/patches/music/utils/settings/ResourceUtils.kt b/src/main/kotlin/app/revanced/patches/music/utils/settings/ResourceUtils.kt index e3b243351..8390e36f7 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/settings/ResourceUtils.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/settings/ResourceUtils.kt @@ -156,7 +156,8 @@ object ResourceUtils { key: String, defaultValue: String, dependencyKey: String, - setSummary: Boolean + setSummary: Boolean, + setSummaryOnOff: Boolean ) { this.xmlEditor[SETTINGS_HEADER_PATH].use { editor -> val tags = editor.file.getElementsByTagName(PREFERENCE_SCREEN_TAG_NAME) @@ -170,6 +171,10 @@ object ResourceUtils { if (setSummary) { setAttribute("android:summary", "@string/$key" + "_summary") } + if (setSummaryOnOff) { + setAttribute("android:summaryOn", "@string/$key" + "_summary_on") + setAttribute("android:summaryOff", "@string/$key" + "_summary_off") + } setAttribute("android:key", key) setAttribute("android:defaultValue", defaultValue) if (dependencyKey != "") { diff --git a/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsPatch.kt index f00dc88f6..217f28302 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsPatch.kt @@ -153,35 +153,52 @@ object SettingsPatch : BaseResourcePatch( internal fun addSwitchPreference( category: CategoryType, key: String, - defaultValue: String - ) = addSwitchPreference(category, key, defaultValue, "") + defaultValue: String, + setSummary: Boolean + ) = addSwitchPreference(category, key, defaultValue, "", setSummary, false) internal fun addSwitchPreference( category: CategoryType, key: String, defaultValue: String, - setSummary: Boolean - ) = addSwitchPreference(category, key, defaultValue, "", setSummary) + setSummary: Boolean, + setSummaryOnOff: Boolean + ) = addSwitchPreference(category, key, defaultValue, "", setSummary, setSummaryOnOff) internal fun addSwitchPreference( category: CategoryType, key: String, defaultValue: String, - dependencyKey: String - ) = addSwitchPreference(category, key, defaultValue, dependencyKey, true) + dependencyKey: String, + setSummaryOnOff: Boolean + ) = addSwitchPreference(category, key, defaultValue, dependencyKey, true, setSummaryOnOff) internal fun addSwitchPreference( category: CategoryType, key: String, defaultValue: String, dependencyKey: String, - setSummary: Boolean + setSummary: Boolean, + setSummaryOnOff: Boolean = false ) { val categoryValue = category.value contexts.addPreferenceCategory(categoryValue) - contexts.addSwitchPreference(categoryValue, key, defaultValue, dependencyKey, setSummary) + contexts.addSwitchPreference(categoryValue, key, defaultValue, dependencyKey, setSummary, setSummaryOnOff) } + internal fun addSwitchPreference( + category: CategoryType, + key: String, + defaultValue: String + ) = addSwitchPreference(category, key, defaultValue, "") + + internal fun addSwitchPreference( + category: CategoryType, + key: String, + defaultValue: String, + dependencyKey: String + ) = addSwitchPreference(category, key, defaultValue, dependencyKey, false) + internal fun addPreferenceWithIntent( category: CategoryType, key: String diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml index 5861fdbb7..6edce5e5c 100644 --- a/src/main/resources/music/settings/host/values/strings.xml +++ b/src/main/resources/music/settings/host/values/strings.xml @@ -183,8 +183,8 @@ Please download %2$s from the website." Fullscreen ads have been closed. Hides fullscreen ads. Hide fullscreen ads - "If it is enabled, fullscreen ads are closed through the Close button. -If it is disabled, fullscreen ads are blocked. (there may be side effects)" + Fullscreen ads are closed through the Close button. + Fullscreen ads are blocked. (there may be side effects) Close fullscreen ads Hides the Share button in the fullscreen player. Hide fullscreen Share button diff --git a/src/main/resources/music/translations/el-rGR/strings.xml b/src/main/resources/music/translations/el-rGR/strings.xml index 7c045dd74..7357e7f6a 100644 --- a/src/main/resources/music/translations/el-rGR/strings.xml +++ b/src/main/resources/music/translations/el-rGR/strings.xml @@ -176,7 +176,9 @@ Οι διαφημίσεις πλήρους οθόνης έκλεισαν. Απόκρυψη των ενδιάμεσων διαφημίσεων πλήρους οθόνης. Απόκρυψη διαφημίσεων πλήρους οθόνης - "Αν είναι ενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης κλείνουν μέσω του κουμπιού κλεισίματος. + "Αν είναι ενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης κλείνουν μέσω του κουμπιού κλεισίματος. +Αν είναι απενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης είναι αυτόματα αποκλεισμένες. (μπορεί να υπάρχουν παρενέργειες)" + "Αν είναι ενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης κλείνουν μέσω του κουμπιού κλεισίματος. Αν είναι απενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης είναι αυτόματα αποκλεισμένες. (μπορεί να υπάρχουν παρενέργειες)" Κλείσιμο διαφημίσεων πλήρους οθόνης Απόκρυψη του κουμπιού κοινοποίησης στην οθόνη αναπαραγωγής πλήρους οθόνης. diff --git a/src/main/resources/music/translations/fr-rFR/strings.xml b/src/main/resources/music/translations/fr-rFR/strings.xml index 6631044c3..ceaac8d80 100644 --- a/src/main/resources/music/translations/fr-rFR/strings.xml +++ b/src/main/resources/music/translations/fr-rFR/strings.xml @@ -176,7 +176,9 @@ Veuillez télécharger %2$s à partir du site web." La publicité en plein écran a été fermée. Masque les publicités en plein écran. Masquer les publicités en plein écran - "Si activé, les publicités en plein écran seront fermées grâce au bouton \"Fermer\". + "Si activé, les publicités en plein écran seront fermées grâce au bouton \"Fermer\". +Si désactivé, Les publicités en plein écran seront bloquées. (peut avoir des effets secondaires)" + "Si activé, les publicités en plein écran seront fermées grâce au bouton \"Fermer\". Si désactivé, Les publicités en plein écran seront bloquées. (peut avoir des effets secondaires)" Fermer les publicités en plein écran Masque le bouton \"Partager\" sur le lecteur en plein écran. diff --git a/src/main/resources/music/translations/hu-rHU/strings.xml b/src/main/resources/music/translations/hu-rHU/strings.xml index 30f09b524..44cb1e924 100644 --- a/src/main/resources/music/translations/hu-rHU/strings.xml +++ b/src/main/resources/music/translations/hu-rHU/strings.xml @@ -176,7 +176,9 @@ Töltsd le a(z) %2$s weboldalról." Teljes képernyős hírdetések bezárva. Teljes képernyős hirdetések elrejtése. Teljes képernyős hirdetések elrejtése - "Ha engedélyezve van, akkor a teljes képernyő hírdetéseket a bezárás gombbal lehet eltüntetni. + "Ha engedélyezve van, akkor a teljes képernyő hírdetéseket a bezárás gombbal lehet eltüntetni. +Ha tiltva van, akkor blokkolja a t. k. hírdetéseket. (lehetnek mellékhatások)" + "Ha engedélyezve van, akkor a teljes képernyő hírdetéseket a bezárás gombbal lehet eltüntetni. Ha tiltva van, akkor blokkolja a t. k. hírdetéseket. (lehetnek mellékhatások)" Teljes képernyős hirdetések bezárása Elrejti a megosztás gombot a teljes képernyős lejátszóban. diff --git a/src/main/resources/music/translations/id-rID/strings.xml b/src/main/resources/music/translations/id-rID/strings.xml index d23df85e8..a76b28b93 100644 --- a/src/main/resources/music/translations/id-rID/strings.xml +++ b/src/main/resources/music/translations/id-rID/strings.xml @@ -168,7 +168,9 @@ Please download %2$s from the website." Iklan Fullscreen Telah Ditutup. Sembunyikan Iklan Fullscreen. Sembunyikan Iklan Fullscreen - "If it is enabled, fullscreen ads are closed through the Close button. + "If it is enabled, fullscreen ads are closed through the Close button. +If it is disabled, fullscreen ads are blocked. (there may be side effects)" + "If it is enabled, fullscreen ads are closed through the Close button. If it is disabled, fullscreen ads are blocked. (there may be side effects)" Tutup Iklan Fullscreen Hides the Share button in the fullscreen player. diff --git a/src/main/resources/music/translations/in/strings.xml b/src/main/resources/music/translations/in/strings.xml index d23df85e8..a76b28b93 100644 --- a/src/main/resources/music/translations/in/strings.xml +++ b/src/main/resources/music/translations/in/strings.xml @@ -168,7 +168,9 @@ Please download %2$s from the website." Iklan Fullscreen Telah Ditutup. Sembunyikan Iklan Fullscreen. Sembunyikan Iklan Fullscreen - "If it is enabled, fullscreen ads are closed through the Close button. + "If it is enabled, fullscreen ads are closed through the Close button. +If it is disabled, fullscreen ads are blocked. (there may be side effects)" + "If it is enabled, fullscreen ads are closed through the Close button. If it is disabled, fullscreen ads are blocked. (there may be side effects)" Tutup Iklan Fullscreen Hides the Share button in the fullscreen player. diff --git a/src/main/resources/music/translations/ja-rJP/strings.xml b/src/main/resources/music/translations/ja-rJP/strings.xml index 04a4b80b5..ec2cf3dac 100644 --- a/src/main/resources/music/translations/ja-rJP/strings.xml +++ b/src/main/resources/music/translations/ja-rJP/strings.xml @@ -171,7 +171,9 @@ 全画面広告を閉じました 全画面広告を非表示にします。 全画面広告を非表示 - "有効の場合、全画面広告は閉じるボタンで閉じられます。 + "有効の場合、全画面広告は閉じるボタンで閉じられます。 +無効にすると、全画面広告はブロックされます(バグが発生するかもしれません)" + "有効の場合、全画面広告は閉じるボタンで閉じられます。 無効にすると、全画面広告はブロックされます(バグが発生するかもしれません)" 全画面広告を閉じる 全画面表示のプレイヤーの共有ボタンを非表示にします。 diff --git a/src/main/resources/music/translations/ko-rKR/strings.xml b/src/main/resources/music/translations/ko-rKR/strings.xml index b199efc49..f0d0a576d 100644 --- a/src/main/resources/music/translations/ko-rKR/strings.xml +++ b/src/main/resources/music/translations/ko-rKR/strings.xml @@ -183,7 +183,9 @@ 전체 화면 광고가 닫혔습니다. 전체 화면 광고를 숨깁니다. 전체 화면 광고 제거 - "활성화하면 닫기 버튼을 누르면 전체 화면 광고가 닫혀집니다. + "활성화하면 닫기 버튼을 누르면 전체 화면 광고가 닫혀집니다. +비활성화하면 전체 화면 광고가 차단됩니다. (문제점이 발생할 수 있습니다.)" + "활성화하면 닫기 버튼을 누르면 전체 화면 광고가 닫혀집니다. 비활성화하면 전체 화면 광고가 차단됩니다. (문제점이 발생할 수 있습니다.)" 전체 화면 광고 닫기 전체 화면에서 공유 버튼을 숨깁니다. diff --git a/src/main/resources/music/translations/pl-rPL/strings.xml b/src/main/resources/music/translations/pl-rPL/strings.xml index 1283f1070..c8f1a9ab3 100644 --- a/src/main/resources/music/translations/pl-rPL/strings.xml +++ b/src/main/resources/music/translations/pl-rPL/strings.xml @@ -178,7 +178,9 @@ Pobierz %2$s ze strony." Zamknięto reklamy pełnoekranowe. Ukrywa reklamy pełnoekranowe Ukryj reklamy pełnoekranowe - "Jeśli opcja jest włączona, pełnoekranowe reklamy są zamykane poprzez przycisk zamknięcia. + "Jeśli opcja jest włączona, pełnoekranowe reklamy są zamykane poprzez przycisk zamknięcia. +Jeśli opcja jest wyłączona, pełnoekranowe reklamy są blokowane (mogą wystąpić efekty uboczne)" + "Jeśli opcja jest włączona, pełnoekranowe reklamy są zamykane poprzez przycisk zamknięcia. Jeśli opcja jest wyłączona, pełnoekranowe reklamy są blokowane (mogą wystąpić efekty uboczne)" Zamknij pełnoekranowe reklamy Ukrywa przycisk udostępniania w trybie pełnoekranowym. diff --git a/src/main/resources/music/translations/pt-rBR/strings.xml b/src/main/resources/music/translations/pt-rBR/strings.xml index d118657a0..4d32f0697 100644 --- a/src/main/resources/music/translations/pt-rBR/strings.xml +++ b/src/main/resources/music/translations/pt-rBR/strings.xml @@ -178,7 +178,9 @@ Por favor, baixe %2$s do site." Os anúncios de tela cheia foram fechados. Oculta anúncios em tela cheia. Ocultar anúncios em tela cheia - "Se estiver ativado, os anúncios em tela cheia são fechados através do botão Fechar. + "Se estiver ativado, os anúncios em tela cheia são fechados através do botão Fechar. +Se estiver desativado, os anúncios em tela cheia serão bloqueados. (pode haver efeitos colaterais)" + "Se estiver ativado, os anúncios em tela cheia são fechados através do botão Fechar. Se estiver desativado, os anúncios em tela cheia serão bloqueados. (pode haver efeitos colaterais)" Fechar anúncios em tela cheia Oculta o botão Compartilhar no reprodutor de tela cheia. diff --git a/src/main/resources/music/translations/ru-rRU/strings.xml b/src/main/resources/music/translations/ru-rRU/strings.xml index 76932d8ac..7724fbe1a 100644 --- a/src/main/resources/music/translations/ru-rRU/strings.xml +++ b/src/main/resources/music/translations/ru-rRU/strings.xml @@ -178,7 +178,9 @@ Полноэкранная реклама была закрыта. Скрывает полноэкранную рекламу. Полноэкранная реклама - "Если включено, полноэкранная реклама закрывается через кнопку Закрыть. + "Если включено, полноэкранная реклама закрывается через кнопку Закрыть. +Если отключено, полноэкранная реклама блокируется. (могут возникать побочные эффекты)" + "Если включено, полноэкранная реклама закрывается через кнопку Закрыть. Если отключено, полноэкранная реклама блокируется. (могут возникать побочные эффекты)" Закрывать полноэкранную рекламу Скрывает кнопку \"Поделиться\" в полноэкранном проигрывателе. diff --git a/src/main/resources/music/translations/tr-rTR/strings.xml b/src/main/resources/music/translations/tr-rTR/strings.xml index 8a628d299..34116672c 100644 --- a/src/main/resources/music/translations/tr-rTR/strings.xml +++ b/src/main/resources/music/translations/tr-rTR/strings.xml @@ -178,7 +178,8 @@ Lütfen web sitesinden %2$s dosyasını indirin." Tam ekran reklamlar kapatıldı. Tam ekran reklamlarını gizler. Tam ekran reklamlarını gizle - "Etkinleştirilirse Kapat düğmesi aracılığıyla tam ekran reklamlar kapatılır. Devre dışı bırakılırsa tam ekran reklamlar engellenir. (yan etkiler olabilir)" + "Etkinleştirilirse Kapat düğmesi aracılığıyla tam ekran reklamlar kapatılır. Devre dışı bırakılırsa tam ekran reklamlar engellenir. (yan etkiler olabilir)" + "Etkinleştirilirse Kapat düğmesi aracılığıyla tam ekran reklamlar kapatılır. Devre dışı bırakılırsa tam ekran reklamlar engellenir. (yan etkiler olabilir)" Tam ekran reklamlarını kapat Tam ekran oynatıcısındaki paylaş butonunu gizler. Tam ekran\'daki paylaş butonunu gizle diff --git a/src/main/resources/music/translations/uk-rUA/strings.xml b/src/main/resources/music/translations/uk-rUA/strings.xml index efe4719dd..0100265fd 100644 --- a/src/main/resources/music/translations/uk-rUA/strings.xml +++ b/src/main/resources/music/translations/uk-rUA/strings.xml @@ -178,7 +178,9 @@ Повноекранну рекламу закрито. Приховує повноекранну рекламу. Приховати повноекранну рекламу - "Якщо ввімкнено, повноекранна реклама закривається за допомогою кнопки Закрити. + "Якщо ввімкнено, повноекранна реклама закривається за допомогою кнопки Закрити. +Якщо вимкнено, повноекранна реклама блокується. (можуть бути побічні ефекти)" + "Якщо ввімкнено, повноекранна реклама закривається за допомогою кнопки Закрити. Якщо вимкнено, повноекранна реклама блокується. (можуть бути побічні ефекти)" Закривати повноекранну рекламу Приховує кнопку \"Поділитися\" в повноекранному плеєрі. diff --git a/src/main/resources/music/translations/vi-rVN/strings.xml b/src/main/resources/music/translations/vi-rVN/strings.xml index b6229be30..1768534cf 100644 --- a/src/main/resources/music/translations/vi-rVN/strings.xml +++ b/src/main/resources/music/translations/vi-rVN/strings.xml @@ -170,7 +170,9 @@ Hạn chế: Quảng cáo toàn màn hình đã được đóng. Ẩn quảng cáo toàn màn hình. Ẩn quảng cáo toàn màn hình - "Nếu tính năng này bật, quảng cáo toàn màn hình sẽ được đóng thông qua nút Đóng. + "Nếu tính năng này bật, quảng cáo toàn màn hình sẽ được đóng thông qua nút Đóng. +Nếu tính năng này tắt, quảng cáo toàn màn hình sẽ bị chặn (có thể có tác dụng phụ)." + "Nếu tính năng này bật, quảng cáo toàn màn hình sẽ được đóng thông qua nút Đóng. Nếu tính năng này tắt, quảng cáo toàn màn hình sẽ bị chặn (có thể có tác dụng phụ)." Đóng quảng cáo toàn màn hình Ẩn nút Chia sẻ trong trình phát toàn màn hình. diff --git a/src/main/resources/music/translations/zh-rCN/strings.xml b/src/main/resources/music/translations/zh-rCN/strings.xml index f8cf1ce2e..6daeb6890 100644 --- a/src/main/resources/music/translations/zh-rCN/strings.xml +++ b/src/main/resources/music/translations/zh-rCN/strings.xml @@ -151,7 +151,9 @@ 全屏广告已关闭 隐藏全屏广告 隐藏全屏广告 - "如果启用,全屏广告将通过关闭按钮关闭 + "如果启用,全屏广告将通过关闭按钮关闭 +如果禁用,全屏广告将被屏蔽(可能有副作用)" + "如果启用,全屏广告将通过关闭按钮关闭 如果禁用,全屏广告将被屏蔽(可能有副作用)" 关闭全屏广告 隐藏全屏播放器中的分享按钮