[eluser]Elianora la blanche[/eluser]
Hi there !
I'm new with codeigniter and try to understand how to use Language class with language files.
I auto-load language class, language helper and my 'french' language file
when I go to any page I see a sort of print_r array at the top, before any html output
this print the $lang array as written in the language file
I can't echo any translated string in my views, it seems to do nothing
for example, I use the base welcome controller (welcome.php), and I put this in welcome view (welcome_message.php)
Code:
<h1><?php echo lang('welcome_text'); ?> CodeIgniter</h1>
I have this in my language file (french_lang.php)
Code:
$lang['welcome_text'] = "Bienvenue sur le site de test de";
I think I missed something, but can't see what...
any help would be welcome
thanks in advance and sorry for my english ^^