Add option to override user profile settings for audio & subtitle languages (#1680)

## Description
Adds settings under the "User profile settings" section which allows for
specifying preferred languages for audio and subtitles and the preferred
subtitle mode.

By default (matching existing Wholphin behavior), the preferred
languages and subtitle mode are derived from the user's profile settings
provided by the server which can be set on the WebUI:
User->Settings->Playback or Subtitles. However, this isn't well
understood and Wholphin doesn't display these values anywhere, so many
users were confused.

The preferred languages and subtitle mode can now be configured from
within Wholphin. Setting these will **not** update the server. The
settings are **only** used locally.

### Related issues
Related to #319
Closes #790

### Testing
Emulator manually changing some settings, added additional unit tests to
ensure the overrides are respected when choosing tracks

## Screenshots
### Settings page
<img width="1280" height="720" alt="settings_01 Large"
src="https://github.com/user-attachments/assets/28cc2f6b-3a60-42a4-b268-48695086d566"
/>

### Clicking into "More user profile settings"
<img width="1280" height="720" alt="settings_02 Large"
src="https://github.com/user-attachments/assets/6c3be3aa-c177-4d44-8060-b76d15fb10d7"
/>

### Language choice dialog

Can filter languages by typing in the search box at the top

<img width="1280" height="720" alt="settings_03 Large"
src="https://github.com/user-attachments/assets/c014d0ba-8d5b-4201-a6ee-4876b478148c"
/>


## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-07-14 14:17:31 -04:00 • committed by GitHub
parent 077b7e4570
commit 3f60fa7550
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 1751 additions and 48 deletions

View file

@ -95,6 +95,7 @@
<string name="playlists">Playlists</string>
<string name="preview">Preview</string>
<string name="profile_specific_settings">User Profile Settings</string>
<string name="profile_specific_settings_from_server">User profile settings from server</string>
<string name="queue">Queue</string>
<string name="recap">Recap</string>
<string name="recently_added_in">Recently added in %1$s</string>
@ -844,4 +845,27 @@
<string name="video_tunneling">Video tunneling</string>
<string name="blocklisted">Blocklisted</string>
<string name="unavailable">Unavailable</string>
<string name="subtitle_mode">Subtitle mode</string>
<string name="use_user_profile">Use your profile setting</string>
<string name="subtitle_mode_default">Default</string>
<string name="subtitle_mode_smart">Smart</string>
<string name="subtitle_mode_only_forced">Only Forced</string>
<string name="subtitle_mode_always">Always</string>
<string name="subtitle_mode_none">None</string>
<string-array name="subtitle_mode_options">
<item>@string/use_user_profile</item>
<item>@string/subtitle_mode_default</item>
<item>@string/subtitle_mode_smart</item>
<item>@string/subtitle_mode_only_forced</item>
<item>@string/subtitle_mode_always</item>
<item>@string/subtitle_mode_none</item>
</string-array>
<string name="preferred_subtitle_language">Preferred subtitle language</string>
<string name="preferred_audio_language">Preferred audio language</string>
<string name="override_user_profile_settings">More user profile settings</string>
<string name="override_user_profile_settings_summary">Override your user profile settings from the server</string>
<string name="any_language">Any language</string>
</resources>