waifung0207 / ci_bootstrap_3

A multi-tenant website template based on CodeIgniter 3 with integration of some useful tools
MIT License
385 stars 315 forks source link

Multilingual #79

Open simonerama opened 8 years ago

simonerama commented 8 years ago

Hello, How can I activate multilingual admin?

I've seen into application/modules/admin/config/ci_bootstrap.php at line 57 the option: 'languages' => array()

Into application/config/ci_bootstrap_example.php the demo content:

    'languages' => array(
        'default'       => 'en',                // to decide which of the "available" languages should be used
        'autoload'      => array('general'),    // language files to autoload
        'available'     => array(               // availabe languages with names to display on site (e.g. on menu)
            'en' => array(                      // abbr. value to be used on URL, or linked with database fields
                'label' => 'English',           // label to be displayed on language switcher
                'value' => 'english'            // to match with CodeIgniter folders inside application/language/
            ),
            'zh' => array(
                'label' => '繁體中文',
                'value' => 'traditional-chinese'
            ),
            'cn' => array(
                'label' => '简体中文',
                'value' => 'simplified-chinese'
            ),
            'es' => array(
                'label' => 'Español',
                'value' => 'spanish'
            )
        )
    ),

There's something else that I've to activate? Into application/core/MY_Controller.php at line 33 the option protected $mMultilingual it's set to FALSE.

Thank you, Simone

jasonlau78 commented 7 years ago

yes, i would like to know how can it be done. please help

Nouman24 commented 6 years ago

Any update on this?