Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Tintamarre skeleton/theme

Solved by Ole Vik View solution

Started by tony 8 years ago · 2 replies · 670 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 Andy Miller, 7 days ago
0 114 7 days ago
General · by lynbor, 1 month ago
3 443 2 weeks ago
General · by lynbor, 3 weeks ago
7 562 2 weeks ago
General · by Harry, 2 weeks ago
0 162 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 4 weeks ago