From 73c67fa465fefa43f8172ad49894ac5aa39b1f6b Mon Sep 17 00:00:00 2001 From: Kun Fang Date: Thu, 18 Jul 2024 10:34:18 -0400 Subject: [PATCH] feat: support English and French in detail page Refs: #120 --- .../templates/instruments/detail.html | 96 ++++++++++++++----- 1 file changed, 73 insertions(+), 23 deletions(-) diff --git a/web-app/django/VIM/apps/instruments/templates/instruments/detail.html b/web-app/django/VIM/apps/instruments/templates/instruments/detail.html index 2f32226..e15330b 100644 --- a/web-app/django/VIM/apps/instruments/templates/instruments/detail.html +++ b/web-app/django/VIM/apps/instruments/templates/instruments/detail.html @@ -26,7 +26,11 @@

- + {% if active_language.en_label == "french" %} + + {% else %} + + {% endif %} - + {% if active_language.en_label == "french" %} + + {% else %} + + {% endif %} - + {% if active_language.en_label == "french" %} + + {% else %} + + {% endif %} - + {% if active_language.en_label == "french" %} + + {% else %} + + {% endif %}
Wikidata IDIdentifiant WikidataWikidata ID
@@ -38,7 +42,11 @@

Hornbostel-Sachs ClassificationClassification Hornbostel-SachsHornbostel-Sachs Classification
@@ -48,7 +56,11 @@

MIMO ClassificationClassification MIMOMIMO Classification
@@ -60,20 +72,36 @@

Instrument Names in Different LanguagesNoms des Instruments dans Différentes LanguesInstrument Names in Different Languages - - - + {% if active_language.en_label == "french" %} + + + + {% else %} + + + + {% endif %} @@ -88,9 +116,15 @@

value="{{ instrumentname.language.en_label }}" />
- - - + {% if active_language.en_label == "french" %} + + + + {% else %} + + + + {% endif %}
@@ -101,9 +135,15 @@

- - - + {% if active_language.en_label == "french" %} + + + + {% else %} + + + + {% endif %}
@@ -116,9 +156,15 @@

value="{{ instrumentname.source_name }}" />
- - - + {% if active_language.en_label == "french" %} + + + + {% else %} + + + + {% endif %}
@@ -137,7 +183,11 @@

alt="{{ instrument.default_image.url }}" class="figure-img img-fluid rounded instrument-image" />
- View image in full size + {% if active_language.en_label == "french" %} + Afficher l'image en taille réelle + {% else %} + View image in full size + {% endif %}

- Language - - Name - - Source - + Langue + + Nom + + Source + + Language + + Name + + Source +