Welcome Guest, Not a member yet? Register   Sign In
Internationalised language problem
#1

[eluser]veledrom[/eluser]
Hi,

Code below won't display language info on my screen. I don't get error message as well.

Thanks


Controller
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller
{
public function __construct()
{
  parent::__construct();
  
  $this->lang->load('en', 'english');
}

public function index()
{
  $this->load->view('welcome_message');
}
}

/* EoF */


View
Code:
<h1>&lt;?php echo $this->lang->line('welcome'); ?&gt;</h1>

Language
application\language\english\en_lang.php
Code:
&lt;?php

$lang['welcome'] = "Welcome to our Internationalised site";

$lang['menu.home'] = "Home";
$lang['menu.aboutus'] = "About Us";
$lang['menu.contactus'] = "Contact Us";


/* EoF */


Messages In This Thread
Internationalised language problem - by El Forum - 10-25-2012, 02:07 AM
Internationalised language problem - by El Forum - 10-25-2012, 05:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB