Have the Powers That Be had any thoughts about this? If you want a working example I can give you one easily enough.
Cabot also pointed out that it can be done with a combination of includes and DEFINE, which is in some ways even better. Then the code in overall_header.html just comes down to this (which will fail safe even if all files get lost):And string definitions become...
English:Romana:
Cabot also pointed out that it can be done with a combination of includes and DEFINE, which is in some ways even better. Then the code in overall_header.html just comes down to this (which will fail safe even if all files get lost):
Code:
{{ include(['language/' ~ S_USER_LANG ~ '/styleStrings.twig', 'language/en-gb/styleStrings.twig'], ignore_missing = true) }}English:
Code:
{% DEFINE DUSTMAN= 'My old man\'s a dustman' %}Code:
{% DEFINE DUSTMAN= 'Bătrânul meu e un gunoier' %}Statistics: Posted by Gumboots — Tue Apr 15, 2025 12:19 am