ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

multilanguage site and "language_code" global variable

April 14, 2013 9:24am

Subscribe [1]
  • #1 / Apr 14, 2013 9:24am

    Fedor

    41 posts

    Hello,
    I’m try to build a multilanguage website in ee following this guide http://www.sidd3.com/multi-language-website-with-expressionengine/

    I added the following code as written in the guide, at the and of index.php. So, in “en/index.php” , i have

    $assign_to_config['global_vars']['language'] = 'English'; 
    $assign_to_config['global_vars']['language_code'] = 'en';

    and in index.php in the root there’s

    $assign_to_config['global_vars']['language'] = 'Italian'; 
    $assign_to_config['global_vars']['language_code'] = 'it';

    I then created two snippets. “menu_it” and “menu_en” and in the template i inserted the following code

    {menu_{language_code}}

    But it doesn’t work. Have you an idea of what is the problem?
    Thanks

     

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases