• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multilanguage

#1
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

#2
Maybe this will help you out.

CodeIgniter Multilanguage Site
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
(01-19-2019, 09:41 AM)InsiteFX Wrote: Maybe this will help you out.

CodeIgniter Multilanguage Site

Sorry but i have made a website in my language , i must add the other...
Reply

#4
No Problem, you can do it like you mentioned above.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.