Answers.Body: <p>Thx, this is how I used it to get the titles of all events in the current language:</p>
  
  <pre><code>{% set locale = craft.i18n.getCurrentLocale() %}
  {% set events = craft.entries.section('events').level(1).locale(locale) %}
  {% for event in events %}
      &lt;p&gt;{{ event.title }}&lt;/p
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-15T13:18:07.773Z
Answers.LastActivityDate: 2017-06-15T13:18:07.773Z
Answers.UserDisplayName: Pieter-Jan De Bruyne
Answers.Body: <p>You can use the 'locale' and 'id' attributes in your query to request the same entry in another locale.</p>
  
  <pre><code>{{ entry.title }}&lt;br&gt;
  {{ craft.entries.id([entry.id]).locale('nl_nl').first.title }}
  </code></pre>
  
  <p><strong>Update.</strong> If there is any chance that the entry/section is disabled for that locale you can also check it first, like so.</p>
  
  <pre><code>{% set nlEntry = craft.entries.id([entry.id]).locale('nl_nl').first %}
  {% if nlEntry %}
      {{ nlEntry.title }}
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-11T20:09:48.553Z
Answers.Text: Had no idea i could use a twig command like this. It worked like a charm, thanks!
Answers.UserDisplayName: Kitsune
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-12T04:55:29.950Z
Answers.Text: Glad it worked. Btw... I thought I should add — to be safe you might also want to check to make sure the entry is enabled for the other locale. I added an example.
Answers.UserDisplayName: Douglas McDonald
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-11T15:32:37.287Z
Answers.LastActivityDate: 2015-05-12T04:52:37.960Z
Answers.LastEditDate: 2015-05-12T04:52:37.960Z
Answers.UserDisplayName: Douglas McDonald
Body: <p>I'm trying to get the locale title (dutch: nl_nl) of an entry, in the english version of the same post. I want to do this so that on hover it shows the English title's Dutch version.</p>
  
  <p>Any help is appreciated!</p>
  
Tags: <localization>
Title: Get locale entry.title in other languages
ThreadText: # Get locale entry.title in other languages
  
  (Asked by: username_0 on 2015-05-11)
  
  I'm trying to get the locale title (dutch: nl\_nl) of an entry, in the english version of the same post. I want to do this so that on hover it shows the English title's Dutch version.
  
  Any help is appreciated!
  
  **Tags:** localization
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-05-11. Score: 10 | Accepted answer
  
  You can use the 'locale' and 'id' attributes in your query to request the same entry in another locale.
  
  ```
  {{ entry.title }}<br>
  {{ craft.entries.id([entry.id]).locale('nl_nl').first.title }}
  
  ```
  
  **Update.** If there is any chance that the entry/section is disabled for that locale you can also check it first, like so.
  
  ```
  {% set nlEntry = craft.entries.id([entry.id]).locale('nl_nl').first %}
  {% if nlEntry %}
      {{ nlEntry.title }}
  {% endif %}
  
  ```
  
  > **Comments:**
  > **username_0**: Had no idea i could use a twig command like this. It worked like a charm, thanks!  
  > **username_2**: Glad it worked. Btw... I thought I should add — to be safe you might also want to check to make sure the entry is enabled for the other locale. I added an example.  
  
  ---
  
  ### Answer by username_1 on 2017-06-15. Score: 2
  
  Thx, this is how I used it to get the titles of all events in the current language:
  
  ```
  {% set locale = craft.i18n.getCurrentLocale() %}
  {% set events = craft.entries.section('events').level(1).locale(locale) %}
  {% for event in events %}
      <p>{{ event.title }}</p
  {% endfor %}
  
  ```
  
  
  ---
  
  