Welcome Guest, Not a member yet? Register   Sign In
What is the best structure to have more than one language.
#1

[eluser]shinokada[/eluser]
I have english site and I am planning to have norwegian as well.

I know that I can use CI language class. But I am not sure how to construct the folder system.

For example I have the following controller.

Code:
class Categories extends Controller
{
    function Categories()
    {
        parent::Controller();

        // Load language
        $this->lang->load('norwegian');
               ...
               ...
    }

    
    function index()
    {
      $data['header'] = $this->lang->line('categories');
        ...
                ...

Do I have to have a folder called no or norwegian and put all the same controllers loading norwegian language?

Or is there better way to do?

Is there any download or resources to see how to do it?




Theme © iAndrew 2016 - Forum software by © MyBB