Welcome Guest, Not a member yet? Register   Sign In
Problem Loading Language Files
#1

[eluser]AgentPhoenix[/eluser]
I've got an application I'm starting to work on and one of the features I want to include is the ability for users to set the language they see the system in. I'm gonna be storing their language preference in the session and calling it from there, but when I try to call the language file then print out a text line from the language files, I get nothing. I tried to assign the return of the lang->line method to a variable, but trying to echo that variable out produces an error to the effect of variable not defined. Any ideas?

In my controller:
Code:
$language = 'spanish';
$this->lang->load('sol_lang', $language);

Language file:
Code:
$lang['gen_one'] = 'Spanish';

In my view:
Code:
<p>&lt;?=$this->lang->line('gen_one');?&gt;</p>


Messages In This Thread
Problem Loading Language Files - by El Forum - 06-12-2008, 06:58 AM
Problem Loading Language Files - by El Forum - 06-12-2008, 07:15 AM
Problem Loading Language Files - by El Forum - 06-12-2008, 07:47 AM
Problem Loading Language Files - by El Forum - 06-12-2008, 08:08 AM
Problem Loading Language Files - by El Forum - 06-12-2008, 09:27 AM
Problem Loading Language Files - by El Forum - 06-12-2008, 12:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB