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.

help with adding language packs in EE2.1

July 22, 2011 9:00am

Subscribe [2]
  • #1 / Jul 22, 2011 9:00am

    battez

    40 posts

    Hi

    I have just added translated content to an English site. The URLs are /de/ and /fr/ and so on.

    However, for the Register page and some other template files from the themes/default/ I noticed the language was in English obviously.

    So I need to add in language packs. On the languga edownload page these seem to be available for version 2.2 - would these language files work OK with my installation?

    Would I risk breaking the site badly if I tried them?

    I will keep default master language as English. I am thinking that in the /de/index.php file I use (From wiki “alternative install multi-lang method” ) I just set the ‘language’ global ‘config’ variable there to ‘deutsch’ ? Would that be correct?

    I imagine a 2.1 install with 2.2 should generally work, I just want to check before trying. I cannot install the 2.2 version at the moment.

  • #2 / Jul 22, 2011 9:28am

    lehrerfreund

    263 posts

    Hi battez,

    though I am not an EE-Pro I assume strongly that it’s impossible to break your site trying a language-pack. Just backup your DB, put the language-packs in the right location and try it. If it does not work turn the language back and remove the packs. Should the site break completely (which probably will not be the case) you remove the language-packs and use your db-backup.

    I am a careful person with stuff like this, but this is what I would do without hesitating.

    Good luck 😊

  • #3 / Jul 22, 2011 9:47am

    battez

    40 posts

    hi

    thanks for that. OK I took a db backup and then uploaded the deutsch folder to the language folder.

    It hasn’t worked though as I am navigating the /de/ site but still see english on things like form validation messages.

    Any ideas? my snippet in index.php in /de/ looks like

    $assign_to_config['template_group'] = '';
        $assign_to_config['template'] = '';
        $assign_to_config['site_index'] = '';
        $assign_to_config['language'] = 'deutsch';
        $assign_to_config['site_url'] = 'http://www.example.com/de/'; 
        
        $assign_to_config['site_404'] = '';
        $assign_to_config['global_vars'] = array(
            "country_code" => "de",
                "language" => "deutsch"); // deutsch? same as folder?

    My site works though obviously - the new install of a language didnt break anything I don’t think. Fingers crossed!

  • #4 / Jul 22, 2011 9:52am

    lehrerfreund

    263 posts

    Even if you have installed a language correctly and your own usersettings are still set to English you won’t see any German. Also the User-Message-Templates (e.g. confirmation of subscribing to the mailinglist) will be overrode by the settings in your user-localization-settings.

    try to logout and check the site.

    with multilanguage-site I don’t work, so I can’t say something about your snippet.

  • #5 / Jul 23, 2011 11:04pm

    Lisa Wess

    20502 posts

    Hi, battez, In the control Panel, on the right side, click “My Account” then set your localization preferences to the language of your choice.  Does that help?

    Thanks for the assist as well, lehrefreund!

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

ExpressionEngine News!

#eecms, #events, #releases