<p>It's the short syntax for the <a href="http://buildwithcraft.com/docs/templating/filters#translate-or-t">translate filter</a>. Set up a translation file as described in <a href="http://buildwithcraft.com/help/static-translations">the docs</a> and the string you apply that filter to is translated according to it.</p>

CC BY-SA 3.0
2014-06-14T09:39:04.923Z
2014-06-14T09:39:04.923Z
carlcs
<p>I found this part of code in the documentation</p>

<pre><code>{% set title = "Cocktail Recipes"|t %}
</code></pre>

<p>What does <code>|t</code> mean there?</p>

CC BY-SA 3.0
2014-09-03T19:34:59.150Z
And I was actually looking for the syntax on how to translate something in a set statement ;) glad I found this!
outline4
<string><localization>
What's that |t - filter for?
# What's that |t - filter for?

(Asked by: username_0 on 2014-06-14)

I found this part of code in the documentation
{% set title = "Cocktail Recipes"|t %}

What does |t mean there?

**Tags:** string, localization
> **Comments:**
> **username_1**: And I was actually looking for the syntax on how to translate something in a set statement ;) glad I found this!  

---

## 1 answers

### Answer by username_2 on 2014-06-14. Score: 10 | Accepted answer

It's the short syntax for the [translate filter](http://buildwithcraft.com/docs/templating/filters#translate-or-t). Set up a translation file as described in [the docs](http://buildwithcraft.com/help/static-translations) and the string you apply that filter to is translated according to it.


---

