<p>I think the best way to do this, is by using <code>craft.entries.id().locale()</code> and checking if any entries are returned (not tested):</p>

<pre><code>{% set thisEntryInDifferentLocales = craft.entries.id(thisEntry.id).locale('fr') %}
{% if thisEntryInDifferentLocales | length %}
    {% for localeEntry in thisEntryInDifferentLocales %}
       &lt;a href="{{ localeEntry.url }}"&gt;This entry is also available in {{ localeEntry.locale }}&lt;/a&gt;
    {% endfor %}
{% endif %}
</code></pre>

CC BY-SA 3.0
2014-10-01T09:23:42.610Z
Thanks Paul - great response. Returned an array error in testing. Do you think we need to declare the locales in the first line or can it check for the locales available (live) for that entry?
Dan G
CC BY-SA 3.0
2014-10-01T09:25:17.300Z
Maybe locales can not be requested in an array, but only per locale. I'll edit my response, try again.
Paul
CC BY-SA 3.0
2014-10-01T09:12:08.143Z
2014-10-01T09:25:27.977Z
2014-10-01T09:25:27.977Z
Paul
<p>We need to part translate a site, and by which i mean only certain sections are available in other locales, and only certain Entries in those pages. In order to display these in the front end we simply want to show :</p>

<p>"This entry is also available in French" </p>

<p>at the base of the entry, and link to a special layout (no nav).</p>

<p>Has anyone achieved this - can the locales be called for each entry ?</p>

<p>Thanks
Dan</p>

<localization><language>
Show entry content for other available locales
# Show entry content for other available locales

(Asked by: username_0 on 2014-10-01)

We need to part translate a site, and by which i mean only certain sections are available in other locales, and only certain Entries in those pages. In order to display these in the front end we simply want to show :

"This entry is also available in French"

at the base of the entry, and link to a special layout (no nav).

Has anyone achieved this - can the locales be called for each entry ?

Thanks
Dan

**Tags:** localization, language

---

## 1 answers

### Answer by username_1 on 2014-10-01. Score: 1 | Accepted answer

I think the best way to do this, is by using craft.entries.id().locale() and checking if any entries are returned (not tested):
{% set thisEntryInDifferentLocales = craft.entries.id(thisEntry.id).locale('fr') %}
{% if thisEntryInDifferentLocales | length %}
    {% for localeEntry in thisEntryInDifferentLocales %}
       This entry is also available in {{ localeEntry.locale }}
    {% endfor %}
{% endif %}

> **Comments:**
> **username_0**: Thanks Paul - great response. Returned an array error in testing. Do you think we need to declare the locales in the first line or can it check for the locales available (live) for that entry?  
> **username_1**: Maybe locales can not be requested in an array, but only per locale. I'll edit my response, try again.  

---

