diff --git a/web/src/App.tsx b/web/src/App.tsx index 8e12776..bd23303 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -6717,7 +6717,13 @@ function SoundPackOptions() { const notificationLeaves = (node: NotificationNode): string[] => node.key ? [node.key] : (node.children ?? []).flatMap(notificationLeaves); -function MeldungenPanel({ onOpenFavorites }: { onOpenFavorites: () => void }) { +function MeldungenPanel({ + onOpenFavorites, + onApplyPackToFavorites, +}: { + onOpenFavorites: () => void; + onApplyPackToFavorites: () => void; +}) { const t = useT(); const [settings, setSettings] = useState(getNotificationSettings); const [packs, reloadPacks] = useSoundPacks(); @@ -6843,6 +6849,14 @@ function MeldungenPanel({ onOpenFavorites }: { onOpenFavorites: () => void }) { + @@ -7869,6 +7883,7 @@ function OptionsDialog({ onOpenIdentities, onClearCache, onOpenFavorites, + onApplyPackToFavorites, }: { section: string; onSectionChange: (id: string) => void; @@ -7889,6 +7904,7 @@ function OptionsDialog({ onOpenIdentities: () => void; onClearCache: () => void; onOpenFavorites: () => void; + onApplyPackToFavorites: () => void; }) { const t = useT(); const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0]; @@ -7952,7 +7968,7 @@ function OptionsDialog({ ) : active.id === "sicherheit" ? ( ) : active.id === "meldungen" ? ( - + ) : ( <>

{t(`options.section.${active.id}`)}

@@ -13161,6 +13177,8 @@ function AppInner() { onOpenWhisperLists={() => setWhisperListsOpen(true)} onOpenIdentities={() => setIdentitiesOpen(true)} onOpenFavorites={openManageFavorites} + // Native's ✔: the chosen pack becomes every favorite's pack (drop their overrides). + onApplyPackToFavorites={() => saveFavorites(favorites.map(({ soundPack: _, ...f }) => f))} onClearCache={handleClearCache} section={optionsSection} onSectionChange={setOptionsSection} diff --git a/web/src/locales/cs-CZ.json b/web/src/locales/cs-CZ.json index 056d4fb..2d4fdd1 100644 --- a/web/src/locales/cs-CZ.json +++ b/web/src/locales/cs-CZ.json @@ -902,5 +902,7 @@ "notify.text.none": "Žádná", "notify.text.server": "Server", "notify.text.channel": "Kanál", - "notify.resetAll": "Obnovit všechny změny" + "notify.resetAll": "Obnovit všechny změny", + "notify.applyToFavorites": "Použít tento zvukový balíček pro všechny oblíbené", + "notify.applyToFavoritesConfirm": "Nastavit všem oblíbeným tento zvukový balíček? Vlastní balíčky jednotlivých oblíbených budou zrušeny." } diff --git a/web/src/locales/de.json b/web/src/locales/de.json index 3af0098..c181cc5 100644 --- a/web/src/locales/de.json +++ b/web/src/locales/de.json @@ -902,5 +902,7 @@ "notify.text.none": "Keine", "notify.text.server": "Server", "notify.text.channel": "Channel", - "notify.resetAll": "Alle Anpassungen zurücksetzen" + "notify.resetAll": "Alle Anpassungen zurücksetzen", + "notify.applyToFavorites": "Dieses Sound Pack für alle Favoriten verwenden", + "notify.applyToFavoritesConfirm": "Alle Favoriten auf dieses Sound Pack setzen? Eigene Sound Packs einzelner Favoriten werden dabei zurückgesetzt." } diff --git a/web/src/locales/en.json b/web/src/locales/en.json index 616793b..0a1396f 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -902,5 +902,7 @@ "notify.text.none": "None", "notify.text.server": "Server", "notify.text.channel": "Channel", - "notify.resetAll": "Reset all changes" + "notify.resetAll": "Reset all changes", + "notify.applyToFavorites": "Use this sound pack for all favorites", + "notify.applyToFavoritesConfirm": "Set all favorites to this sound pack? Sound packs set on individual favorites will be reset." } diff --git a/web/src/locales/fa.json b/web/src/locales/fa.json index dfcf11b..825e16c 100644 --- a/web/src/locales/fa.json +++ b/web/src/locales/fa.json @@ -901,5 +901,7 @@ "notify.text.none": "هیچ", "notify.text.server": "سرور", "notify.text.channel": "کانال", - "notify.resetAll": "بازنشانی همه تغییرات" + "notify.resetAll": "بازنشانی همه تغییرات", + "notify.applyToFavorites": "استفاده از این بسته صدا برای همه موارد علاقه", + "notify.applyToFavoritesConfirm": "همه موارد علاقه روی این بسته صدا تنظیم شوند؟ بسته‌های صدای جداگانه بازنشانی می‌شوند." } diff --git a/web/src/locales/zh-CN.json b/web/src/locales/zh-CN.json index 20dd0a9..3032707 100644 --- a/web/src/locales/zh-CN.json +++ b/web/src/locales/zh-CN.json @@ -901,5 +901,7 @@ "notify.text.none": "无", "notify.text.server": "服务器", "notify.text.channel": "频道", - "notify.resetAll": "重置所有更改" + "notify.resetAll": "重置所有更改", + "notify.applyToFavorites": "将此声音包用于所有收藏", + "notify.applyToFavoritesConfirm": "将所有收藏设为此声音包?单个收藏的声音包设置将被重置。" }