Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Tintamarre skeleton/theme

Solved by Ole Vik View solution

Started by tony 8 years ago · 2 replies · 503 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 Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago