Tell me how to correctly implement the translation in the likeness of Laravel - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Tell me how to correctly implement the translation in the likeness of Laravel (/showthread.php?tid=74533) |
Tell me how to correctly implement the translation in the likeness of Laravel - midav - 10-06-2019 I have expanded the core of Lang.php PHP Code: class MY_Lang extends CI_Lang PHP Code: if ( ! function_exists('__')) { Code: <h1><?php echo __('Welcome to CodeIgniter!');?></h1> Code: <p><?php echo __('If you are exploring CodeIgniter for the very first time, you should start by reading the %%s%%.','<a href="user_guide/">'.__('User Guide').'</a>');?></p> |