From 8403e30b3abe810d764fc6dc57c0a0386273356e Mon Sep 17 00:00:00 2001 From: Astounds Date: Sun, 5 Apr 2026 17:43:01 -0500 Subject: Many fixes to i18n --- youtube/i18n_strings.py | 29 +++++++++++++++++++++++++++++ youtube/templates/comments.html | 2 +- youtube/templates/settings.html | 12 ++++++------ youtube/templates/watch.html | 16 ++++++++-------- 4 files changed, 44 insertions(+), 15 deletions(-) (limited to 'youtube') diff --git a/youtube/i18n_strings.py b/youtube/i18n_strings.py index 47a13a3..0979f96 100644 --- a/youtube/i18n_strings.py +++ b/youtube/i18n_strings.py @@ -110,3 +110,32 @@ OPTIONS = _l('Options') SETTINGS = _l('Settings') ERROR = _l('Error') LOADING = _l('loading...') + +# Settings option values +TOP = _l('Top') +NEWEST = _l('Newest') +AUTO = _l('Auto') +ENGLISH = _l('English') +ESPANOL = _l('EspaƱol') + +# Playback options +AUTO_HLS_PREFERRED = _l('Auto (HLS preferred)') +FORCE_HLS = _l('Force HLS') +FORCE_DASH = _l('Force DASH') +RANKING_1 = _l('#1') +RANKING_2 = _l('#2') +RANKING_3 = _l('#3') + +# Form actions +SAVE_SETTINGS = _l('Save settings') + +# Other category +OTHER = _l('Other') + +# Settings labels +PLAYBACK_MODE = _l('Playback mode') + +# Subscription settings (may be used in future) +AUTOCHECK_SUBSCRIPTIONS = _l('Autocheck subscriptions') +INCLUDE_SHORTS_SUBSCRIPTIONS = _l('Include shorts in subscriptions') +INCLUDE_SHORTS_CHANNEL = _l('Include shorts in channel') diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index 4728a0a..dac0d23 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -58,7 +58,7 @@ {% endfor %} {% if 'more_comments_url' is in comments_info %} - More comments + {{ _('More comments') }} {% endif %} {% endif %} diff --git a/youtube/templates/settings.html b/youtube/templates/settings.html index a5bb1e4..940eeae 100644 --- a/youtube/templates/settings.html +++ b/youtube/templates/settings.html @@ -7,15 +7,15 @@ {% block main %}
{% for categ in categories %} -

{{ categ|capitalize }}

+

{{ _(categ|capitalize) }}

{% endfor %} - +
{% endblock main %} diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 2a6c823..fe12d18 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -97,11 +97,11 @@ - Direct Link + {{ _('Direct Link') }} {% if settings.use_video_download != 0 %}
- Download + {{ _('Download') }}