<p>The craft path should be 1 level deeper like that '../../craft' instead of '../craft'. This is what was causing it, but I had to reconfigure the locales from <code>fr_fr</code> to <code>fr</code>. It didn't work in original way.</p>

CC BY-SA 3.0
2015-11-29T18:18:49.640Z
2015-11-29T18:18:49.640Z
Dominik Krulak
<p>The site has 5 locales targeting <code>'en_gb', 'fr_fr', 'de_de', 'it_it', 'es_es'</code>. 
When I'm at <code>site.com</code> it gets current locale correctly <code>en_gb</code>. When I visit <code>site.com/fr/</code> locale, It loads blank page with current locale <code>en_gb</code>. The same scenario repeats for all locales, except the top level local <code>en_gb</code>.</p>

<p>I went through my settings multiple times, but I still wasn't able to find a problem.</p>

<p>My <code>general.php</code> settings:</p>

<pre><code>return array(   

// Local environment
'site.craft.dev' =&gt; array(
    'devMode' =&gt; true,
    'environmentVariables' =&gt; array(
        'sitePath' =&gt; '/OS/Applications/MAMP/sites/site.craft.dev/public/',
        'siteUrl' =&gt; 'http://site.craft.dev/'
        ),
    'siteUrl' =&gt;  array(
        'en_gb' =&gt; 'http://site.craft.dev/',
        'fr_fr' =&gt; 'http://site.craft.dev/fr/',
        'de_de' =&gt; 'http://site.craft.dev/de/',
        'it_it' =&gt; 'http://site.craft.dev/it/',
        'es_es' =&gt; 'http://site.craft.dev/es/',
        ),
    )
);
</code></pre>

<p>Public folders are structured  and set according to <a href="http://buildwithcraft.com/docs/localization-guide#step-5-set-up-the-files" rel="nofollow">documentation</a>, named after locale's handles like that: <code>fr_fr</code>, <code>de_de</code> etc.</p>

<p>and with <code>$craftPath</code> variable set to necessary <code>handle</code> like <code>fr_fr</code>, <code>de_de</code> etc.</p>

<p>When I visit site.craft.dev/fr/ and ask for current locale by <code>{{ craft.i18n.getCurrentLocale() }}</code>, it gives me default locale <code>en_gb</code>.</p>

CC BY-SA 3.0
2015-11-08T00:01:53.810Z
Have you set CRAFT_LOCALE in your index.php? `define('CRAFT_LOCALE', 'fr_fr');` for the French one.
Marion Newlevant
CC BY-SA 3.0
2015-11-08T00:07:17.240Z
Yes I have for all the locales.
Dominik Krulak
CC BY-SA 3.0
2015-11-08T01:17:35.510Z
.htaccess for each locale?
carlcs
CC BY-SA 3.0
2015-11-08T08:30:04.343Z
@carlcs .htaccess for each locale
Dominik Krulak
CC BY-SA 3.0
2015-11-08T22:51:09.693Z
Same content != no content. What do you see?
carlcs
<localization>
Visiting any locale gives the same locale output
# Visiting any locale gives the same locale output

(Asked by: username_0 on 2015-11-07)

The site has 5 locales targeting 'en_gb', 'fr_fr', 'de_de', 'it_it', 'es_es'. 
When I'm at site.com it gets current locale correctly en_gb. When I visit site.com/fr/ locale, It loads blank page with current locale en_gb. The same scenario repeats for all locales, except the top level local en_gb.
I went through my settings multiple times, but I still wasn't able to find a problem.
My general.php settings:
return array(   

// Local environment
'site.craft.dev' => array(
    'devMode' => true,
    'environmentVariables' => array(
        'sitePath' => '/OS/Applications/MAMP/sites/site.craft.dev/public/',
        'siteUrl' => 'http://site.craft.dev/'
        ),
    'siteUrl' =>  array(
        'en_gb' => 'http://site.craft.dev/',
        'fr_fr' => 'http://site.craft.dev/fr/',
        'de_de' => 'http://site.craft.dev/de/',
        'it_it' => 'http://site.craft.dev/it/',
        'es_es' => 'http://site.craft.dev/es/',
        ),
    )
);

Public folders are structured  and set according to documentation, named after locale's handles like that: fr_fr, de_de etc.
and with $craftPath variable set to necessary handle like fr_fr, de_de etc.
When I visit site.craft.dev/fr/ and ask for current locale by {{ craft.i18n.getCurrentLocale() }}, it gives me default locale en_gb.

**Tags:** localization
> **Comments:**
> **username_1**: Have you set CRAFT_LOCALE in your index.php? `define('CRAFT_LOCALE', 'fr_fr');` for the French one.  
> **username_0**: Yes I have for all the locales.  
> **username_2**: .htaccess for each locale?  
> **username_0**: @carlcs .htaccess for each locale  
> **username_2**: Same content != no content. What do you see?  

---

## 1 answers

### Answer by username_0 on 2015-11-29. Score: 2 | Accepted answer

The craft path should be 1 level deeper like that '../../craft' instead of '../craft'. This is what was causing it, but I had to reconfigure the locales from `fr_fr` to `fr`. It didn't work in original way.


---

