summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--locales/eo.json2
-rw-r--r--locales/hr.json2
-rw-r--r--locales/id.json12
-rw-r--r--locales/ja.json34
-rw-r--r--locales/tr.json2
-rw-r--r--locales/zh-TW.json2
-rw-r--r--shard.lock2
-rw-r--r--shard.yml2
-rw-r--r--src/invidious/routes/preferences.cr5
-rw-r--r--src/invidious/views/template.ecr2
10 files changed, 35 insertions, 30 deletions
diff --git a/locales/eo.json b/locales/eo.json
index b879a311..27ad34d2 100644
--- a/locales/eo.json
+++ b/locales/eo.json
@@ -78,7 +78,7 @@
"Show related videos: ": "Ĉu montri rilatajn filmetojn? ",
"Show annotations by default: ": "Ĉu montri prinotojn defaŭlte? ",
"Automatically extend video description: ": "Aŭtomate etendi priskribon de filmeto: ",
- "Interactive 360 degree videos: ": "",
+ "Interactive 360 degree videos: ": "Interagaj 360-gradaj filmetoj: ",
"Visual preferences": "Vidaj preferoj",
"Player style: ": "Ludila stilo: ",
"Dark mode: ": "Malhela reĝimo: ",
diff --git a/locales/hr.json b/locales/hr.json
index e0eb591e..744c4d0e 100644
--- a/locales/hr.json
+++ b/locales/hr.json
@@ -78,7 +78,7 @@
"Show related videos: ": "Prikaži povezana videa: ",
"Show annotations by default: ": "Standardno prikaži napomene: ",
"Automatically extend video description: ": "Automatski proširi opis videa: ",
- "Interactive 360 degree videos: ": "",
+ "Interactive 360 degree videos: ": "Interaktivna videa od 360 stupnjeva: ",
"Visual preferences": "Postavke prikaza",
"Player style: ": "Stil playera: ",
"Dark mode: ": "Tamni modus: ",
diff --git a/locales/id.json b/locales/id.json
index ee1dea1a..fe593f41 100644
--- a/locales/id.json
+++ b/locales/id.json
@@ -77,8 +77,8 @@
"Fallback captions: ": "Subtitel fallback: ",
"Show related videos: ": "Tampilkan video terkait: ",
"Show annotations by default: ": "Tampilkan anotasi secara default: ",
- "Automatically extend video description: ": "",
- "Interactive 360 degree videos: ": "",
+ "Automatically extend video description: ": "Luaskan keterangan video secara matis: ",
+ "Interactive 360 degree videos: ": "Video interaktif 360°: ",
"Visual preferences": "Preferensi visual",
"Player style: ": "Gaya pemutar: ",
"Dark mode: ": "Mode gelap: ",
@@ -158,8 +158,8 @@
"Title": "Judul",
"Playlist privacy": "Privasi daftar putar",
"Editing playlist `x`": "Menyunting daftar putar `x`",
- "Show more": "",
- "Show less": "",
+ "Show more": "Tampil lebih",
+ "Show less": "Tampil kurang",
"Watch on YouTube": "Tonton di YouTube",
"Hide annotations": "Sembunyikan anotasi",
"Show annotations": "Tampilkan anotasi",
@@ -363,7 +363,7 @@
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` detik.([^.,0-9]|^)1([^.,0-9]|$)",
"": "`x` detik."
},
- "Fallback comments: ": "",
+ "Fallback comments: ": "Komentar ganti: ",
"Popular": "Populer",
"Search": "Cari",
"Top": "Teratas",
@@ -416,4 +416,4 @@
"hdr": "hdr",
"filter": "saring",
"Current version: ": "Versi saat ini: "
-} \ No newline at end of file
+}
diff --git a/locales/ja.json b/locales/ja.json
index 0b96e47a..41d727db 100644
--- a/locales/ja.json
+++ b/locales/ja.json
@@ -78,7 +78,7 @@
"Show related videos: ": "関連動画を表示: ",
"Show annotations by default: ": "デフォルトでアノテーションを表示: ",
"Automatically extend video description: ": "動画の説明文を自動的に拡張: ",
- "Interactive 360 degree videos: ": "",
+ "Interactive 360 degree videos: ": "インタラクティブ360°動画: ",
"Visual preferences": "外観設定",
"Player style: ": "プレイヤースタイル: ",
"Dark mode: ": "ダークモード: ",
@@ -390,30 +390,30 @@
"Community": "コミュニティ",
"relevance": "関連",
"rating": "評価",
- "date": "",
- "views": "",
+ "date": "時刻",
+ "views": "再生回数",
"content_type": "コンテンツの種類",
- "duration": "",
- "features": "",
+ "duration": "再生時間",
+ "features": "機能",
"sort": "",
"hour": "",
"today": "",
"week": "",
"month": "",
"year": "",
- "video": "",
- "channel": "",
+ "video": "動画",
+ "channel": "チャンネル",
"playlist": "再生リスト",
- "movie": "",
- "show": "",
- "hd": "",
- "subtitles": "",
- "creative_commons": "",
- "3d": "",
- "live": "",
- "4k": "",
+ "movie": "映画",
+ "show": "番組",
+ "hd": "HD",
+ "subtitles": "字幕",
+ "creative_commons": "クリエイティブ・コモンズ",
+ "3d": "3D",
+ "live": "生配信",
+ "4k": "4K",
"location": "",
- "hdr": "",
- "filter": "",
+ "hdr": "HDR",
+ "filter": "フィルタ",
"Current version: ": "現在のバージョン: "
}
diff --git a/locales/tr.json b/locales/tr.json
index f2086676..8b69a6d0 100644
--- a/locales/tr.json
+++ b/locales/tr.json
@@ -78,7 +78,7 @@
"Show related videos: ": "İlgili videoları göster: ",
"Show annotations by default: ": "Öntanımlı olarak ek açıklamaları göster: ",
"Automatically extend video description: ": "Video açıklamasını otomatik olarak genişlet: ",
- "Interactive 360 degree videos: ": "",
+ "Interactive 360 degree videos: ": "Etkileşimli 360 derece videolar: ",
"Visual preferences": "Görsel tercihler",
"Player style: ": "Oynatıcı biçimi: ",
"Dark mode: ": "Karanlık mod: ",
diff --git a/locales/zh-TW.json b/locales/zh-TW.json
index 8ad645ed..085ffa30 100644
--- a/locales/zh-TW.json
+++ b/locales/zh-TW.json
@@ -78,7 +78,7 @@
"Show related videos: ": "顯示相關的影片: ",
"Show annotations by default: ": "預設顯示註釋: ",
"Automatically extend video description: ": "自動展開影片描述: ",
- "Interactive 360 degree videos: ": "",
+ "Interactive 360 degree videos: ": "互動式 360 度影片: ",
"Visual preferences": "視覺偏好設定",
"Player style: ": "播放器樣式: ",
"Dark mode: ": "深色模式: ",
diff --git a/shard.lock b/shard.lock
index a9074b32..5ed730b8 100644
--- a/shard.lock
+++ b/shard.lock
@@ -29,7 +29,7 @@ shards:
version: 0.2.3
protodec:
- git: https://github.com/omarroth/protodec.git
+ git: https://github.com/iv-org/protodec.git
version: 0.1.3
radix:
diff --git a/shard.yml b/shard.yml
index 42eda04c..a15b3ea5 100644
--- a/shard.yml
+++ b/shard.yml
@@ -23,7 +23,7 @@ dependencies:
github: ysbaddaden/pool
version: ~> 0.2.3
protodec:
- github: omarroth/protodec
+ github: iv-org/protodec
version: ~> 0.1.3
lsquic:
github: iv-org/lsquic.cr
diff --git a/src/invidious/routes/preferences.cr b/src/invidious/routes/preferences.cr
index 815c1c70..cfdad443 100644
--- a/src/invidious/routes/preferences.cr
+++ b/src/invidious/routes/preferences.cr
@@ -60,6 +60,10 @@ class Invidious::Routes::PreferencesRoute < Invidious::Routes::BaseRoute
volume = env.params.body["volume"]?.try &.as(String).to_i?
volume ||= CONFIG.default_user_preferences.volume
+ extend_desc = env.params.body["extend_desc"]?.try &.as(String)
+ extend_desc ||= "off"
+ extend_desc = extend_desc == "on"
+
vr_mode = env.params.body["vr_mode"]?.try &.as(String)
vr_mode ||= "off"
vr_mode = vr_mode == "on"
@@ -144,6 +148,7 @@ class Invidious::Routes::PreferencesRoute < Invidious::Routes::BaseRoute
unseen_only: unseen_only,
video_loop: video_loop,
volume: volume,
+ extend_desc: extend_desc,
vr_mode: vr_mode,
}.to_json).to_json
diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr
index 5b63bf1f..a13d3928 100644
--- a/src/invidious/views/template.ecr
+++ b/src/invidious/views/template.ecr
@@ -26,7 +26,7 @@
<span style="display:none" id="dark_mode_pref"><%= env.get("preferences").as(Preferences).dark_mode %></span>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-2-24"></div>
- <div class="pure-u-1 pure-u-md-20-24", id="contents">
+ <div class="pure-u-1 pure-u-md-20-24" id="contents">
<div class="pure-g navbar h-box">
<% if navbar_search %>
<div class="pure-u-1 pure-u-md-4-24">