From 9f0f885ae6b0b46fa129d5e4b7ade67750ff35c4 Mon Sep 17 00:00:00 2001
From: wukko <me@wukko.me>
Date: Mon, 20 Jan 2025 19:59:59 +0600
Subject: [PATCH] web/settings/video: update h265 toggle strings

because now it also applies to xiaohongshu
---
 web/i18n/en/settings.json                  |  6 +++---
 web/src/routes/settings/video/+page.svelte | 17 +++++++++--------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/web/i18n/en/settings.json b/web/i18n/en/settings.json
index c450b4b9..418410bf 100644
--- a/web/i18n/en/settings.json
+++ b/web/i18n/en/settings.json
@@ -40,9 +40,9 @@
     "video.twitter.gif.title": "convert looping videos to GIF",
     "video.twitter.gif.description": "GIF conversion is inefficient, converted file may be obnoxiously big and low quality.",
 
-    "video.tiktok.h265": "tiktok",
-    "video.tiktok.h265.title": "prefer HEVC/H265 format",
-    "video.tiktok.h265.description": "allows downloading videos in 1080p at cost of compatibility.",
+    "video.h265": "high efficiency video codec",
+    "video.h265.title": "allow h265 for videos",
+    "video.h265.description": "allows downloading videos from platforms like tiktok and xiaohongshu in higher quality at cost of compatibility.",
 
     "audio.format": "audio format",
     "audio.format.best": "best",
diff --git a/web/src/routes/settings/video/+page.svelte b/web/src/routes/settings/video/+page.svelte
index 9897d7eb..88f9a5ca 100644
--- a/web/src/routes/settings/video/+page.svelte
+++ b/web/src/routes/settings/video/+page.svelte
@@ -69,6 +69,15 @@
     />
 </SettingsCategory>
 
+<SettingsCategory sectionId="h265" title={$t("settings.video.h265")}>
+    <SettingsToggle
+        settingContext="save"
+        settingId="tiktokH265"
+        title={$t("settings.video.h265.title")}
+        description={$t("settings.video.h265.description")}
+    />
+</SettingsCategory>
+
 <SettingsCategory sectionId="twitter" title={$t("settings.video.twitter.gif")}>
     <SettingsToggle
         settingContext="save"
@@ -78,11 +87,3 @@
     />
 </SettingsCategory>
 
-<SettingsCategory sectionId="tiktok" title={$t("settings.video.tiktok.h265")}>
-    <SettingsToggle
-        settingContext="save"
-        settingId="tiktokH265"
-        title={$t("settings.video.tiktok.h265.title")}
-        description={$t("settings.video.tiktok.h265.description")}
-    />
-</SettingsCategory>