codeigniter_tutorial
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CodeIgniter<br />
Copy the below given code and save it in german_lang.php file in<br />
application/language/german folder.<br />
<br />
$lang['msg'] = "CodeIgniter Internationalisierung Beispiel.";<br />
Change the routes.php file in application/config/routes.php to add route for the<br />
above controller and add the following line at the end of the file.<br />
$route['lang'] = "Lang_controller";<br />
Execute the following URL in the browser to execute the above example.<br />
http://yoursite.com/index.php/lang<br />
It will produce an output as shown in the following screenshot. If you change the<br />
language in the dropdown list, the language of the sentence written below the dropdown<br />
will also change accordingly.<br />
87