Multi-Language implementation in CodeIgniter
The Multi-Language feature is necessary for the modern web application. This feature is used for the purpose of internationalization. In this tutorial, we will discuss how to implement the multi-language feature in CodeIgniter framework. Using CodeIgniter’s Language class, you can easily make your site multi-language. CodeIgniter’s Language class provides some functions to retrieve language files and lines of text. The following guides will drive you to the right way for building a multi-language website with CodeIgniter. If you are new to CodeIgniter, you can read CodeIgniter Tutorial for Beginners first. Site Default Language Open the application/config/config.php file and specify the site’s default language. $config [ 'language' ] = 'english' ; Creating Language Files Create multiple language files and insert those files into the application/language/ directory with separate sub-directories for each language (for exam...