multilanguage (multiple installations of concrete) ?

Permalink
I want a multilanguage web site, I understand concrete5 current version does not handle this internally.

Should I have different installations of concrete5 (directory + database), one for each language ?

Sharing one installation could result in conflicts ?

 
Mnkras replied on at Permalink Reply
Mnkras
most people do a directory like this:

Home
-en
--Page 1
--Page 2
--etc
-fr
--Page 1
--Page 2
--etc
nielsb85 replied on at Permalink Reply
For the content part you can do what Mnkras said.

Now I am not really familliar with concrete yet, but for a project I am having a multilanguage site aswell with 6 languages, and I tried to think of a way to make it easy to translate without making different controllers with NL, DE, EN etc extending the main controller.

So I made a simple translate helper which quite did the job.
Now the code I made is not at this laptop so I wrote it out of my head, but I think its correct.

Simly call the helper with the current language you are in.

then ->translate('your_handle');
Make sure you have a language folder in your root (nl.php en.php etc). Inside that build the array $language with the handle as key for each language file.

<?php
Class translateHelper {
    protected $_translateArray = array();
    public function __construct($lang = "nl") {
       $this->setLang($lang);
    }
    public function setLang($lang){
        include($_SERVER['DOCUMENT_ROOT'] . "/languages/" . $lang );
        /* The language directory contains files called: nl.php en.php etc.. 
         * with an array like: $language['first_name'] = "First name
         */ 
           if(sizeof($language)) {
                 $this->_translateArray = $language;
           }else {
                 //some error here that language file does not exists or smth...