fix(i18n): use get_translated_description() in platform base template
All checks were successful
CI / ruff (push) Successful in 11s
CI / pytest (push) Successful in 49m46s
CI / validate (push) Successful in 25s
CI / dependency-scanning (push) Successful in 28s
CI / docs (push) Successful in 42s
CI / deploy (push) Successful in 55s

The footer and meta description tag used platform.description (raw column)
instead of platform.get_translated_description(), so DE and LB translations
were never displayed. FR/EN appeared to work because the base description
field was synced from the default language on admin save.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 19:50:14 +01:00
parent a099bfdc48
commit fa758b7e31

View File

@@ -10,7 +10,7 @@
<title>{% block title %}{{ platform.name if platform else 'Wizard' }}{% endblock %}</title>
{# SEO Meta Tags #}
<meta name="description" content="{% block meta_description %}{{ platform.description if platform else '' }}{% endblock %}">
<meta name="description" content="{% block meta_description %}{{ platform.get_translated_description(current_language|default('fr'), platform.default_language|default('fr')) if platform else '' }}{% endblock %}">
<meta name="keywords" content="{% block meta_keywords %}letzshop, order management, oms, luxembourg, e-commerce, invoicing, inventory{% endblock %}">
{# Favicon #}
@@ -182,7 +182,7 @@
</span>
</div>
<p class="text-gray-600 dark:text-gray-400 text-sm max-w-md">
{{ platform.description if platform else '' }}
{{ platform.get_translated_description(current_language|default('fr'), platform.default_language|default('fr')) if platform else '' }}
</p>
</div>