Skip to content

Commit

Permalink
Add WCAG-EM Report Tool in All WAI Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
remibetin committed Dec 6, 2023
1 parent 4aca71f commit 4ae7f02
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,29 @@ inline_css: |
margin-block-end: 1em;
}
other_resources:
- lang: "fr"
docs:
- title: "Outil de rapport WCAG-EM"
en_title: "WCAG-EM Report Tool"
url: https://www.w3.org/WAI/eval/report-tool/
translators:
- name: "Alexandre Massot"
org: "République et canton de Genève"
- name: "Mark Thiebaut"
org: "République et canton de Genève"
- name: "Yves Dubois-Pèlerin"
org: "République et canton de Genève"
- name: "Eric Porlier"
contributors:
- name: "Julien Conti"
org: "République et canton de Genève"
- name: "Dimitri Zaslavsky"
org: "République et canton de Genève"
- name: "Audrey Maniez"
org: "Access 42"
- name: "Rémi Bétin"

translated_standards:
- lang: "ar"
docs:
Expand Down Expand Up @@ -279,7 +302,12 @@ _Languages are listed alphabetically by language code. For example, "Chinese" is
{%- endfor -%}
{% assign lang4 = lang4 | split: ',' %}

{% assign langs = lang4 | concat: lang3 | concat: lang2 | concat: lang1 | uniq | sort %}
{% for lang-others in page.other_resources %}
{%- if forloop.first %}{% assign lang5 = lang-others.lang %}{%else%}{% assign lang5 = lang5 | append: "," | append: lang-others.lang %}{% endif -%}
{% endfor %}
{% assign lang5 = lang5 | split: "," %}

{% assign langs = lang5 | concat: lang4 | concat: lang3 | concat: lang2 | concat: lang1 | uniq | sort %}

{%- for l in langs -%}
{% if l %}
Expand Down Expand Up @@ -328,6 +356,23 @@ _Languages are listed alphabetically by language code. For example, "Chinese" is
{% endif %}
{% endfor %}

{% assign other_resources = page.other_resources | where: "lang", l %}

{% for resource in other_resources.first.docs %}
<div>
<dt><a href="{{resource.url}}"{%if resource.title %}>{{ resource.title }}{% else %} lang="en">{{resource.en_title}}{%endif%}{% if resource.type == "external" %} {% include_cached external.html lang=l %}{% endif %}</a></dt>
{%- if resource.translators -%}
<dd>
{% include_cached peoplelist.html label=translatorslabel people=resource.translators %}
{% include_cached peoplelist.html label=contributorslabel people=resource.contributors %}
</dd>
{%- endif -%}
<dd lang="en">
English title: <i>{{resource.en_title}}</i>
</dd>
</div>
{% endfor %}

{% assign stds = page.translated_standards | where: "lang", l %}

{% for std in stds.first.docs %}
Expand Down

0 comments on commit 4ae7f02

Please sign in to comment.