CodeIgniter Forums
Language Class problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Language Class problem (/showthread.php?tid=14070)



Language Class problem - El Forum - 12-17-2008

[eluser]dimis[/eluser]
I have a multilanguage site and I make use of Language Class.
So I have a subview and I have to write some $lang[] variables.
So ia have this code.
Code:
<strong>
    &lt;?php echo $this->lang->line('bascet_name');   ?&gt;
</strong>
<br />
&lt;?php //  echo $carttotal."<br>";
if ($cartitems==0) {   echo $this->lang->line('bascet_empty');  }
else {
echo "$cartitems ".$this->lang->line('bascet_pr').", ".$carttotal."€";
}
?&gt;<br />
&lt;?php echo anchor("glasses/cardShow",$this->lang->line('bascet_view')); ?&gt;
My problem is that The lang variables are not there!I use the some code also at other subviews and all is ok.
I have done a my_controller and this view appears at my_controller contructor but also I have there the footer view with some other lang variables but there all is ok.
What is wrong?


Language Class problem - El Forum - 12-17-2008

[eluser]dimis[/eluser]
Ok , I solved it.


Language Class problem - El Forum - 12-18-2008

[eluser]sojic[/eluser]
How?

I'm developing multilanguage site and have problems with languages.