Skip to content

Commit

Permalink
chore: Update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
anddea committed Jul 26, 2024
1 parent 97bc461 commit 3377334
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 27 deletions.
2 changes: 1 addition & 1 deletion api/revanced-patches.api
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 != "") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/music/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ Please download %2$s from the website."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">Fullscreen ads have been closed.</string>
<string name="revanced_hide_fullscreen_ads_summary">Hides fullscreen ads.</string>
<string name="revanced_hide_fullscreen_ads_title">Hide fullscreen ads</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_on">Fullscreen ads are closed through the Close button.</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">Fullscreen ads are blocked. (there may be side effects)</string>
<string name="revanced_hide_fullscreen_ads_type_title">Close fullscreen ads</string>
<string name="revanced_hide_fullscreen_share_button_summary">Hides the Share button in the fullscreen player.</string>
<string name="revanced_hide_fullscreen_share_button_title">Hide fullscreen Share button</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/el-rGR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@
<string name="revanced_hide_fullscreen_ads_closed_success">Οι διαφημίσεις πλήρους οθόνης έκλεισαν.</string>
<string name="revanced_hide_fullscreen_ads_summary">Απόκρυψη των ενδιάμεσων διαφημίσεων πλήρους οθόνης.</string>
<string name="revanced_hide_fullscreen_ads_title">Απόκρυψη διαφημίσεων πλήρους οθόνης</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"Αν είναι ενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης κλείνουν μέσω του κουμπιού κλεισίματος.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"Αν είναι ενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης κλείνουν μέσω του κουμπιού κλεισίματος.
Αν είναι απενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης είναι αυτόματα αποκλεισμένες. (μπορεί να υπάρχουν παρενέργειες)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"Αν είναι ενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης κλείνουν μέσω του κουμπιού κλεισίματος.
Αν είναι απενεργοποιημένο, οι διαφημίσεις πλήρους οθόνης είναι αυτόματα αποκλεισμένες. (μπορεί να υπάρχουν παρενέργειες)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Κλείσιμο διαφημίσεων πλήρους οθόνης</string>
<string name="revanced_hide_fullscreen_share_button_summary">Απόκρυψη του κουμπιού κοινοποίησης στην οθόνη αναπαραγωγής πλήρους οθόνης.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/fr-rFR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ Veuillez télécharger %2$s à partir du site web."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">La publicité en plein écran a été fermée.</string>
<string name="revanced_hide_fullscreen_ads_summary">Masque les publicités en plein écran.</string>
<string name="revanced_hide_fullscreen_ads_title">Masquer les publicités en plein écran</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"Si activé, les publicités en plein écran seront fermées grâce au bouton \"Fermer\".
<string name="revanced_hide_fullscreen_ads_type_summary_on">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Fermer les publicités en plein écran</string>
<string name="revanced_hide_fullscreen_share_button_summary">Masque le bouton \"Partager\" sur le lecteur en plein écran.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ Töltsd le a(z) %2$s weboldalról."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">Teljes képernyős hírdetések bezárva.</string>
<string name="revanced_hide_fullscreen_ads_summary">Teljes képernyős hirdetések elrejtése.</string>
<string name="revanced_hide_fullscreen_ads_title">Teljes képernyős hirdetések elrejtése</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"Ha engedélyezve van, akkor a teljes képernyő hírdetéseket a bezárás gombbal lehet eltüntetni.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Teljes képernyős hirdetések bezárása</string>
<string name="revanced_hide_fullscreen_share_button_summary">Elrejti a megosztás gombot a teljes képernyős lejátszóban.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/id-rID/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ Please download %2$s from the website."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">Iklan Fullscreen Telah Ditutup.</string>
<string name="revanced_hide_fullscreen_ads_summary">Sembunyikan Iklan Fullscreen.</string>
<string name="revanced_hide_fullscreen_ads_title">Sembunyikan Iklan Fullscreen</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"If it is enabled, fullscreen ads are closed through the Close button.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Tutup Iklan Fullscreen</string>
<string name="revanced_hide_fullscreen_share_button_summary">Hides the Share button in the fullscreen player.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ Please download %2$s from the website."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">Iklan Fullscreen Telah Ditutup.</string>
<string name="revanced_hide_fullscreen_ads_summary">Sembunyikan Iklan Fullscreen.</string>
<string name="revanced_hide_fullscreen_ads_title">Sembunyikan Iklan Fullscreen</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"If it is enabled, fullscreen ads are closed through the Close button.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Tutup Iklan Fullscreen</string>
<string name="revanced_hide_fullscreen_share_button_summary">Hides the Share button in the fullscreen player.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@
<string name="revanced_hide_fullscreen_ads_closed_success">全画面広告を閉じました</string>
<string name="revanced_hide_fullscreen_ads_summary">全画面広告を非表示にします。</string>
<string name="revanced_hide_fullscreen_ads_title">全画面広告を非表示</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"有効の場合、全画面広告は閉じるボタンで閉じられます。
<string name="revanced_hide_fullscreen_ads_type_summary_on">"有効の場合、全画面広告は閉じるボタンで閉じられます。
無効にすると、全画面広告はブロックされます(バグが発生するかもしれません)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"有効の場合、全画面広告は閉じるボタンで閉じられます。
無効にすると、全画面広告はブロックされます(バグが発生するかもしれません)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">全画面広告を閉じる</string>
<string name="revanced_hide_fullscreen_share_button_summary">全画面表示のプレイヤーの共有ボタンを非表示にします。</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/ko-rKR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@
<string name="revanced_hide_fullscreen_ads_closed_success">전체 화면 광고가 닫혔습니다.</string>
<string name="revanced_hide_fullscreen_ads_summary">전체 화면 광고를 숨깁니다.</string>
<string name="revanced_hide_fullscreen_ads_title">전체 화면 광고 제거</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"활성화하면 닫기 버튼을 누르면 전체 화면 광고가 닫혀집니다.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"활성화하면 닫기 버튼을 누르면 전체 화면 광고가 닫혀집니다.
비활성화하면 전체 화면 광고가 차단됩니다. (문제점이 발생할 수 있습니다.)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"활성화하면 닫기 버튼을 누르면 전체 화면 광고가 닫혀집니다.
비활성화하면 전체 화면 광고가 차단됩니다. (문제점이 발생할 수 있습니다.)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">전체 화면 광고 닫기</string>
<string name="revanced_hide_fullscreen_share_button_summary">전체 화면에서 공유 버튼을 숨깁니다.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/pl-rPL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ Pobierz %2$s ze strony."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">Zamknięto reklamy pełnoekranowe.</string>
<string name="revanced_hide_fullscreen_ads_summary">Ukrywa reklamy pełnoekranowe</string>
<string name="revanced_hide_fullscreen_ads_title">Ukryj reklamy pełnoekranowe</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"Jeśli opcja jest włączona, pełnoekranowe reklamy są zamykane poprzez przycisk zamknięcia.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Zamknij pełnoekranowe reklamy</string>
<string name="revanced_hide_fullscreen_share_button_summary">Ukrywa przycisk udostępniania w trybie pełnoekranowym.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ Por favor, baixe %2$s do site."</string>
<string name="revanced_hide_fullscreen_ads_closed_success">Os anúncios de tela cheia foram fechados.</string>
<string name="revanced_hide_fullscreen_ads_summary">Oculta anúncios em tela cheia.</string>
<string name="revanced_hide_fullscreen_ads_title">Ocultar anúncios em tela cheia</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"Se estiver ativado, os anúncios em tela cheia são fechados através do botão Fechar.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"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)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Fechar anúncios em tela cheia</string>
<string name="revanced_hide_fullscreen_share_button_summary">Oculta o botão Compartilhar no reprodutor de tela cheia.</string>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/music/translations/ru-rRU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@
<string name="revanced_hide_fullscreen_ads_closed_success">Полноэкранная реклама была закрыта.</string>
<string name="revanced_hide_fullscreen_ads_summary">Скрывает полноэкранную рекламу.</string>
<string name="revanced_hide_fullscreen_ads_title">Полноэкранная реклама</string>
<string name="revanced_hide_fullscreen_ads_type_summary">"Если включено, полноэкранная реклама закрывается через кнопку Закрыть.
<string name="revanced_hide_fullscreen_ads_type_summary_on">"Если включено, полноэкранная реклама закрывается через кнопку Закрыть.
Если отключено, полноэкранная реклама блокируется. (могут возникать побочные эффекты)"</string>
<string name="revanced_hide_fullscreen_ads_type_summary_off">"Если включено, полноэкранная реклама закрывается через кнопку Закрыть.
Если отключено, полноэкранная реклама блокируется. (могут возникать побочные эффекты)"</string>
<string name="revanced_hide_fullscreen_ads_type_title">Закрывать полноэкранную рекламу</string>
<string name="revanced_hide_fullscreen_share_button_summary">Скрывает кнопку \"Поделиться\" в полноэкранном проигрывателе.</string>
Expand Down
Loading

0 comments on commit 3377334

Please sign in to comment.