# HG changeset patch # User Goffi # Date 1555222180 -7200 # Node ID 7539d98e1d08e9a141017e71dd9fe05846b77433 # Parent 23ba0f7fc205516e1cabe124fb03fefb1142e27c components (menu): disable cache when importing "menu_labels": When using cache, first translation was used whatever locale was used after that. diff -r 23ba0f7fc205 -r 7539d98e1d08 sat_templates/templates/default/components/common.html --- a/sat_templates/templates/default/components/common.html Sun Apr 14 08:09:21 2019 +0200 +++ b/sat_templates/templates/default/components/common.html Sun Apr 14 08:09:40 2019 +0200 @@ -1,4 +1,5 @@ -{% import 'components/menu_labels.html' as ml %} +{% import 'components/menu_labels.html' as ml with context %} +{# we need to use "with context" to disable cache, needed for i18n #} {% macro menu(menus, class='') %}