Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Tintamarre skeleton/theme

Solved by Ole Vik View solution

Started by tony 8 years ago · 2 replies · 753 views
8 years ago

I am studying the Tintamarre skeleton and I have one question regarding partials/navigation.html.twig. The designer makes references to menu items using uppercase followed by the t filter: {{ "MENU_HOME"|t }}. I could not find any reference in Google , the grav or Twig documentations. Can someone tell me the following:

  1. Where is MENU_HOME declared or defined? This question also applies to the other menu items.
  2. What does the "t" filter do? Not referenced in Twig doc.

Thank you in advance.

8 years ago Solution

The |t-filter is a Grav-filter for translating a string, and MENU_HOME refers to the translation in languages.yaml.

8 years ago

Thank you Olevik. Your answer was spot on

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago