From 845be599f4bf5b35f38a2fefd25b4e6148819bbd Mon Sep 17 00:00:00 2001 From: hope140 <61866799+hope140@users.noreply.github.com> Date: Sun, 22 Nov 2026 23:42:35 +0800 Subject: [PATCH 1/2] Localize Emby plugin settings in Simplified Chinese --- TheIntroDB/Configuration/configPage.html | 130 ++++----- TheIntroDB/Configuration/configPage.js | 342 ++++++++++++++++++++--- tests/settings-localization.test.cjs | 64 +++++ 3 files changed, 428 insertions(+), 108 deletions(-) create mode 100644 tests/settings-localization.test.cjs diff --git a/TheIntroDB/Configuration/configPage.html b/TheIntroDB/Configuration/configPage.html index f96f0cf..e5d2338 100644 --- a/TheIntroDB/Configuration/configPage.html +++ b/TheIntroDB/Configuration/configPage.html @@ -20,184 +20,184 @@

TheIntroDB

- Segment data (intro, recap, credits, preview) is fetched from + Segment data (intro, recap, credits, preview) is fetched from TheIntroDB API - (v4) using each item's TVDB, TMDB or IMDB ID. TVDB is preferred: it is the API's identity, and it is what lets series with a non-default display order (DVD, absolute) resolve to the right episode. Segments are not loaded when you press play; run the TheIntroDB media segment scan scheduled task to populate them. + (v4) using each item's TVDB, TMDB or IMDB ID. TVDB is preferred: it is the API's identity, and it is what lets series with a non-default display order (DVD, absolute) resolve to the right episode. Segments are not loaded when you press play; run the TheIntroDB media segment scan scheduled task to populate them.

-

Connection

+

Connection

- + -
Optional Bearer token; when set, your pending and accepted submissions are weighted higher in results, and requests use the signed-in rate limits (120 requests per 10 seconds, 100,000 lookups per day instead of 30 and 5,000). A key is what lets a large library scan finish in one run.
+
Optional Bearer token; when set, your pending and accepted submissions are weighted higher in results, and requests use the signed-in rate limits (120 requests per 10 seconds, 100,000 lookups per day instead of 30 and 5,000). A key is what lets a large library scan finish in one run.
-

Scan scope

+

Scan scope

- -
All media
- - -
Whitelisting a library scans all movies and episodes inside it. Selecting individual movies or shows only scans those specific items. Any media outside the selected libraries or items is left unchanged.
+ +
All media
+ + +
Whitelisting a library scans all movies and episodes inside it. Selecting individual movies or shows only scans those specific items. Any media outside the selected libraries or items is left unchanged.
- - + +
-
Items TheIntroDB has no data for are skipped for 14 days to save API requests. If you just submitted segments on theintrodb.org, clear the cache and run the Media segment scan to pull them into your library.
+
Items TheIntroDB has no data for are skipped for 14 days to save API requests. If you just submitted segments on theintrodb.org, clear the cache and run the Media segment scan to pull them into your library.
-

Segments

+

Segments

-
Include intro segments from TheIntroDB in Emby media processing.
+
Include intro segments from TheIntroDB in Emby media processing.
-
Include recap segments from TheIntroDB.
+
Include recap segments from TheIntroDB.
-
Include credits/outro segments from TheIntroDB.
+
Include credits/outro segments from TheIntroDB.
-
Include preview segments from TheIntroDB.
+
Include preview segments from TheIntroDB.
-
When enabled, readable chapter entries are created alongside native markers (IntroStart, CreditsStart). Recaps and Previews have no native marker support in Emby and will be invisible without chapters. Disable this to hide the identification string from chapter names.
+
When enabled, readable chapter entries are created alongside native markers (IntroStart, CreditsStart). Recaps and Previews have no native marker support in Emby and will be invisible without chapters. Disable this to hide the identification string from chapter names.
-

Marker protection

+

Marker protection

-
Recommended. Any existing complete or partial native intro marker prevents TheIntroDB from changing that intro pair.
+
Recommended. Any existing complete or partial native intro marker prevents TheIntroDB from changing that intro pair.
-
Recommended. An existing native credits marker remains authoritative.
+
Recommended. An existing native credits marker remains authoritative.
-
Off by default. Only chapters carrying a matching durable TheIntroDB ownership token are removed before updated markers are applied. Native, manual, legacy and third-party chapters remain unchanged.
+
Off by default. Only chapters carrying a matching durable TheIntroDB ownership token are removed before updated markers are applied. Native, manual, legacy and third-party chapters remain unchanged.
-

Scanning behavior

+

Scanning behavior

-
When enabled, items that already have segments are skipped to avoid refetching, until their own segments are due for a refresh.
+
When enabled, items that already have segments are skipped to avoid refetching, until their own segments are due for a refresh.
- + -
Items with segments from TheIntroDB are fetched again after this many days, so corrected submissions arrive. Default 30. 0 never refreshes.
+
Items with segments from TheIntroDB are fetched again after this many days, so corrected submissions arrive. Default 30. 0 never refreshes.
-
When enabled, segments are fetched for newly added items — after their metadata download, and on playback start. Existing segments are kept or refreshed as configured above.
+
When enabled, segments are fetched for newly added items — after their metadata download, and on playback start. Existing segments are kept or refreshed as configured above.
- + -
Bounds large scans: how many API lookups a single run may perform. Default 400. Zero disables API lookups for the task. Large libraries may need more; re-running the scan continues where it left off.
+
Bounds large scans: how many API lookups a single run may perform. Default 400. Zero disables API lookups for the task. Large libraries may need more; re-running the scan continues where it left off.
-

Privacy & logging

+

Privacy & logging

-
When enabled, anonymous usage metrics may be collected to help improve the plugin.
+
When enabled, anonymous usage metrics may be collected to help improve the plugin.
-
When enabled, plugin logs are written to a separate file (data/theintrodb/theintrodb.log) instead of the main Emby log.
+
When enabled, plugin logs are written to a separate file (data/theintrodb/theintrodb.log) instead of the main Emby log.
-

Maintenance

+

Maintenance

- + -
How often the plugin checks items it has segments for and restores TheIntroDB markers that Emby may have overwritten (e.g. when Emby regenerates placeholder chapters for files without embedded chapters). Set to 0 to disable automatic repair.
+
How often the plugin checks items it has segments for and restores TheIntroDB markers that Emby may have overwritten (e.g. when Emby regenerates placeholder chapters for files without embedded chapters). Set to 0 to disable automatic repair.
-

Tip: Emby's library setting "Generate chapters for videos that don't contain embedded chapter information" (Dashboard → Libraries → edit a library) can overwrite TheIntroDB markers on files without embedded chapters. Disabling it there prevents the overwrite entirely.

+

Tip: Emby's library setting "Generate chapters for videos that don't contain embedded chapter information" (Dashboard → Libraries → edit a library) can overwrite TheIntroDB markers on files without embedded chapters. Disabling it there prevents the overwrite entirely.

-

Debug

+

Debug

- + -
Loads stored segments for a specific item from the local DB.
+
Loads stored segments for a specific item from the local DB.

             
@@ -207,23 +207,23 @@

Debug

- -

Choose Libraries

+ +

Choose Libraries

- - + +
- -
Open a library to browse its movies and shows. Inside a library, you can whitelist the whole folder or pick individual movies and shows.
+ +
Open a library to browse its movies and shows. Inside a library, you can whitelist the whole folder or pick individual movies and shows.
- +
-
Loading libraries...
+
Loading libraries...
@@ -231,8 +231,8 @@

Choose Libraries