fix(i18n): use get_translated_description() in platform base template
All checks were successful
All checks were successful
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:
@@ -10,7 +10,7 @@
|
|||||||
<title>{% block title %}{{ platform.name if platform else 'Wizard' }}{% endblock %}</title>
|
<title>{% block title %}{{ platform.name if platform else 'Wizard' }}{% endblock %}</title>
|
||||||
|
|
||||||
{# SEO Meta Tags #}
|
{# 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 %}">
|
<meta name="keywords" content="{% block meta_keywords %}letzshop, order management, oms, luxembourg, e-commerce, invoicing, inventory{% endblock %}">
|
||||||
|
|
||||||
{# Favicon #}
|
{# Favicon #}
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-gray-600 dark:text-gray-400 text-sm max-w-md">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user