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

Tintamarre skeleton/theme

Solved by Ole Vik View solution

Started by tony 8 years ago · 2 replies · 603 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 jean-louis67, 3 weeks ago
2 318 3 weeks ago
General · by Andy Miller, 4 weeks ago
0 314 4 weeks ago
General · by Veehem, 4 weeks ago
0 267 4 weeks ago
General · by milkboy, 4 weeks ago
0 271 4 weeks ago
General · by ian russell, 1 month ago
2 340 1 month ago