<p>It's a bit awkward, but you're understanding is correct.  My guess is you probably need to add a <code>.status(null)</code> to take into account the elements global status as well.  <code>localeEnabled</code>, by itself, just checks the element's locale status.</p>

CC BY-SA 3.0
2017-04-04T20:08:20.073Z
That works idd! So if I understand correctly, the localeEnabled only checks if the entry is enabled for the current locale? So if it would be disabled for Spanish, with localeEnabled(false) it would also show the entry on the Spanish site?
Tom De Smet
CC BY-SA 3.0
2017-04-04T21:13:04.947Z
@TomDeSmet Yessir.
Brad Bell
CC BY-SA 3.0
2017-04-04T18:31:55.713Z
2017-04-04T18:31:55.713Z
Brad Bell
<p><code>localeEnabled(false)</code> does not seem to do anything or I'm misunderstanding its use.</p>

<p>I'm on Craft 2.6 and have this code: </p>

<p><code>{% for region in Craft.entries.section('handle').level(1).localeEnabled(false) %}</code></p>

<p>This section is a structure with 3 top level categories which are enabled or disabled for certain languages.<br>
If I'm viewing the site in the Spanish locale for example, I'm only seeing the entries that have Spanish enabled, because they're automatically filtered by Craft to my current Locale as is how Craft works.</p>

<p>So I thought, <code>localeEnabled(false)</code> would get all of the entries in all locales.<br>
But unfortunately, it doesn't work...</p>

<p>Is this a bug or do I misunderstand the function of that command? The explanation in the <a href="https://craftcms.com/docs/templating/craft.entries#localeEnabled" rel="nofollow noreferrer">docs</a> really read as if my understanding of the function is correct.</p>

<entries><localization>
Use of localeEnabled(): bug or misunderstanding?
# Use of localeEnabled(): bug or misunderstanding?

(Asked by: username_0 on 2017-04-04)

`localeEnabled(false)` does not seem to do anything or I'm misunderstanding its use.

I'm on Craft 2.6 and have this code:

`{% for region in Craft.entries.section('handle').level(1).localeEnabled(false) %}`

This section is a structure with 3 top level categories which are enabled or disabled for certain languages.  
If I'm viewing the site in the Spanish locale for example, I'm only seeing the entries that have Spanish enabled, because they're automatically filtered by Craft to my current Locale as is how Craft works.

So I thought, `localeEnabled(false)` would get all of the entries in all locales.  
But unfortunately, it doesn't work...

Is this a bug or do I misunderstand the function of that command? The explanation in the [docs](https://craftcms.com/docs/templating/craft.entries#localeEnabled) really read as if my understanding of the function is correct.

**Tags:** entries, localization


---

## 1 answers

### Answer by username_1 on 2017-04-04. Score: 1 | Accepted answer

It's a bit awkward, but you're understanding is correct. My guess is you probably need to add a `.status(null)` to take into account the elements global status as well. `localeEnabled`, by itself, just checks the element's locale status.

> **Comments:**
> **username_0**: That works idd! So if I understand correctly, the localeEnabled only checks if the entry is enabled for the current locale? So if it would be disabled for Spanish, with localeEnabled(false) it would also show the entry on the Spanish site?  
> **username_1**: @TomDeSmet Yessir.  

---

