Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-14T09:39:04.923Z
Answers.LastActivityDate: 2014-06-14T09:39:04.923Z
Answers.UserDisplayName: carlcs
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-03T19:34:59.150Z
Comments.Text: And I was actually looking for the syntax on how to translate something in a set statement ;) glad I found this!
Comments.UserDisplayName: outline4
Tags: <string><localization>
Title: What's that |t - filter for?
ThreadText: # 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.
  
  
  ---
  
  