Welcome Guest, Not a member yet? Register   Sign In
i can only use one "label file" in ~/language/english/ directory
#1

I wrote this code :
               <?php echo "lang('account_creation_successful') : ",lang('account_creation_successful');?>
                <br/>
                <?php echo "lang('lp_test') : ",lang('lp_test');?>

The result is displayed correctly for the label 'account_creation_successful'
Nothing is displayed for the label 'lp_test'

The value of 'account_creation_successful' is stored in the file "ion_auth_lang.php"
The value of 'lp_test' is stored in the file "label_perso_lang.php"
Both files are in the ~/language/english/ directory

Is there anything I forgot ?

Thank you for your help

Attached Files
.php   label_perso_lang.php (Size: 285 bytes / Downloads: 124)
Reply
#2

have u loaded the language file?
PHP Code:
$this->lang->load('label_perso'); 
Reply
#3

(04-13-2016, 06:32 AM)Tecvid Wrote: have u loaded the language file?
PHP Code:
$this->lang->load('label_perso'); 

No i didn't.
And after loading the language fle, the label is displayed.
Thank you for your help.
Reply
#4

welcome Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB