Skip to content

Commit 9f3f5ba

Browse files
authored
Merge pull request #6753 from galaxyproject/langswitch
Add available translations to the tutorial overview box
2 parents ab902cb + 8f8923f commit 9f3f5ba

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed

_layouts/tutorial_hands_on.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ <h4 class="alert-heading">Under Development!</h4>
100100
{% assign tuto_has_docker = true %}
101101
{% endif %}
102102

103+
{% if page.translations %}
104+
<div><strong>{% icon language aria=false %} {{ locale['translations'] | default: "Translations" }}:</strong> {% for lang in page.translations %}<a href="./tutorial{% if lang != 'en' %}_{{lang | upcase}}{% endif %}.html"> {% icon language aria=false %} {{ site.other_languages[lang] }} </a>{% endfor %}</div>
105+
{% endif %}
106+
103107
{% if own_material.zenodo_link and own_material.zenodo_link != "" %}
104108
{% assign tuto_has_zenodo = true %}
105109
{% endif %}

metadata/lang/de.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ hour: "Stunde"
1212
hours: "Stunden"
1313

1414
level: "Level"
15+
translations: "Übersetzungen"
1516
introductory: "Einsteiger" # oder Einführung
1617
intermediate: "Fortgeschrittene"
1718
advanced: "Profis"

metadata/lang/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ hour: "hour"
1515
hours: "hours"
1616

1717
level: "Level"
18+
translation: "Translations"
1819
introductory: "Introductory"
1920
intermediate: "Intermediate"
2021
advanced: "Advanced"

metadata/lang/es.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ hour: "hora"
1212
hours: "horas"
1313

1414
level: "Nivel"
15+
translations: "Traducciones"
1516
introductory: "Introductorio"
1617
intermediate: "Intermedio"
1718
advanced: "Avanzado"

metadata/lang/fr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ hour: "Heure"
1212
hours: "Heures"
1313

1414
level: "Niveau"
15+
translations: "Traductions"
1516
introductory: "Introduction"
1617
intermediate: "Intermediaire"
1718
advanced: "Avancé"

metadata/lang/it.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ hour: "ora"
1515
hours: "ore"
1616

1717
level: "Livello"
18+
translations: "Traduzioni"
1819
introductory: "Introduttivo"
1920
intermediate: "Intermedio"
2021
advanced: "Avanzato"

0 commit comments

Comments
 (0)