Welcome Guest, Not a member yet? Register   Sign In
Multilanguage
#1

(This post was last modified: 01-19-2019, 05:08 AM by pippuccio76.)

Hi ,sorry for english ,  i see this tutorial to implement multilanguage :

https://www.codexworld.com/multi-languag...deigniter/

I have some question :

can i call directly on view  ?


Code:
<?=lang('message_to_show')?>

or must i create a variabile in controller ?

Code:
$data['message_to_show'] = lang('message_to_show') ;
and in view :

Code:
<?=$message_to_show) ?>


Another question :

If i create several file for language (in every subfolder of language) , How can i import only the file that i need ?

Last question:

how can i change the form_validation error ?can i do this :

Code:
'min_length'=>lang('min_lenght_field')
Reply


Messages In This Thread
Multilanguage - by pippuccio76 - 01-19-2019, 04:08 AM
RE: Multilanguage - by InsiteFX - 01-19-2019, 09:41 AM
RE: Multilanguage - by pippuccio76 - 01-20-2019, 04:18 AM
RE: Multilanguage - by InsiteFX - 01-20-2019, 05:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB