<p>If found the issue.</p>

<p>I didn't specify <code>define('CRAFT_LOCALE', 'de');</code> in the root <code>index.php</code>.</p>

<p>It doesnt suffice to create <code>en</code> <code>fr</code> folders and specify <code>define('CRAFT_LOCALE', 'xx');</code> there.</p>

CC BY-SA 3.0
2015-09-10T07:58:04.307Z
I'll leave it as an answer because this is so easy to miss.
KSPR
CC BY-SA 3.0
2015-09-10T07:57:21.500Z
2015-09-10T07:57:21.500Z
KSPR
<p>I have a super strange problem.</p>

<p>I've created three locales: <code>de</code> <code>fr</code> <code>en</code></p>

<p>I've set up all the necessary steps for a multi language config and everything works fine.</p>

<p>Except in the <code>en</code> locale I get a <code>Variable "xyz" does not exist</code>.</p>

<p><code>de</code> and <code>fr</code> work just fine but english does not.</p>

<p>The variable is a <code>global field</code>. If I strip my templates from all <code>globals</code> it's working fine.</p>

<p>Otherwise each and every global field throws the <code>Variable does not exist</code> error in the <code>en</code> locale. How is that even possible when the other locales work just fine?</p>

<p>I' cant access the <code>en</code> <code>globals</code> in the control panel. Error: url not found. I guess this is a routing problem.</p>

<localization>
Variable doesn't exist in one locale
# Variable doesn't exist in one locale

(Asked by: username_0 on 2015-09-10)

I have a super strange problem.

I've created three locales: `de` `fr` `en`

I've set up all the necessary steps for a multi language config and everything works fine.

Except in the `en` locale I get a `Variable "xyz" does not exist`.

`de` and `fr` work just fine but english does not.

The variable is a `global field`. If I strip my templates from all `globals` it's working fine.

Otherwise each and every global field throws the `Variable does not exist` error in the `en` locale. How is that even possible when the other locales work just fine?

I' cant access the `en` `globals` in the control panel. Error: url not found. I guess this is a routing problem.

**Tags:** localization

---

## 1 answers

### Answer by username_0 on 2015-09-10. Score: 2

If found the issue.

I didn't specify `define('CRAFT_LOCALE', 'de');` in the root `index.php`.

It doesnt suffice to create `en` `fr` folders and specify `define('CRAFT_LOCALE', 'xx');` there.

> **Comments:**
> **username_0**: I'll leave it as an answer because this is so easy to miss.  

---

