From 4be395a2751282b135aa653425939a98eb47346c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Be=CC=81tin?= Date: Tue, 25 Jun 2024 11:59:39 +0200 Subject: [PATCH] =?UTF-8?q?Video=20Card=20Component=20=E2=80=93=20Fix=20th?= =?UTF-8?q?e=20lang=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _components/video-card.md | 4 ++-- _includes/video-card.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_components/video-card.md b/_components/video-card.md index 4f72137..1f9202b 100644 --- a/_components/video-card.md +++ b/_components/video-card.md @@ -58,7 +58,7 @@ It is possible to concatenate multiple sets of those subtitles using commas. See {% include video-card.html video-url="//media.w3.org/wai/evaluation-intros/conformance-evaluation.mp4" - captions="//media.w3.org/wai/evaluation-intros/conformance-evaluation-cc.srt|en" + captions="/wai-videos/evaluating/conformance-evaluation.en.vtt|en|default" accessible-version="https://www.w3.org/WAI/test-evaluate/conformance/" accessible-version-label="Video: Conformance Evaluation" -%} \ No newline at end of file +%} diff --git a/_includes/video-card.html b/_includes/video-card.html index 0f17d45..f859688 100644 --- a/_includes/video-card.html +++ b/_includes/video-card.html @@ -6,6 +6,7 @@ {% endif %} {%- assign captions = include.captions | split: ',' -%} + {%- assign langs = site.data.lang -%} {%- for caption in captions -%} {%- assign c = caption | split: '|' -%} {%- assign clangcode = c[1] -%}