Advanced Module Localisation (i18n)
 
    
        
                
            
                
                    Hey there,
i feel stupid asking this, but I need some help with using the language helper's lang() function inside an advanced module.
Here's what I did
modulename/language/english/modulename_lang.php 
contains my $lang array 
 
$lang['test'] = "Test" 
in my view i go
<?=lang('test');?>
result: nothing!
what am I doing wrong? what puzzles me is understanding how the language helper is supposed to load my language files without me having to tell.. ?                
 
                             
         
     
 
                 
             
        
Comments
$this->load->module_language('modulename', 'modulename');This is assuming the module the language file is in a module of "modulename" and is named "modulename_lang".