Answers.Body: <p>You can query for the same entry in another locale by explicitly setting the locale parameter.</p>
  
  <pre><code>{% set de = craft.entries.id(entry.id).locale('de').first() %}
  {% set en = craft.entries.id(entry.id).locale('en').first() %}
  
  German:  {{ de ? 'OK' : 'nope' }}
  English: {{ en ? 'OK' : 'nope' }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-05T16:25:15.030Z
Answers.LastActivityDate: 2016-02-05T16:25:15.030Z
Answers.UserDisplayName: carlcs
Body: <p>I have just one page on my site with only one language:</p>
  
  <p><a href="https://i.sstatic.net/qzWXB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qzWXB.png" alt="enter image description here"></a></p>
  
  <p>Every other page has two languages.</p>
  
  <p>I want to disable certain things on that page (like language switchers). How do I determine this?</p>
  
  <p>This just returns all avalable languages no matter what languages are activated:</p>
  
  <pre><code>{% set otherLocales = craft.i18n.getSiteLocaleIds() %}
    {% for locale in otherLocales %}
      {{ locale }}
    {% endfor %}
  </code></pre>
  
  <p>I tried to do it with status:</p>
  
  <pre><code>{% set otherLocales = craft.i18n.getSiteLocaleIds().status('live') %}
  </code></pre>
  
  <p>but that returns an error as well. I tried <code>status</code> because it's labeled that way in the cp.</p>
  
  <p>This returns the opposite language although the other locale doesn't exist on this page.</p>
  
  <pre><code>{% set otherLocales = craft.i18n.getSiteLocaleIds()|without(craft.locale) %}
  {% for locale in otherLocales %}
    {{ locale }}
  {% endfor %}
  </code></pre>
  
  <p>Any other ideas?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-04T13:57:49.293Z
Comments.Text: Did you try this: http://craftcms.stackexchange.com/questions/2850/show-entry-content-for-other-available-locales?rq=1
Comments.UserDisplayName: pvledoux
Tags: <localization><conditional>
Title: Check if other locale exists
ThreadText: # Check if other locale exists
  
  (Asked by: username_0 on 2016-02-04)
  
  I have just one page on my site with only one language:
  
  [![enter image description here](https://i.sstatic.net/qzWXB.png)](https://i.sstatic.net/qzWXB.png)
  
  Every other page has two languages.
  
  I want to disable certain things on that page (like language switchers). How do I determine this?
  
  This just returns all avalable languages no matter what languages are activated:
  
  ```
  {% set otherLocales = craft.i18n.getSiteLocaleIds() %}
    {% for locale in otherLocales %}
      {{ locale }}
    {% endfor %}
  
  ```
  
  I tried to do it with status:
  
  ```
  {% set otherLocales = craft.i18n.getSiteLocaleIds().status('live') %}
  
  ```
  
  but that returns an error as well. I tried `status` because it's labeled that way in the cp.
  
  This returns the opposite language although the other locale doesn't exist on this page.
  
  ```
  {% set otherLocales = craft.i18n.getSiteLocaleIds()|without(craft.locale) %}
  {% for locale in otherLocales %}
    {{ locale }}
  {% endfor %}
  
  ```
  
  Any other ideas?
  
  **Tags:** localization, conditional
  
  > **Comments:**
  > **username_1**: Did you try this: http://craftcms.stackexchange.com/questions/2850/show-entry-content-for-other-available-locales?rq=1  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-02-05. Score: 3 | Accepted answer
  
  You can query for the same entry in another locale by explicitly setting the locale parameter.
  
  ```
  {% set de = craft.entries.id(entry.id).locale('de').first() %}
  {% set en = craft.entries.id(entry.id).locale('en').first() %}
  
  German:  {{ de ? 'OK' : 'nope' }}
  English: {{ en ? 'OK' : 'nope' }}
  
  ```
  
  
  ---
  
  